public void updateHT( boolean boostHP ){ int curHT = HT; HT = 20 + 5*(lvl-1) + HTBoost; float multiplier = RingOfMight.HTMultiplier(this); HT = Math.round(multiplier * HT); if (boostHP){ HP += Math.max(HT - curHT, 0); } HP = Math.min(HP, HT); }
public static int strengthBonus( Char target ){ return getBonus( target, Might.class ); }
public String statsInfo() { if (isIdentified()){ return Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.035, soloBonus()) - 1f))); } else { return Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(3.5f)); } }
"_-_ Charge Speed reduced, primarily at lower levels:\n-20% at +0\n-7.5% at +10\n\n" + "_-_ Upgrade rate adjusted, Food now contributes towards upgrades exactly in line with how much hunger it restores. This means smaller food items will contribute more, larger ones will contribute less. Rations still grant exactly 1 upgrade each.")); changes.addButton( new ChangeButton( new ItemSprite(ItemSpriteSheet.RING_GARNET, null), new RingOfMight().trueName(), "The Ring of Might's strength bonus is already extremely valuable, having it also provide an excellent health boost was simply too much:\n\n" + "_-_ Health granted reduced from +5 per upgrade to +3.5% of max hp per upgrade.\n\n" +
@Override public Item upgrade() { super.upgrade(); updateTargetHT(); return this; }
public int STR() { int STR = this.STR; STR += RingOfMight.strengthBonus( this ); AdrenalineSurge buff = buff(AdrenalineSurge.class); if (buff != null){ STR += buff.boost(); } return (buff(Weakness.class) != null) ? STR - 2 : STR; }
"_-_ Charge Speed reduced, primarily at lower levels:\n-20% at +0\n-7.5% at +10\n\n" + "_-_ Upgrade rate adjusted, Food now contributes towards upgrades exactly in line with how much hunger it restores. This means smaller food items will contribute more, larger ones will contribute less. Rations still grant exactly 1 upgrade each.")); changes.addButton( new ChangeButton( new ItemSprite(ItemSpriteSheet.RING_GARNET, null), new RingOfMight().trueName(), "The Ring of Might's strength bonus is already extremely valuable, having it also provide an excellent health boost was simply too much:\n\n" + "_-_ Health granted reduced from +5 per upgrade to +3.5% of max hp per upgrade.\n\n" +
@Override public void level(int value) { super.level(value); updateTargetHT(); }
public int STR() { int STR = this.STR; STR += RingOfMight.strengthBonus( this ); AdrenalineSurge buff = buff(AdrenalineSurge.class); if (buff != null){ STR += buff.boost(); } return (buff(Weakness.class) != null) ? STR - 2 : STR; }
public String statsInfo() { if (isIdentified()){ return Messages.get(this, "stats", soloBonus(), new DecimalFormat("#.##").format(100f * (Math.pow(1.035, soloBonus()) - 1f))); } else { return Messages.get(this, "typical_stats", 1, new DecimalFormat("#.##").format(3.5f)); } }
@Override public Item upgrade() { super.upgrade(); updateTargetHT(); return this; }
public static int strengthBonus( Char target ){ return getBonus( target, Might.class ); }
public void updateHT( boolean boostHP ){ int curHT = HT; HT = 20 + 5*(lvl-1) + HTBoost; float multiplier = RingOfMight.HTMultiplier(this); HT = Math.round(multiplier * HT); if (boostHP){ HP += Math.max(HT - curHT, 0); } HP = Math.min(HP, HT); }
@Override public void level(int value) { super.level(value); updateTargetHT(); }
public static float HTMultiplier( Char target ){ return (float)Math.pow(1.035, getBonus(target, Might.class)); }
public static float HTMultiplier( Char target ){ return (float)Math.pow(1.035, getBonus(target, Might.class)); }