feat(rules): alignment-gated spell damage for Shard of Chaos and Spear of Purity

DamageEffect gains an optional AlignmentGate (axis law_chaos/good_evil):
the immune side (chaotic/good) is wholly unaffected (no damage dice rolled),
neutral-on-axis targets take half damage with no condition (gate halving
stacks after the save halving), and the full side (lawful/evil) takes full
damage plus the gate condition on a failed save. Shard of Chaos maps the
SRD slowed to the engine staggered condition (the -1 penalty and half-speed
of slow are not modeled); the outsider-only 1d6/level variants are not
modeled (no outsider subtype). Non-gated damage spells are bit-identical.
Loader validates axis/side pairing with clear ValueErrors.
This commit is contained in:
2026-09-20 12:32:14 +02:00
parent f9e51e377a
commit 6a18d456f6
5 changed files with 517 additions and 4 deletions
+9 -2
View File
@@ -13,8 +13,15 @@
"formula": "0",
"types": ["force"],
"half_on_save": true,
"scaling": { "dice": "1d8", "per_levels": 2, "max_dice": 5 }
"scaling": { "dice": "1d8", "per_levels": 2, "max_dice": 5 },
"alignment_gate": {
"axis": "good_evil",
"immune": "good",
"full": "evil",
"full_condition": "blinded",
"full_condition_rounds": 1
}
}
],
"description": "SRD spells/spear-of-purity.md: evocation [good], level 2 (cleric/oracle/warpriest), range close, spear of good energy delivered as a ranged touch attack, Will partial, spell resistance yes. An evil creature struck takes 1d8 points of damage per two caster levels (maximum 5d8); a successful Will save halves the damage. Simplified: the engine has no alignment track, so the SRD alignment gate (no effect on good creatures, half damage to neutrals, the evil-outsider 1d6/level + blinded variant) cannot be represented - the base 1d8-per-two-levels damage (engine floor: caster_level // 2 dice) is modeled against every target as force damage (no energy type models good energy), Will half."
"description": "SRD spells/spear-of-purity.md: evocation [good], level 2 (cleric/oracle/warpriest), range close, spear of good energy delivered as a ranged touch attack, Will partial, spell resistance yes. An evil creature struck takes 1d8 points of damage per two caster levels (maximum 5d8) and, on a failed Will save, is blinded for 1 round; a successful Will save halves the damage and negates the blinded effect. The spear has no effect on good creatures (alignment_gate immune) and deals only half damage to creatures neither evil nor good, without the blindness (alignment_gate neutral halving). Simplifications: the evil-outsider variant (1d6 per caster level, maximum 10d6) is not modeled (the engine has no outsider subtype); force damage stands in for good energy (no energy type models it)."
}