about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-22 03:22:22 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-22 03:22:22 -0400
commit39b55476e6ae8a43c807476348351bb1509b26e2 (patch)
tree8ea49df2c6b8a0d0247698aad4b8e4f7a686596a /Archipelago/load.gd
parentb78271615d1b0f0d2f71c1467b63af5e405b02e5 (diff)
downloadlingo-archipelago-39b55476e6ae8a43c807476348351bb1509b26e2.tar.gz
lingo-archipelago-39b55476e6ae8a43c807476348351bb1509b26e2.tar.bz2
lingo-archipelago-39b55476e6ae8a43c807476348351bb1509b26e2.zip
Queue Iceland Traps for later in map load
This way they don't get overridden by the environment being set naturally.
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 052aa84..6860de7 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -324,6 +324,15 @@ func _load():
324 apclient.mapFinishedLoading() 324 apclient.mapFinishedLoading()
325 325
326 326
327func _load_user_textures():
328 # We are using this function as a hook to process queued Iceland Traps
329 # because it happens after the environment gets set.
330 var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects")
331 effects_node.activate()
332
333 ._load_user_textures()
334
335
327func sort_by_link(a, b): 336func sort_by_link(a, b):
328 return a["link"] < b["link"] 337 return a["link"] < b["link"]
329 338