altered atr vs def formula
This commit is contained in:
1 parent
b343f4d6d7
commit
77fda6a18c
1 file changed
+1
-10
@@ -645,16 +645,7 @@ public enum CombatManager {
|
||||
errorTrack = 4;
|
||||
|
||||
//Get hit chance
|
||||
|
||||
int chance;
|
||||
float dif = atr - defense;
|
||||
|
||||
if (dif > 100)
|
||||
chance = 94;
|
||||
else if (dif < -100)
|
||||
chance = 4;
|
||||
else
|
||||
chance = (int) ((0.45 * dif) + 49);
|
||||
int chance = (int)((atr-((atr+defense)*0.33f))/((defense-((atr+defense)*0.33f))+(atr-((atr+defense)*0.33f)))) * 100;
|
||||
|
||||
errorTrack = 5;
|
||||
|
||||
|
||||
Reference in new issue
Block a user