Add generic active-ability placeholder VFX (game.visual.ability_placeholder)

Server:
- Add AbilityPlaceholderVisualPush DTO (sourceInstanceId, abilityName,
  sourceAffinity, targets, targetMode: Self|Unit|Tile|PlayerZone|None)
- Promote ComputeVisualTargets to GameHandlerBase (protected static)
- Add ComputeAbilityVisualTargets — extends Repentance logic with
  Self/ExactSelf + All-count detection, falls back to enemy ArchSpirit
- Add ComputeAbilityTargetMode — derives mode from visual targets +
  sourceInstanceId (PlayerZone when target is a player account ID)
- Add FindSourceUnit helper — searches Field + ArchSpirit across all players
- GameActivateAbilityHandler captures source unit + ability def before
  ActivateAbility, skips push when Animation.AssetUrl is set

Client:
- Add ability_placeholder_visual signal and push router case in Game.gd
- New AbilityPlaceholderFx component: Self/None → radial glow burst + two
  expanding rings on source; Unit/Tile/PlayerZone → orb projectile from
  source unit body to resolved target, impact ring + burst motes on arrival
- Wire component in game_screen.gd (_ready, _exit_tree, 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 22:59:57 -04:00
co-authored by Claude Happy
parent 469e72b0f6
commit 3bbf419836
7 changed files with 527 additions and 41 deletions
+8
View File
@@ -89,6 +89,11 @@ signal reveal_choice_pick_request(request_data: Dictionary)
## cardInstanceId, cardDefinitionId, cardName, affinity, targets
signal repentance_placeholder_visual(payload: Dictionary)
## Emitted when an Active ability fires with no custom animation asset.
## Payload keys: eventId, sessionId, actorAccountId, sourceInstanceId,
## abilityName, sourceAffinity, targets, targetMode
signal ability_placeholder_visual(payload: Dictionary)
# ── State ─────────────────────────────────────────────────────────────────────
var session_id : String = ""
@@ -828,3 +833,6 @@ func _on_server_push(type: String, payload: Variant) -> void:
"game.visual.repentance_placeholder":
repentance_placeholder_visual.emit(payload as Dictionary)
"game.visual.ability_placeholder":
ability_placeholder_visual.emit(payload as Dictionary)