refactor(loaders): unify combatant loader, migrate PC features/spells
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.
This commit is contained in:
+32
-1
@@ -83,5 +83,36 @@
|
||||
}
|
||||
],
|
||||
"source": "fiches_personnages/oni_sheet.json",
|
||||
"notes": "Armes placeholder Foundry sans dégâts encodés omises : 'une Pioche' (non maîtrisée) et 'Weapon' (à remplacer par la vraie arme)."
|
||||
"notes": "Armes placeholder Foundry sans dégâts encodés omises : 'une Pioche' (non maîtrisée) et 'Weapon' (à remplacer par la vraie arme).",
|
||||
"features": [
|
||||
"Summon Good Monster",
|
||||
"Sacred Summons",
|
||||
"Selective Channeling",
|
||||
"Extremely Fashionable",
|
||||
"Exalted of the Society (Cleric, Pathfinder Society)",
|
||||
"Bitter",
|
||||
"Ambitious"
|
||||
],
|
||||
"spells": [
|
||||
"Guidance",
|
||||
"Detect Magic",
|
||||
"Stabilize",
|
||||
"Read Magic",
|
||||
"Detect Poison",
|
||||
"Purify Food and Drink",
|
||||
"Summon Monster I",
|
||||
"Shield of Faith",
|
||||
"Forbid Action",
|
||||
"Cure Light Wounds",
|
||||
"Hidden Diplomacy",
|
||||
"Protection from Evil",
|
||||
"Bless",
|
||||
"Summon Monster II",
|
||||
"Cure Moderate Wounds",
|
||||
"Sound Burst",
|
||||
"Suppress Charms and Compulsions",
|
||||
"Delay Poison",
|
||||
"Ironskin",
|
||||
"Restoration, Lesser"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user