feat: add safe rooms and repeatable Bobka rations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user