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-18 17:45:10 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-18 17:45:10 -0400
commit67ec5e396a2e60cc531345e80d377afbcfc22c32 (patch)
treeb71d9ca3b24293c44e166238cfdb5419f822cd1b /Archipelago/painting_eye.gd
parent139ecb09dcb49177d1fa39baaf8e378e3009fc76 (diff)
parente33ba8444d965ed903a0ca87d2824af334c4cdd9 (diff)
downloadlingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.tar.gz
lingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.tar.bz2
lingo-archipelago-67ec5e396a2e60cc531345e80d377afbcfc22c32.zip
Merge branch 'sunwarps' into future
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