Browse Source

altered atr vs def formula

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
77fda6a18c
  1. 11
      src/engine/gameManager/CombatManager.java

11
src/engine/gameManager/CombatManager.java

@ -645,16 +645,7 @@ public enum CombatManager {
errorTrack = 4; errorTrack = 4;
//Get hit chance //Get hit chance
int chance = (int)((atr-((atr+defense)*0.33f))/((defense-((atr+defense)*0.33f))+(atr-((atr+defense)*0.33f)))) * 100;
int chance;
float dif = atr - defense;
if (dif > 100)
chance = 94;
else if (dif < -100)
chance = 4;
else
chance = (int) ((0.45 * dif) + 49);
errorTrack = 5; errorTrack = 5;

Loading…
Cancel
Save