refactor: 重构击退机制,将概率改为距离增量

1. 调整近战默认攻击距离从150改为100
2. 将击退相关属性从概率改为击退距离增量,同步更新所有配置、UI显示和技能描述
3. 移除旧的击退概率判定逻辑,改为直接应用击退距离增量
4. 优化受击击退的处理流程,统一参数传递
This commit is contained in:
pan
2026-08-13 11:09:37 +08:00
parent a3375ec3b6
commit eb4b370533
14 changed files with 34 additions and 135 deletions

View File

@@ -174,7 +174,7 @@ export class Monster extends ecs.Entity {
model.speed = hero.speed ?? 800;
model.type = hero.type;
model.fac = FacSet.MON;
// 攻击距离配置优先未配置按攻击定位取默认值近战150 / 中程300 / 远程450
// 攻击距离配置优先未配置按攻击定位取默认值近战100 / 中程300 / 远程450
model.dis = hero.dis ?? HeroDisVal[hero.type as HType.Melee | HType.Mid | HType.Long];
model.posIndex = laneIndex;
if (laneIndex >= 0) {