PlayerCombatStats defense proper rounding
This commit is contained in:
@@ -424,9 +424,9 @@ public class PlayerCombatStats {
|
|||||||
(weaponMastery / 2.0) +
|
(weaponMastery / 2.0) +
|
||||||
dexterity * 2.0 +
|
dexterity * 2.0 +
|
||||||
bonusValues;
|
bonusValues;
|
||||||
defense *= 1.0f + percentBonus;
|
defense *= 1.0f + percentBonus + stanceValue;
|
||||||
defense *= 1.0f + stanceValue;
|
//defense *= 1.0f + stanceValue;
|
||||||
defense += 0.5f;
|
defense = Math.round(defense);
|
||||||
this.defense = (int) defense;
|
this.defense = (int) defense;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user