Implements HP loss HUD button
All checks were successful
Release Creation / build (release) Successful in 54s
All checks were successful
Release Creation / build (release) Successful in 54s
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user