Implements HP loss HUD button
All checks were successful
Release Creation / build (release) Successful in 54s

This commit is contained in:
2025-04-27 22:11:10 +02:00
parent a043117ec7
commit 157163672c
31 changed files with 184 additions and 108 deletions

View File

@ -69,6 +69,15 @@ export default class LethalFantasyActor extends Actor {
return goodSkill
}
/* *************************************************/
async applyDamage(hpLoss) {
let hp = this.system.hp.value + hpLoss
if (hp < 0) {
hp = 0
}
this.update({ "system.hp.value": hp })
}
/* *************************************************/
async prepareRoll(rollType, rollKey, rollDice ) {
console.log("Preparing roll", rollType, rollKey, rollDice)