v0.4.1: buffed the ring of tenacity

This commit is contained in:
Evan Debenham 2016-07-05 03:35:24 -04:00 committed by Evan Debenham
parent 7ef2252cac
commit 23900da5c9

View File

@ -935,7 +935,7 @@ public class Hero extends Char {
int tenacity = RingOfTenacity.getBonus(this, RingOfTenacity.Tenacity.class);
if (tenacity != 0) //(HT - HP)/HT = heroes current % missing health.
dmg = (int)Math.ceil((float)dmg * Math.pow(0.9, tenacity*((float)(HT - HP)/HT)));
dmg = (int)Math.ceil((float)dmg * Math.pow(0.85, tenacity*((float)(HT - HP)/HT)));
//TODO improve this when I have proper damage source logic
if (belongings.armor != null && belongings.armor.hasGlyph(AntiMagic.class)