c88d8fd6f4
Rename monster.py → combatant.py with _KNOWN_FEATS lookup table that resolves feat name strings to AbilitySpec constants (Power Attack, Iron Will, Toughness, Weapon Focus, etc.). Unknown feats produce minimal AbilitySpec (data preserved for future implementation). Migrate all 8 PC JSONs (data/pcs/) with complete feat/spell lists extracted from Foundry sheets — including traits, racial abilities, and all spells. Monsters (goblin, orc) unchanged (no feats/spells). Update all imports, add backward-compatible aliases (load_monster, MonsterLoadError), update CLI to use load_combatant. Gate: 377 tests, ruff clean, basedpyright clean.
73 lines
1.2 KiB
JSON
73 lines
1.2 KiB
JSON
{
|
|
"name": "Ierlieth",
|
|
"level": 4,
|
|
"size": "Tiny",
|
|
"abilities": {
|
|
"str_score": 8,
|
|
"dex_score": 17,
|
|
"con_score": 11,
|
|
"int_score": 10,
|
|
"wis_score": 10,
|
|
"cha_score": 9
|
|
},
|
|
"hp_max": 29,
|
|
"ac": {
|
|
"total": 17,
|
|
"touch": 15,
|
|
"flat_footed": 14
|
|
},
|
|
"bab": 3,
|
|
"initiative_mod": 3,
|
|
"speed_land_ft": 15,
|
|
"saves": {
|
|
"fort": 3,
|
|
"ref": 6,
|
|
"will": 3
|
|
},
|
|
"attacks": [
|
|
{
|
|
"name": "Bite (attaque naturelle)",
|
|
"kind": "melee",
|
|
"attack_bonus": 4,
|
|
"damage": [
|
|
{
|
|
"formula": "1d4",
|
|
"types": [
|
|
"piercing"
|
|
]
|
|
}
|
|
],
|
|
"damage_bonus": -1,
|
|
"crit_range": 20,
|
|
"crit_mult": 2,
|
|
"reach_ft": 5,
|
|
"count": 1
|
|
},
|
|
{
|
|
"name": "Tail (attaque naturelle)",
|
|
"kind": "melee",
|
|
"attack_bonus": -1,
|
|
"damage": [
|
|
{
|
|
"formula": "1d4",
|
|
"types": [
|
|
"bludgeoning"
|
|
]
|
|
}
|
|
],
|
|
"damage_bonus": 0,
|
|
"crit_range": 20,
|
|
"crit_mult": 2,
|
|
"reach_ft": 5,
|
|
"count": 1
|
|
}
|
|
],
|
|
"source": "fiches_personnages/ierlieth_sheet.json",
|
|
"features": [
|
|
"Toughness",
|
|
"Power Attack",
|
|
"Drake (race)"
|
|
],
|
|
"spells": []
|
|
}
|