diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 13:49:06 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 13:49:06 -0500 |
commit | 72bb06c42fcab5c215ff034e8445c33057e0c23d (patch) | |
tree | ab1c15c52567fbdf3c8a1cf89dc0aee149c97500 /Archipelago/load.gd | |
parent | 8175ffdc895392764613a8bb6c738c49926d5773 (diff) | |
download | lingo-archipelago-72bb06c42fcab5c215ff034e8445c33057e0c23d.tar.gz lingo-archipelago-72bb06c42fcab5c215ff034e8445c33057e0c23d.tar.bz2 lingo-archipelago-72bb06c42fcab5c215ff034e8445c33057e0c23d.zip |
Persist traps between connections
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r-- | Archipelago/load.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 7f86c91..a277817 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
@@ -565,6 +565,15 @@ func _load(): | |||
565 | global._print("Hooked Load End") | 565 | global._print("Hooked Load End") |
566 | ._load() | 566 | ._load() |
567 | 567 | ||
568 | # Activate any cached traps. | ||
569 | if apclient._cached_slowness > 0: | ||
570 | effects.trigger_slowness_trap(apclient._cached_slowness) | ||
571 | if apclient._cached_iceland > 0: | ||
572 | effects.trigger_iceland_trap(apclient._cached_iceland) | ||
573 | if apclient._cached_atbash > 0: | ||
574 | for _i in range(0, apclient._cached_atbash): | ||
575 | effects.trigger_atbash_trap() | ||
576 | |||
568 | # Process any items received while the map was loading, and send the checks | 577 | # Process any items received while the map was loading, and send the checks |
569 | # from the save load. | 578 | # from the save load. |
570 | apclient.mapFinishedLoading() | 579 | apclient.mapFinishedLoading() |