Fix armor calculation - round vs truncate
This commit is contained in:
parent
3d3e7b40bb
commit
788b22b925
1 changed files with 1 additions and 1 deletions
|
|
@ -31,6 +31,6 @@ public class Armor {
|
||||||
currentDurability += maxDurability - durability;
|
currentDurability += maxDurability - durability;
|
||||||
baseArmorPoints += armorPoints[i];
|
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