Merge pull request #373 from mikeprimm/master

Fix armor calculation - round vs truncate
This commit is contained in:
mikeprimm 2011-08-03 20:46:09 -07:00
commit 2f7e7ad87b

View File

@ -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);
}
}