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-04-27 12:13:38 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-27 12:13:38 -0400
commit47755e9e28f9b8866d3c41866910594e2d8c979a (patch)
tree488df5471f58eb0c6a1f7f872a17aa0ebe07231e /Archipelago/painting_eye.gd
parent4302e550cde189d8bc1d111e81270ed7960ad77c (diff)
parent0c25dc87e5ad9c8c8c2ff0ef5ac6502b166bc405 (diff)
downloadlingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.tar.gz
lingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.tar.bz2
lingo-archipelago-47755e9e28f9b8866d3c41866910594e2d8c979a.zip
Merge branch 'main' into panels
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..b2e6973 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 !apclient._pilgrimage_compatibility and 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