浏览代码

fix escape algorithm (might still be wrong)

Wei Mingzhi 7 年之前
父节点
当前提交
d0d765cf96
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fight.c

+ 3 - 3
fight.c

@@ -3843,8 +3843,8 @@ PAL_BattlePlayerPerformAction(
             continue;
          }
 
-         def += (SHORT)(g_Battle.rgEnemy[i].e.wFleeRate);
-         def += (g_Battle.rgEnemy[i].e.wLevel + 6) * 2;
+         def += (SHORT)(g_Battle.rgEnemy[i].e.wDexterity);
+         def += (g_Battle.rgEnemy[i].e.wLevel + 6) * 4;
       }
 
       if ((SHORT)def < 0)
@@ -3852,7 +3852,7 @@ PAL_BattlePlayerPerformAction(
          def = 0;
       }
 
-      if (RandomLong(0, str) >= RandomLong(0, def) && !g_Battle.fIsBoss)
+      if (str >= RandomLong(0, def) && !g_Battle.fIsBoss)
       {
          //
          // Successful escape