feat: add safe rooms and repeatable Bobka rations

This commit is contained in:
goose
2026-10-04 11:08:19 -04:00
parent 34eb08f02a
commit 9bd003102c
16 changed files with 297 additions and 2 deletions
+4
View File
@@ -173,6 +173,7 @@ func _initialize_run_state() -> void:
run_state.player_name = pending_player_name
run_state.base_archetype = pending_base_archetype
spell_catalog = ContentCatalogType.load_from_directory("res://data/ascii")
run_state.content_catalog = spell_catalog
crafting_engine = CraftingEngineType.new(spell_catalog)
dialogue_engine = DialogueEngineType.new()
event_engine = EventEngineType.new()
@@ -231,6 +232,7 @@ func _apply_loaded_run(loaded: Dictionary) -> void:
push_error("Cannot apply an incomplete loaded run.")
return
spell_catalog = ContentCatalogType.load_from_directory("res://data/ascii")
run_state.content_catalog = spell_catalog
crafting_engine = CraftingEngineType.new(spell_catalog)
dialogue_engine = DialogueEngineType.new()
event_engine = EventEngineType.new()
@@ -1092,6 +1094,8 @@ func _quest_context() -> Dictionary:
return {
"player": dialogue_player,
"payload": {"gold": run_state.gold, "xp": game_state.player.xp},
"npc_id": StringName(active_dialogue_npc.get("actor_id", "")),
"npc_content_id": StringName(active_dialogue_npc.get("id", "")),
"catalog": spell_catalog,
"inventory": run_state.inventory,
"quest_manager": quest_manager,