Closed GoogleCodeExporter closed 8 years ago
About rounding:
Sheepluva said it is odd that the hammer (without extra damage) does not kill a
hog with 1 health.
I said this would be an exception to the rule and inconsistent since HW seems
to apply the "round half up" rule so far when calculating the damage.
So I suggest to maybe apply another rounding rule: "always round up" (meaning
if the number is not a whole number, round up to the next whole number, so 0.3
→ 1, 0.5 → 1, 0.7 → 1, but 1 stays 1)
So 1 HP, 1 * (1/3) = ~0.333, rounded up to 1, meaning the hog is killed.
2 HP, 2 * (1/3) = ~0.667, rounded up to 1, 1 damage, and so on.
Original comment by almikes@aol.com
on 8 Aug 2015 at 9:45
fixed in rcd4b0851b060d6b3b8f14a02129167cb12f2bd37
Original comment by sheepyluva
on 8 Aug 2015 at 10:39
Original issue reported on code.google.com by
almikes@aol.com
on 8 Aug 2015 at 8:48