about summary refs log tree commit diff stats
path: root/data/maps/the_impressive/rooms
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-16 14:52:24 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-16 14:52:24 -0400
commitc88f4184eaa48efbdc69e76eb3c8a4a206434ad3 (patch)
treec1da4c419d90debafdd7f71347fe5f3194ff13ee /data/maps/the_impressive/rooms
parentac600120eb923e99c534f5c405f7f529c1b25bcf (diff)
downloadlingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.tar.gz
lingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.tar.bz2
lingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.zip
Started writing a data validator
Currently, it can check whether identifiers point to non-existent
objects, or whether multiple objects share the same identifier. It can
also determine whether an identifier is underspecified (e.g. a door
doesn't specify a room, or a global connection doesn't specify a map).
Diffstat (limited to 'data/maps/the_impressive/rooms')
0 files changed, 0 insertions, 0 deletions
bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.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 !apclient._pilgrimage_compatibility and 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