diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-31 15:23:08 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-31 15:23:08 -0500 |
commit | b2b098573ef5bcd03d61e827d11b969460d992af (patch) | |
tree | 28be25900e7192ffe6b58db42288052e893c9633 /Archipelago/teleport.gd | |
parent | 005f63b0842352c073dcd29acf4759b6f211ecc4 (diff) | |
download | lingo-archipelago-b2b098573ef5bcd03d61e827d11b969460d992af.tar.gz lingo-archipelago-b2b098573ef5bcd03d61e827d11b969460d992af.tar.bz2 lingo-archipelago-b2b098573ef5bcd03d61e827d11b969460d992af.zip |
Added support for warp items (including sunwarps)
Diffstat (limited to 'Archipelago/teleport.gd')
-rw-r--r-- | Archipelago/teleport.gd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Archipelago/teleport.gd b/Archipelago/teleport.gd new file mode 100644 index 0000000..d322722 --- /dev/null +++ b/Archipelago/teleport.gd | |||
@@ -0,0 +1,24 @@ | |||
1 | extends "res://scripts/teleport.gd" | ||
2 | |||
3 | var _unlocked = true | ||
4 | |||
5 | |||
6 | func _ready(): | ||
7 | var apclient = global.get_node("Archipelago") | ||
8 | if apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name): | ||
9 | if self.get_parent().name == "Teleporter Warps": | ||
10 | if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL: | ||
11 | _unlocked = false | ||
12 | else: | ||
13 | _unlocked = false | ||
14 | |||
15 | ._ready() | ||
16 | |||
17 | |||
18 | func _body_entered(var body): | ||
19 | if _unlocked: | ||
20 | ._body_entered(body) | ||
21 | |||
22 | |||
23 | func unlock_warp(): | ||
24 | _unlocked = true | ||