V0.2.1 : Fixed a bug involving Ring of Tenacity (now rounds damage up, mainly so that hunger still hurts)

This commit is contained in:
Evan Debenham
2014-10-12 00:24:37 -04:00
parent ad32c4d984
commit 56708b36aa
2 changed files with 3 additions and 3 deletions
@@ -842,7 +842,7 @@ public class Hero extends Char {
tenacity += ((RingOfTenacity.Tenacity)buff).level;
}
if (tenacity != 0) //(HT - HP)/HT = heroes current % missing health.
dmg *= Math.pow(0.9, tenacity*((float)(HT - HP)/HT));
dmg = (int)Math.ceil((float)dmg * Math.pow(0.9, tenacity*((float)(HT - HP)/HT)));
super.damage( dmg, src );