mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Companions now take stress when damaged
This commit is contained in:
parent
ce593d02f3
commit
71fec10788
1 changed files with 5 additions and 0 deletions
|
|
@ -411,6 +411,11 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
|
||||
async takeDamage(damage, type) {
|
||||
if (this.type === 'companion') {
|
||||
await this.modifyResource([{ value: 1, type: 'stress' }]);
|
||||
return;
|
||||
}
|
||||
|
||||
const hpDamage =
|
||||
damage >= this.system.damageThresholds.severe
|
||||
? 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue