feat(战斗): 调整击退机制和技能配置

- 新增后退范围配置项,统一管理击退距离
- 提高英雄击退几率从20%到50%
- 调整"蓄力一击"技能冷却时间从1秒到3秒
- 优化击退逻辑,仅对怪物生效并应用配置的后退范围
- 启用调试模式以方便战斗系统调试
This commit is contained in:
panw
2026-02-04 16:42:46 +08:00
parent 0a8f2056c3
commit b42cc2e662
5 changed files with 36 additions and 35 deletions

View File

@@ -116,9 +116,9 @@ export class Hero extends ecs.Entity {
// 初始化 buff/debuff 系统
model.initAttrs();
model.Attrs[Attrs.REVIVE_COUNT]=1
model.Attrs[Attrs.BACK_CHANCE]=20
model.Attrs[Attrs.CON_RES]=10
model.Attrs[Attrs.REVIVE_COUNT]=1 // 复活次数
model.Attrs[Attrs.BACK_CHANCE]=50 // 击退对手几率
model.Attrs[Attrs.CON_RES]=10 // 控制抗性
this.add(hv);
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
const move = this.get(HeroMoveComp);