refactor(skill): 移除技能配置中未使用的cd和t_num字段

清理技能配置接口和实现代码,删除已不再使用的冷却时间(cd)和目标数量(t_num)字段。
在SCastSystem中,将目标数量计算简化为固定使用最小值1,因为t_num字段已废弃。
同时移除SkillView中已注释掉的旧逻辑代码。
This commit is contained in:
panw
2026-03-12 16:27:01 +08:00
parent 876b3f9a30
commit d5e03d7856
3 changed files with 12 additions and 15 deletions

View File

@@ -151,7 +151,7 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
if (a.lane !== b.lane) return a.lane - b.lane;
return a.dis - b.dis;
});
const maxTargets = Math.max(GameConst.Skill.MIN_TARGET_COUNT, config.t_num || 1);
const maxTargets = Math.max(GameConst.Skill.MIN_TARGET_COUNT, 1);
return list.slice(0, maxTargets).map(item => item.view);
}
}