about summary refs log tree commit diff stats
path: root/Archipelago/painting_eye.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/painting_eye.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/painting_eye.gd')
-rw-r--r--Archipelago/painting_eye.gd16
1 files changed, 15 insertions, 1 deletions
diff --git a/Archipelago/painting_eye.gd b/Archipelago/painting_eye.gd index 53d42b5..c6994b1 100644 --- a/Archipelago/painting_eye.gd +++ b/Archipelago/painting_eye.gd
@@ -3,9 +3,23 @@ extends "res://scripts/painting_eye.gd"
3 3
4func _answer_correct(): 4func _answer_correct():
5 var apclient = global.get_node("Archipelago") 5 var apclient = global.get_node("Archipelago")
6 if not apclient._door_shuffle or apclient.paintingIsVanilla(self.name): 6 if get_name() == "pilgrim_painting2":
7 # When pilgrimage is enabled, the HOT CRUST panel should actually move the sun painting.
8 if apclient._pilgrimage_enabled:
9 movePainting()
10 elif not apclient._door_shuffle or apclient.paintingIsVanilla(self.name):
7 ._answer_correct() 11 ._answer_correct()
8 12
9 13
10func movePainting(): 14func movePainting():
11 ._answer_correct() 15 ._answer_correct()
16
17
18func _looked_at(var body, var painting):
19 ._looked_at(body, painting)
20
21 if body.is_in_group("player") && (painting.get_name() == self.get_name()):
22 var apclient = global.get_node("Archipelago")
23 if !apclient._pilgrimage_allows_paintings:
24 global.sunwarp = 1
25 body.get_node("pivot/camera/sunwarp_background").visible = false