feat: update vfx

This commit is contained in:
2026-06-18 14:04:06 +08:00
parent 5354d8b30f
commit 78f071b728
18 changed files with 704 additions and 62 deletions
+8
View File
@@ -1025,6 +1025,14 @@ func _scatter_player_tiles(player_node: Node):
# Notify the player
SfxManager.rpc("play_rpc", "tile_scatter")
NotificationManager.send_message(player_node, "Not in Safe Zone! Tiles scattered!", NotificationManager.MessageType.WARNING)
# Playerboard scatter VFX: one-shot, only on the affected player's own UI.
# Routed through the player node (same pattern as play_scatter_knock) because
# the player-node name is not a valid network peer ID for rpc_id here.
if can_rpc():
player_node.rpc("play_playerboard_scatter")
else:
player_node.play_playerboard_scatter()
# Screen shake and animation
if can_rpc():