fix(rules): harvie - Wis 14 per sheet, Talons primary +2 1d4 (2x), Bite secondary +2 with runtime -5

This commit is contained in:
2026-09-16 21:59:29 +02:00
parent feaab5ee41
commit 1c94d48803
2 changed files with 55 additions and 44 deletions
+11 -1
View File
@@ -7,7 +7,7 @@ from pathlib import Path
import pytest
from pf1e_simulator.dice import DiceExpr
from pf1e_simulator.dice import DiceExpr, parse_dice
from pf1e_simulator.loaders.combatant import CombatantLoadError, load_combatant
MONSTERS_DIR = Path(__file__).resolve().parents[1] / "data" / "monsters"
@@ -42,6 +42,16 @@ def test_pc_sheets_golden_spots() -> None:
harvie = load_combatant(PCS_DIR / "harvie.json")
assert harvie.size == "Small"
assert harvie.speed_fly_ft == 80
# Sheet pins (fiches_personnages/harvie_sheet.json): Wis 14 (Will +2
# implies it), "2x Talons" primary +2 1d4 slashing, Bite secondary -3
# 1d4 piercing (stored as base +2 with the engine's runtime -5).
assert harvie.abilities.wis_score == 14
bite, talons = harvie.attacks
assert (bite.name, bite.attack_bonus, bite.secondary) == ("Bite", 2, True)
assert bite.damage[0].formula == parse_dice("1d4")
assert (talons.name, talons.attack_bonus, talons.count) == ("Talons", 2, 2)
assert talons.damage[0].formula == parse_dice("1d4")
assert talons.damage[0].types == ["slashing"]
oni = load_combatant(PCS_DIR / "oni.json")
assert "Pioche" in oni.notes