about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-22 18:45:03 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-22 18:45:03 -0400
commit793564a44706b302921fae599f5cbe2fb8590e67 (patch)
tree48fd08034eda561dd5de50a735a8fe77462bd68f /Archipelago/client.gd
parent7c0c676fedef3bbeb5dd04ded5a94fe8933822cf (diff)
downloadlingo-archipelago-793564a44706b302921fae599f5cbe2fb8590e67.tar.gz
lingo-archipelago-793564a44706b302921fae599f5cbe2fb8590e67.tar.bz2
lingo-archipelago-793564a44706b302921fae599f5cbe2fb8590e67.zip
Added traps
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd8
1 files changed, 7 insertions, 1 deletions
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):
523 _has_colors.append(lcol) 523 _has_colors.append(lcol)
524 emit_signal("evaluate_solvability") 524 emit_signal("evaluate_solvability")
525 525
526 # Show a message about the item if it's new. 526 # Show a message about the item if it's new. Also apply effects here.
527 if index != null and index > _last_new_item: 527 if index != null and index > _last_new_item:
528 _last_new_item = index 528 _last_new_item = index
529 saveLocaldata() 529 saveLocaldata()
@@ -545,6 +545,12 @@ func processItem(item, index, from):
545 else: 545 else:
546 messages_node.showMessage("Received %s from %s" % [item_name, player_name]) 546 messages_node.showMessage("Received %s from %s" % [item_name, player_name])
547 547
548 var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects")
549 if item_name == "Slowness Trap":
550 effects_node.trigger_slowness_trap()
551 if item_name == "Iceland Trap":
552 effects_node.trigger_iceland_trap()
553
548 554
549func doorIsVanilla(door): 555func doorIsVanilla(door):
550 return !_mentioned_doors.has(door) 556 return !_mentioned_doors.has(door)