feat: 添加击退效果相关逻辑

1. 新增击退概率、击退距离、击退抗性属性配置
2. 实现击退判定与击退位移逻辑,整合进受击流程
3. 重构后退方法支持自定义击退距离参数
This commit is contained in:
walkpan
2026-05-14 22:52:27 +08:00
parent e97f2b0c48
commit fdc5979484
6 changed files with 47 additions and 24 deletions

View File

@@ -27,6 +27,9 @@ export enum Attrs {
// ==================== 特殊效果属性 ====================
freeze_chance = "freeze_chance", // 冰冻概率
knockback_chance = "knockback_chance", // 击退概率
knockback_distance = "knockback_distance", // 击退距离强化
knockback_res = "knockback_res", // 击退抗性
invincible_time = "invincible_time",// 无敌时间
puncture = "puncture", // 穿刺次数
wfuny = "wfuny", // 风怒