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."
|
||||
)
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ def _load_fallback_world() -> World:
|
||||
id="start_point",
|
||||
name="🌆 Ruined Downtown Core",
|
||||
description="The wind howls through skeletal skyscrapers. Debris litters the cracked asphalt.",
|
||||
image_path="images/locations/downtown.png",
|
||||
image_path="images/locations/downtown.webp",
|
||||
x=0.0,
|
||||
y=0.0
|
||||
)
|
||||
@@ -190,7 +190,7 @@ def _load_fallback_world() -> World:
|
||||
rubble = Interactable(
|
||||
id="rubble",
|
||||
name="Pile of Rubble",
|
||||
image_path="images/interactables/rubble.png"
|
||||
image_path="images/interactables/rubble.webp"
|
||||
)
|
||||
search_action = Action(id="search", label="🔎 Search Rubble", stamina_cost=2)
|
||||
search_action.add_outcome("success", Outcome(
|
||||
|
||||
Reference in New Issue
Block a user