about summary refs log tree commit diff stats
path: root/Archipelago/mypainting.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-28 12:35:45 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-28 12:35:45 -0500
commit4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0 (patch)
tree4164ea81516c7446f8b6577492011b65682472f9 /Archipelago/mypainting.gd
parentde5eb04ed014770558b546e02c91ce6eb262f652 (diff)
downloadlingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.tar.gz
lingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.tar.bz2
lingo-archipelago-4d2da5afe6a3ffad50ca5560c1dcceaddde2b9b0.zip
Add pilgrimage allows roof access / paintings
Diffstat (limited to 'Archipelago/mypainting.gd')
-rw-r--r--Archipelago/mypainting.gd14
1 files changed, 7 insertions, 7 deletions
diff --git a/Archipelago/mypainting.gd b/Archipelago/mypainting.gd index 1420c03..999b122 100644 --- a/Archipelago/mypainting.gd +++ b/Archipelago/mypainting.gd
@@ -20,13 +20,8 @@ func _ready():
20 20
21func _answer_correct(): 21func _answer_correct():
22 var apclient = global.get_node("Archipelago") 22 var apclient = global.get_node("Archipelago")
23 if self.get_parent().name == "pilgrim_painting2": 23 if not apclient._door_shuffle or apclient.paintingIsVanilla(self.get_parent().name):
24 # When pilgrimage is enabled, the HOT CRUST panel should actually move the sun painting. 24 movePainting()
25 if apclient._pilgrimage_enabled:
26 movePainting()
27 else:
28 if not apclient._door_shuffle or apclient.paintingIsVanilla(self.get_parent().name):
29 movePainting()
30 25
31 26
32func movePainting(): 27func movePainting():
@@ -91,6 +86,11 @@ func _looked_at(body, painting):
91 body.rotate_y(3 * PI / 2) 86 body.rotate_y(3 * PI / 2)
92 body.velocity = body.velocity.rotated(Vector3(0, 1, 0), 3 * PI / 2) 87 body.velocity = body.velocity.rotated(Vector3(0, 1, 0), 3 * PI / 2)
93 88
89 var apclient = global.get_node("Archipelago")
90 if !apclient._pilgrimage_allows_paintings:
91 global.sunwarp = 1
92 body.get_node("pivot/camera/sunwarp_background").visible = false
93
94 94
95func _dir_to_int(dir): 95func _dir_to_int(dir):
96 if dir == "north": 96 if dir == "north":