feat: blood magic and Runiczny Pancerz per vault answers (1.5.0)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 17:12:21 +02:00
co-authored by Claude Sonnet 5.5
parent e4dc1842d3
commit 7b1f6794ad
16 changed files with 607 additions and 79 deletions
+7 -2
View File
@@ -141,8 +141,13 @@ export async function rest(actor: CastableActor, kind: RestKind): Promise<RestRe
update['system.attributes.elixirTolerance'] = Math.max(0, toleranceBefore - 1);
toleranceRecovered = 1;
}
if (a.magicalArmor?.runicCounter && a.magicalArmor.runicCounter > 0) {
update['system.attributes.magicalArmor.runicCounter'] = 0;
// Disabled Runiczny Pancerz points come back (only Rozerwanie Run is permanent).
if (a.magicalArmor && a.magicalArmor.value < a.magicalArmor.max) {
update['system.attributes.magicalArmor.value'] = a.magicalArmor.max;
}
if (a.greatSacrificeUsed) update['system.attributes.greatSacrificeUsed'] = 0;
if (a.bloodUsed) {
for (const k of ['selfHarm', 'lifeSteal', 'sacrifice', 'absorb']) update[`system.attributes.bloodUsed.${k}`] = 0;
}
}