Add Repentance placeholder VFX — server broadcast + client effect

Server:
- Add RepentancePlaceholderVisualPush DTO to GameMessages.cs
- Add BroadcastToAllViewersAsync helper on GameHandlerBase
- GamePlayCardHandler emits game.visual.repentance_placeholder to all
  players and spectators after a Repentance card resolves; sets
  hasCustomAnimation based on ability Animation.AssetUrl presence

Client:
- Add repentance_placeholder_visual signal and push-router case in Game.gd
- New RepentancePlaceholderFx component: resolves source/target world
  positions, picks affinity + player team colors, tweens a glowing orb
  projectile to target and plays a torus ring + burst-mote impact
- Wire component in game_screen.gd (_ready, _exit_tree, signal handler)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-05-11 16:06:51 -04:00
co-authored by Claude Happy
parent ea840b45d1
commit 0a20b9880f
8 changed files with 493 additions and 21 deletions
+8
View File
@@ -83,6 +83,11 @@ signal player_pick_request(request_data: Dictionary)
## Payload keys: requestId, sourceInstanceId, effectType, revealedCardsJson, count
signal reveal_choice_pick_request(request_data: Dictionary)
## Emitted when a Repentance card resolves with no custom animation asset.
## Payload keys: eventId, sessionId, actorAccountId, sourceArchSpiritInstanceId,
## cardInstanceId, cardDefinitionId, cardName, affinity, targets, hasCustomAnimation
signal repentance_placeholder_visual(payload: Dictionary)
# ── State ─────────────────────────────────────────────────────────────────────
var session_id : String = ""
@@ -819,3 +824,6 @@ func _on_server_push(type: String, payload: Variant) -> void:
"game.ability.reveal_choice_pick_request":
reveal_choice_pick_request.emit(payload as Dictionary)
"game.visual.repentance_placeholder":
repentance_placeholder_visual.emit(payload as Dictionary)