about summary refs log tree commit diff stats
path: root/data/maps/the_repetitive/connections.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-16 21:58:31 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-16 21:58:31 -0400
commitc75db26e333f9d9863743e29166b6384f7270f44 (patch)
tree106ca9385cb7ba24d3a639b9b9faa5f47c6b880f /data/maps/the_repetitive/connections.txtpb
parent176175871f2074a83c49a1ed60e96cf7e9b9de8d (diff)
downloadlingo2-archipelago-c75db26e333f9d9863743e29166b6384f7270f44.tar.gz
lingo2-archipelago-c75db26e333f9d9863743e29166b6384f7270f44.tar.bz2
lingo2-archipelago-c75db26e333f9d9863743e29166b6384f7270f44.zip
Added the_literate
Diffstat (limited to 'data/maps/the_repetitive/connections.txtpb')
0 files changed, 0 insertions, 0 deletions
00; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: 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/nodes/player.gd"


func _ready():
	var ap = global.get_node("Archipelago")
	var gamedata = global.get_node("Gamedata")

	var map_id = gamedata.map_id_by_name.get(global.map)
	for door in gamedata.objects.get_doors():
		if door.get_map_id() != map_id:
			continue

		if not door.has_ap_id():
			continue

		if door.get_type() == gamedata.SCRIPT_proto.DoorType.ITEM_ONLY:
			continue

		var locationListener = ap.SCRIPT_locationListener.new()
		locationListener.location_id = door.get_ap_id()
		locationListener.name = "locationListener_%d" % door.get_ap_id()

		for panel_ref in door.get_panels():
			# TODO: specific answers
			var panel_data = gamedata.objects.get_panels()[panel_ref.get_panel()]
			locationListener.senders.append(NodePath("/root/scene/" + panel_data.get_path()))

		get_parent().add_child.call_deferred(locationListener)

	for letter in gamedata.objects.get_letters():
		var room = gamedata.objects.get_rooms()[letter.get_room_id()]
		if room.get_map_id() != map_id:
			continue

		var locationListener = ap.SCRIPT_locationListener.new()
		locationListener.location_id = letter.get_ap_id()
		locationListener.name = "locationListener_%d" % letter.get_ap_id()
		locationListener.senders.append(NodePath("/root/scene/" + letter.get_path()))

		get_parent().add_child.call_deferred(locationListener)

	for mastery in gamedata.objects.get_masteries():
		var room = gamedata.objects.get_rooms()[mastery.get_room_id()]
		if room.get_map_id() != map_id:
			continue

		var locationListener = ap.SCRIPT_locationListener.new()
		locationListener.location_id = mastery.get_ap_id()
		locationListener.name = "locationListener_%d" % mastery.get_ap_id()
		locationListener.senders.append(NodePath("/root/scene/" + mastery.get_path()))

		get_parent().add_child.call_deferred(locationListener)

	for ending in gamedata.objects.get_endings():
		var room = gamedata.objects.get_rooms()[ending.get_room_id()]
		if room.get_map_id() != map_id:
			continue

		var locationListener = ap.SCRIPT_locationListener.new()
		locationListener.location_id = ending.get_ap_id()
		locationListener.name = "locationListener_%d" % ending.get_ap_id()
		locationListener.senders.append(NodePath("/root/scene/" + ending.get_path()))

		get_parent().add_child.call_deferred(locationListener)

	super._ready()