You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
21 lines
1.0 KiB
# 方案:神将技能名飘字
|
|
|
|
> 状态:已落地
|
|
> 预制体:`battleGame/prefab/battleText`(与晕眩等状态飘字相同)
|
|
|
|
## 行为
|
|
|
|
神将释放**主动技能**(`ability_hero_` / 旧 `ability_ult_`)时,在组合占格世界包围盒中心飘出 `Skill.name`(经 `gg.lang.get`)。
|
|
|
|
- 触发:`SkillController` 大招表现路径(非连发/非 extra 头类型 1 跳过延迟时)
|
|
- 文案来源:`ITableSkill.name`;优先从 `abilityId` 解析 Skill id,否则用 `TowerLoadout.activeSkillBaseAtkId`
|
|
- 表现:`MonsterStatusText.playAtWorld`——先弹出(缩放到峰值再回落)→ 停留 1s → 上飘渐隐;字号 28;本地与 AI 神将均触发
|
|
- 部署中心:`SkillPresentationEnv.getDeployed` 遍历全部玩家 compositions(含 AI)
|
|
|
|
## 实现
|
|
|
|
| 文件 | 职责 |
|
|
|---|---|
|
|
| `SkillNameFloater.ts` | 解析表名 + 取组合中心 + 调用飘字 |
|
|
| `MonsterStatusText.ts` | `playAtWorld` 定点飘字 |
|
|
| `SkillController.ts` | 释放大招前调用 `SkillNameFloater.play` |
|
|
|