From 35f3bd5342fb1096ab5a636af9d18f2af9d9ee11 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 12 Dec 2023 19:49:07 -0500 Subject: Create The Wanderer Also added my painting to Champion's Rest. --- randomizer/generator.gd | 3 ++- randomizer/load.gd | 52 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/randomizer/generator.gd b/randomizer/generator.gd index 090ec8a..ad6263d 100644 --- a/randomizer/generator.gd +++ b/randomizer/generator.gd @@ -611,12 +611,13 @@ func generate(chosen_seed): _gCopyHidden("Color Arrow Room/Panel_orange_near", "Color Arrow Room/Panel_orange_afar") _gCopyHidden("Color Arrow Room/Panel_purple_near", "Color Arrow Room/Panel_purple_afar") _gCopyHidden("Color Arrow Room/Panel_green_near", "Color Arrow Room/Panel_green_afar") + painting_mapping.append(["colors_painting", "hatkirby"]) _gOrangeNumber("Orange Room/Panel_lust") _gOrangeNumber("Orange Room/Panel_read") _gOrangeNumber("Orange Room/Panel_sew") _gOrangeNumber("Orange Room/Panel_dead") - _writePanel("Tower Room/Panel_1234567890_wanderlust", "12345656", "the wanderer") + _writePanel("Countdown Panels/Panel_1234567890_wanderlust", "12345656", "the wanderer") _gOrangeNumber("Tower Room/Panel_834283054_undaunted") _gOrangeWord("Orange Room/Panel_learn") _gOrangeWord("Orange Room/Panel_dust") diff --git a/randomizer/load.gd b/randomizer/load.gd index 9fcd038..7f08814 100644 --- a/randomizer/load.gd +++ b/randomizer/load.gd @@ -12,6 +12,46 @@ func _load(): if child.is_class("Spatial"): child.get_node(child.replace_with).translation.y -= 100.0 + # Create "The Wanderer". + set_gridmap_tile(-4.5, 6.5, 56.5, "MeshInstance4") + set_gridmap_tile(-3.5, 6.5, 56.5, "MeshInstance18") + set_gridmap_tile(-3.5, 6.5, 57.5, "MeshInstance5") + + var door_scene = load("res://nodes/door.tscn") + var door_script = load("res://scripts/doorControl.gd") + var wanderer_entrance = door_scene.instance() + wanderer_entrance.name = "Door_wanderer_entrance" + wanderer_entrance.translation = Vector3(7.5, 5, 53) + wanderer_entrance.rotation = Vector3(0, -PI / 2, 0) + wanderer_entrance.scale = Vector3(1, 1.5, 1) + wanderer_entrance.set_script(door_script) + wanderer_entrance.panels.append("../../../Panels/Tower Room/Panel_wanderlust_1234567890") + get_node("Doors/Tower Room Area Doors").add_child(wanderer_entrance) + + var wanderer_achieve = get_node("Panels/Tower Room/Panel_1234567890_wanderlust") + wanderer_achieve.get_parent().remove_child(wanderer_achieve) + get_node("Panels/Countdown Panels").add_child(wanderer_achieve) + + var countdown_scene = load("res://nodes/panel_countdown.tscn") + var wanderer_cdp = countdown_scene.instance() + wanderer_cdp.name = "CountdownPanel_wanderer" + wanderer_cdp.panels = [ + "../../Panels/Tower Room/Panel_wanderlust_1234567890", + "../../Panels/Orange Room/Panel_lust", + "../../Panels/Orange Room/Panel_read", + "../../Panels/Orange Room/Panel_sew", + "../../Panels/Orange Room/Panel_dead", + "../../Panels/Orange Room/Panel_learn", + "../../Panels/Orange Room/Panel_dust", + "../../Panels/Orange Room/Panel_star", + "../../Panels/Orange Room/Panel_wander" + ] + wanderer_cdp.translation = wanderer_achieve.translation + wanderer_cdp.rotation = wanderer_achieve.rotation + get_node("CountdownPanels").add_child(wanderer_cdp) + + wanderer_achieve.translation = Vector3(-51, -33, 35) # way under the map + # Apply the randomized panels. randomizer.generator.apply(self) @@ -51,9 +91,19 @@ func _load(): sign_low.queue_free() # Require LOW/LOW for opening the second door. - get_node("Doors/Entry Room Area Doors/Door_hi_high").panels.append("../../../Panels/Entry Room/Panel_low_low") + get_node("Doors/Entry Room Area Doors/Door_hi_high").panels.append( + "../../../Panels/Entry Room/Panel_low_low" + ) get_node("Doors/Entry Room Area Doors/Door_hi_high")._ready() + # Finish up with The Wanderer. + wanderer_achieve.achieved_text = "the wanderer" + wanderer_cdp.replace_with = "../../Panels/Countdown Panels/Panel_1234567890_wanderlust" + + get_node("Doors/Tower Room Area Doors/Door_wanderlust_start").panels = [ + "../../../Panels/Countdown Panels/Panel_1234567890_wanderlust" + ] + # Proceed with the rest of the load. global._print("Hooked Load End") ._load() -- cgit 1.4.1