about summary refs log tree commit diff stats
path: root/data/maps/the_wondrous/connections.txtpb
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/the_wondrous/connections.txtpb')
0 files changed, 0 insertions, 0 deletions
;fefferburbia@gmail.com> 2024-02-28 12:35:45 -0500 Add pilgrimage allows roof access / paintings' href='/lingo-archipelago/commit/Archipelago/teleport.gd?id=4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0'>4d2da5a ^
b2b0985 ^


4d2da5a ^





b2b0985 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27






                                                     



                                                                                                          
                                 

 
                         


                                    





                                                                                                


                        
extends "res://scripts/teleport.gd"

var _unlocked = true


func _ready():
	var apclient = global.get_node("Archipelago")
	if self.get_parent().name == "Teleporter Warps":
		if apclient._sunwarp_access != apclient.kSUNWARP_ACCESS_NORMAL:
			_unlocked = false
	elif apclient._door_shuffle and !apclient.warpIsVanilla(self.get_parent().name + "/" + self.name):
		_unlocked = false


func _body_entered(body):
	if _unlocked:
		._body_entered(body)

		if body.is_in_group("player"):
			var apclient = global.get_node("Archipelago")
			if !apclient._pilgrimage_enabled:
				global.sunwarp = 1
				body.get_node("pivot/camera/sunwarp_background").visible = false


func unlock_warp():
	_unlocked = true