about summary refs log tree commit diff stats
path: root/data/maps/the_liberated/metadata.txtpb
blob: a92d7e53f904db4db0c0af80a59d52ef06d4ba4b (plain) (blame)
1
display_name: "The Liberated"
able.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
extends "res://scripts/painting_eye.gd"


func _answer_correct():
	var apclient = global.get_node("Archipelago")
	if get_name() == "pilgrim_painting2":
		# When pilgrimage is enabled, the HOT CRUST panel should actually move the sun painting.
		if apclient._pilgrimage_enabled:
			movePainting()
	elif not apclient._door_shuffle or apclient.paintingIsVanilla(self.name):
		._answer_correct()


func movePainting():
	._answer_correct()


func _looked_at(var body, var painting):
	._looked_at(body, painting)

	if body.is_in_group("player") && (painting.get_name() == self.get_name()):
		var apclient = global.get_node("Archipelago")
		if !apclient._pilgrimage_allows_paintings:
			global.sunwarp = 1
			body.get_node("pivot/camera/sunwarp_background").visible = false