From f834267a75c873d143e1f7f56f73faaa5e15cf2f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 9 Dec 2024 12:50:24 -0500 Subject: First pass at panel randomization --- Archipelago/load.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Archipelago/load.gd') diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 931dfde..be209c3 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd @@ -135,7 +135,7 @@ func _load(): new_another_cdp.maxlength = (apclient._level_2_requirement - 1) new_another_cdp.nested = true get_node("CountdownPanels").add_child(new_another_cdp) - another_cdp.replace_with = "" + another_cdp.replace_with = "../CountdownPanel_level2_0" another_cdp.queue_free() else: var another_replacement = another_cdp.get_node(another_cdp.replace_with) @@ -275,7 +275,7 @@ func _load(): clear_gridmap_tile(25.5, 1.5, 11.5) clear_gridmap_tile(47.5, 1.5, 11.5) - if apclient._panel_shuffle == apclient.kREARRANGE_PANELS: + if apclient._panel_shuffle == apclient.kREARRANGE_PANELS or apclient._panel_shuffle == apclient.kEXPERIMENTAL_PANELS: # Do the actual shuffling. var panel_pools = {} for panel in gamedata.panels: @@ -342,6 +342,9 @@ func _load(): new_answer += " " new_answer += panels_parent.get_node("Painting Room/Panel_send_use_turns").answer panels_parent.get_node("Painting Room/Panel_order_onepathmanyturns").answer = new_answer + + if apclient._panel_shuffle == apclient.kEXPERIMENTAL_PANELS: + apclient.get_node("Generator").apply(self) # Handle our other static panels after panel randomization, so that the old # values can enter the pool, if necessary. -- cgit 1.4.1