about summary refs log tree commit diff stats
path: root/apworld/client/rainbowText.gd
blob: 9a4c1d05c334a40bd5c7d5dd0fe627d8710f7b1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
extends RichTextEffect

var bbcode = "rainbow"


func _process_custom_fx(char_fx: CharFXTransform):
	char_fx.color = Color.from_hsv(
		char_fx.elapsed_time - floor(char_fx.elapsed_time), 1.0, 1.0, 1.0
	)
	return true
"n">get_node("scene").get_path_to(self).get_concatenated_names() ) var gamedata = global.get_node("Gamedata") var door_id = gamedata.get_door_for_map_node_path(global.map, node_path) if door_id != null: var ap = global.get_node("Archipelago") var item_lock = ap.get_item_id_for_door(door_id) if item_lock != null: item_id = item_lock[0] item_amount = item_lock[1] self.senders = [] self.senderGroup = [] self.nested = false self.complete_at = 0 self.max_length = 0 self.excludeSenders = [] call_deferred("_readier") if global.map == "the_sun_temple": if name == "spe_EndPlatform" or name == "spe_entry_2": senders = [NodePath("/root/scene/Panels/EndCheck_dog")] if global.map == "the_parthenon": if name == "spe_entry_1": senders = [NodePath("/root/scene/Panels/EndCheck_dog")] super._ready() func _readier(): var ap = global.get_node("Archipelago") if ap.client.getItemAmount(item_id) >= item_amount: handleTriggered()