v0.4.1: fixed armor max dr values not being limited to the min value

This commit is contained in:
Evan Debenham 2016-07-18 01:47:02 -04:00 committed by Evan Debenham
parent 3ea94575bc
commit c531d6e580

View File

@ -222,7 +222,7 @@ public class Armor extends EquipableItem {
if (glyph != null) effectiveTier += glyph.tierDRAdjust();
effectiveTier = Math.max(0, effectiveTier);
return effectiveTier * (2 + lvl);
return Math.max(DRMin(lvl), effectiveTier * (2 + lvl));
}
public final int DRMin(){