fix(rules): Toughness is +3 hp below 4 Hit Dice (max(3, level))
This commit is contained in:
@@ -135,6 +135,21 @@ def test_spot_check_toughness_level_tied() -> None:
|
||||
assert any(e.value == 5 for e in spec.effects)
|
||||
|
||||
|
||||
def test_toughness_is_plus3_below_four_hd_and_plus_hd_above() -> None:
|
||||
# CRB Toughness: "+3 hit points. If the character has 4 or more Hit
|
||||
# Dice, she gains +1 hit point per Hit Die."
|
||||
def hp_value(level: int) -> int:
|
||||
spec = _resolve_feat("Toughness", level)
|
||||
values = [e.value for e in spec.effects if e.target == "hp"]
|
||||
assert len(values) == 1
|
||||
return values[0]
|
||||
|
||||
assert hp_value(1) == 3
|
||||
assert hp_value(2) == 3
|
||||
assert hp_value(3) == 3
|
||||
assert hp_value(4) == 4
|
||||
|
||||
|
||||
# ── Expected mapping table (name -> resolved display name or traced-no-op) ─────
|
||||
|
||||
_EXPECTED_RESOLUTION: dict[str, str] = {
|
||||
|
||||
Reference in New Issue
Block a user