Merge pull request #373 from mikeprimm/master
Fix armor calculation - round vs truncate
This commit is contained in:
commit
1f9790b5b6
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