v2.3.0: excess charge talent now uses new shielding floating text

This commit is contained in:
Evan Debenham
2024-01-11 16:10:58 -05:00
parent efde9c998b
commit ef51aede83

View File

@@ -416,7 +416,9 @@ public abstract class Wand extends Item {
//inside staff
if (charger != null && charger.target == Dungeon.hero && !Dungeon.hero.belongings.contains(this)){
if (Dungeon.hero.hasTalent(Talent.EXCESS_CHARGE) && curCharges >= maxCharges){
Buff.affect(Dungeon.hero, Barrier.class).setShield(Math.round(buffedLvl()*0.67f*Dungeon.hero.pointsInTalent(Talent.EXCESS_CHARGE)));
int shieldToGive = Math.round(buffedLvl()*0.67f*Dungeon.hero.pointsInTalent(Talent.EXCESS_CHARGE));
Buff.affect(Dungeon.hero, Barrier.class).setShield(shieldToGive);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING);
}
}