This commit is contained in:
Joan
2025-11-27 16:27:01 +01:00
parent 33cc9586c2
commit 81f8912059
304 changed files with 56149 additions and 10122 deletions

View File

@@ -61,7 +61,7 @@ class NPCDefinition:
status_inflict_chance: float # Chance to inflict status on player
# Visuals
image_url: Optional[str] = None
image_path: Optional[str] = None
death_message: str = "The enemy falls defeated."
@@ -100,7 +100,7 @@ def load_npcs_from_json():
corpse_loot=corpse_loot,
flee_chance=npc_data['flee_chance'],
status_inflict_chance=npc_data['status_inflict_chance'],
image_url=npc_data.get('image_url'),
image_path=npc_data.get('image_path'),
death_message=npc_data.get('death_message', "The enemy falls defeated.")
)
@@ -159,7 +159,7 @@ def _get_fallback_npcs():
CorpseLoot("bone", 1, 1),
CorpseLoot("animal_hide", 1, 1, required_tool="knife")
],
image_url=None,
image_path=None,
death_message="The feral dog whimpers and collapses."
)
}