Fix armor calculation - round vs truncate
This commit is contained in:
parent
8d5233befd
commit
ba9e27f451
1 changed files with 1 additions and 1 deletions
|
|
@ -31,6 +31,6 @@ public class Armor {
|
|||
currentDurability += maxDurability - durability;
|
||||
baseArmorPoints += armorPoints[i];
|
||||
}
|
||||
return (int)(2*baseArmorPoints*currentDurability/baseDurability);
|
||||
return (int)Math.round(2*baseArmorPoints*currentDurability/baseDurability);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue