From 71fec107884c633c9c7baeed50bdfdfa9016a82c Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 30 Jun 2025 23:05:39 +0200 Subject: [PATCH] Companions now take stress when damaged --- module/documents/actor.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index e4e76015..d49d84cb 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -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