feat(combat): persist carapace armor gain to baseArmor

Update `CombatEngine._applyCarapace` to increment `card.baseArmor` alongside `currentArmor` and `card.armor` when carapace effects trigger. This ensures the armor gain is tracked as a permanent base stat increase rather than just a temporary effect. The debug log has also been updated to reflect the new `baseArmor` value.
This commit is contained in:
Brian Fertig 2026-03-21 13:00:16 -06:00
parent ad4db7f541
commit 8a31c2504e
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ export class CombatEngine {
const gain = Math.min(s.value, cap - card.currentArmor);
card.currentArmor += gain;
card.armor += gain;
this._log(`${card.name} carapace: +${gain} ARM (cap ${cap})`);
card.baseArmor += gain;
this._log(`${card.name} carapace: +${gain} ARM (cap ${cap}, new baseArmor ${card.baseArmor})`);
if (emit) this.events.push({ type: 'carapace', card, gain });
return gain;
}