mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Initial damage message
This commit is contained in:
parent
afdffb672a
commit
362facae76
5 changed files with 95 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue