diff options
Diffstat (limited to 'Archipelago/mypainting.gd')
| -rw-r--r-- | Archipelago/mypainting.gd | 14 |
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 | ||
| 21 | func _answer_correct(): | 21 | func _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 | ||
| 32 | func movePainting(): | 27 | func 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 | ||
| 95 | func _dir_to_int(dir): | 95 | func _dir_to_int(dir): |
| 96 | if dir == "north": | 96 | if dir == "north": |
