Initial damage message

This commit is contained in:
WBHarry 2025-08-24 18:35:05 +02:00
parent afdffb672a
commit 362facae76
5 changed files with 95 additions and 4 deletions

View file

@ -597,7 +597,9 @@ export default class DhpActor extends Actor {
await this.modifyResource(updates);
if (Hooks.call(`${CONFIG.DH.id}.postTakeDamage`, this, updates) === false) return null;
Hooks.call(`${CONFIG.DH.id}.postTakeDamage`, this, updates);
return updates;
}
calculateDamage(baseDamage, type) {
@ -645,7 +647,8 @@ export default class DhpActor extends Actor {
await this.modifyResource(updates);
if (Hooks.call(`${CONFIG.DH.id}.postTakeHealing`, this, updates) === false) return null;
Hooks.call(`${CONFIG.DH.id}.postTakeHealing`, this, updates);
return updates;
}
async modifyResource(resources) {