fix: 统一英雄攻击距离并移除冗余最小距离逻辑
将不同英雄类型的攻击距离统一调整为720,简化距离计算逻辑。 移除HeroAttrsComp中根据英雄类型动态计算最小攻击距离的代码,因为所有英雄的最小攻击距离现在均为0。 同时更新MoveSystem中的攻击范围判断逻辑,将远程英雄的最大攻击范围从360调整为720以保持一致性。
This commit is contained in:
@@ -200,11 +200,6 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
const rangeType = this.type as HType.Melee | HType.Mid | HType.Long;
|
||||
const maxRange = HeroDisVal[rangeType];
|
||||
let minRange = 0;
|
||||
if (rangeType === HType.Mid) {
|
||||
minRange = HeroDisVal[HType.Melee];
|
||||
} else if (rangeType === HType.Long) {
|
||||
minRange = HeroDisVal[HType.Mid];
|
||||
}
|
||||
this.maxSkillDistance = maxRange;
|
||||
this.minSkillDistance = minRange;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user