refactor(skill): 移除技能配置中未使用的cd和t_num字段
清理技能配置接口和实现代码,删除已不再使用的冷却时间(cd)和目标数量(t_num)字段。 在SCastSystem中,将目标数量计算简化为固定使用最小值1,因为t_num字段已废弃。 同时移除SkillView中已注释掉的旧逻辑代码。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user