Commit
This commit is contained in:
@@ -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."
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user