From 793564a44706b302921fae599f5cbe2fb8590e67 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 22 Apr 2023 18:45:03 -0400 Subject: Added traps --- Archipelago/client.gd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Archipelago/client.gd') diff --git a/Archipelago/client.gd b/Archipelago/client.gd index dba8227..97e2ca4 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd @@ -523,7 +523,7 @@ func processItem(item, index, from): _has_colors.append(lcol) emit_signal("evaluate_solvability") - # Show a message about the item if it's new. + # Show a message about the item if it's new. Also apply effects here. if index != null and index > _last_new_item: _last_new_item = index saveLocaldata() @@ -545,6 +545,12 @@ func processItem(item, index, from): else: messages_node.showMessage("Received %s from %s" % [item_name, player_name]) + var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") + if item_name == "Slowness Trap": + effects_node.trigger_slowness_trap() + if item_name == "Iceland Trap": + effects_node.trigger_iceland_trap() + func doorIsVanilla(door): return !_mentioned_doors.has(door) -- cgit 1.4.1