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."
)
}

View File

@@ -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(