v2.3.0: replaced recent uses of String.valueOf with Integer.toString

This commit is contained in:
Evan Debenham
2023-12-10 16:34:52 -05:00
parent 85ed79cd1f
commit b859b7a9ea
35 changed files with 46 additions and 46 deletions

View File

@@ -57,7 +57,7 @@ public class WaterOfHealth extends WellWater {
hero.HP = hero.HT;
hero.sprite.emitter().start( Speck.factory( Speck.HEALING ), 0.4f, 4 );
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(hero.HT), FloatingText.HEALING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(hero.HT), FloatingText.HEALING);
CellEmitter.get( hero.pos ).start( ShaftParticle.FACTORY, 0.2f, 3 );

View File

@@ -64,7 +64,7 @@ public abstract class AllyBuff extends Buff{
int exp = hero.lvl <= enemy.maxLvl ? enemy.EXP : 0;
if (exp > 0) {
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(exp), FloatingText.EXPERIENCE);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(exp), FloatingText.EXPERIENCE);
}
hero.earnExp(exp, enemy.getClass());

View File

@@ -213,7 +213,7 @@ public class Berserk extends Buff implements ActionIndicator.Action {
WarriorShield shield = target.buff(WarriorShield.class);
int shieldAmount = Math.round(shield.maxShield() * shieldMultiplier);
shield.supercharge(shieldAmount);
target.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(shieldAmount), FloatingText.SHIELDING );
target.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(shieldAmount), FloatingText.SHIELDING );
BuffIndicator.refreshHero();
}

View File

@@ -393,7 +393,7 @@ public class Combo extends Buff implements ActionIndicator.Action {
BrokenSeal.WarriorShield shield = hero.buff(BrokenSeal.WarriorShield.class);
int shieldAmt = Math.round(shield.maxShield() * hero.pointsInTalent(Talent.LETHAL_DEFENSE) / 3f);
shield.supercharge(shieldAmt);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldAmt), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldAmt), FloatingText.SHIELDING);
}
}
}
@@ -450,7 +450,7 @@ public class Combo extends Buff implements ActionIndicator.Action {
BrokenSeal.WarriorShield shield = hero.buff(BrokenSeal.WarriorShield.class);
int shieldAmt = Math.round(shield.maxShield() * hero.pointsInTalent(Talent.LETHAL_DEFENSE) / 3f);
shield.supercharge(shieldAmt);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldAmt), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldAmt), FloatingText.SHIELDING);
}
}

View File

@@ -38,7 +38,7 @@ public class Corruption extends AllyBuff {
//corrupted enemies are usually fully healed and cleansed of most debuffs
public static void corruptionHeal(Char target){
target.HP = target.HT;
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(target.HT), FloatingText.HEALING);
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(target.HT), FloatingText.HEALING);
for (Buff buff : target.buffs()) {
if (buff.type == Buff.buffType.NEGATIVE
&& !(buff instanceof SoulMark)) {

View File

@@ -55,7 +55,7 @@ public class Healing extends Buff {
}
}
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(healingThisTick()), FloatingText.HEALING);
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healingThisTick()), FloatingText.HEALING);
healingLeft -= healingThisTick();
if (healingLeft <= 0){

View File

@@ -473,7 +473,7 @@ public enum Talent {
hero.HP = Math.min(hero.HP + healing, hero.HT);
hero.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(healing), FloatingText.HEALING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healing), FloatingText.HEALING);
}
}
@@ -557,13 +557,13 @@ public enum Talent {
if (shield != null) {
// 50/75% of total shield
int shieldToGive = Math.round(factor * shield.maxShield() * 0.25f * (1 + hero.pointsInTalent(LIQUID_WILLPOWER)));
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldToGive), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING);
shield.supercharge(shieldToGive);
}
} else {
// 5/7.5% of max HP
int shieldToGive = Math.round( factor * hero.HT * (0.025f * (1+hero.pointsInTalent(LIQUID_WILLPOWER))));
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldToGive), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING);
Buff.affect(hero, Barrier.class).setShield(shieldToGive);
}
}
@@ -671,7 +671,7 @@ public enum Talent {
if (hero.sprite != null) {
Emitter e = hero.sprite.emitter();
if (e != null) e.burst(Speck.factory(Speck.HEALING), hero.pointsInTalent(TEST_SUBJECT));
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(1 + hero.pointsInTalent(TEST_SUBJECT)), FloatingText.HEALING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(1 + hero.pointsInTalent(TEST_SUBJECT)), FloatingText.HEALING);
}
}
if (hero.hasTalent(TESTED_HYPOTHESIS)){

View File

@@ -270,7 +270,7 @@ public class Challenge extends ArmorAbility {
if (hpToHeal > 0){
Dungeon.hero.HP += hpToHeal;
Dungeon.hero.sprite.emitter().start( Speck.factory( Speck.HEALING ), 0.33f, 6 );
Dungeon.hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(hpToHeal), FloatingText.HEALING );
Dungeon.hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(hpToHeal), FloatingText.HEALING );
}
}
}

View File

@@ -252,7 +252,7 @@ public class ElementalStrike extends ArmorAbility {
if (targetsHit > 0){
int shield = Math.round(Math.round(6f*targetsHit*powerMulti));
Buff.affect(hero, Barrier.class).setShield(Math.round(6f*targetsHit*powerMulti));
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shield), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shield), FloatingText.SHIELDING);
}
//*** Vampiric ***

View File

@@ -347,10 +347,10 @@ public class ElementalBlast extends ArmorAbility {
mob.sprite.emitter().burst(Speck.factory(Speck.HEALING), 4);
if (healing > 0) {
mob.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(healing), FloatingText.HEALING);
mob.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healing), FloatingText.HEALING);
}
if (shielding > 0){
mob.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shielding), FloatingText.SHIELDING);
mob.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shielding), FloatingText.SHIELDING);
}
} else {
if (!mob.properties().contains(Char.Property.UNDEAD)) {
@@ -415,7 +415,7 @@ public class ElementalBlast extends ArmorAbility {
charsHit = Math.min(4 + hero.pointsInTalent(Talent.REACTIVE_BARRIER), charsHit);
if (charsHit > 0 && hero.hasTalent(Talent.REACTIVE_BARRIER)){
int shielding = Math.round(charsHit*2.5f*hero.pointsInTalent(Talent.REACTIVE_BARRIER));
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shielding), FloatingText.SHIELDING);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shielding), FloatingText.SHIELDING);
Buff.affect(hero, Barrier.class).setShield(shielding);
}

View File

@@ -200,7 +200,7 @@ public class DeathMark extends ArmorAbility {
target.die(this);
int shld = Math.round(initialHP * (0.125f*Dungeon.hero.pointsInTalent(Talent.DEATHLY_DURABILITY)));
if (shld > 0 && target.alignment != Char.Alignment.ALLY){
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shld), FloatingText.SHIELDING);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shld), FloatingText.SHIELDING);
Buff.affect(Dungeon.hero, Barrier.class).setShield(shld);
}
}

View File

@@ -52,7 +52,7 @@ public class ArmoredBrute extends Brute {
@Override
protected void triggerEnrage () {
Buff.affect(this, ArmoredRage.class).setShield(HT/2 + 1);
sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(HT/2 + 1), FloatingText.SHIELDING );
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2 + 1), FloatingText.SHIELDING );
if (Dungeon.level.heroFOV[pos]) {
sprite.showStatus( CharSprite.NEGATIVE, Messages.get(this, "enraged") );
}

View File

@@ -72,7 +72,7 @@ public class Bat extends Mob {
if (reg > 0) {
HP += reg;
sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(reg), FloatingText.HEALING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(reg), FloatingText.HEALING);
}
return damage;

View File

@@ -95,7 +95,7 @@ public class Brute extends Mob {
protected void triggerEnrage(){
Buff.affect(this, BruteRage.class).setShield(HT/2 + 4);
sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(HT/2 + 4), FloatingText.SHIELDING );
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(HT/2 + 4), FloatingText.SHIELDING );
if (Dungeon.level.heroFOV[pos]) {
SpellSprite.show( this, SpellSprite.BERSERK);
}

View File

@@ -336,7 +336,7 @@ public class DM300 extends Mob {
}
Sample.INSTANCE.play(Assets.Sounds.LIGHTNING);
sprite.emitter().start(SparkParticle.STATIC, 0.05f, 20);
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(30 + (HT - HP)/10), FloatingText.SHIELDING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(30 + (HT - HP)/10), FloatingText.SHIELDING);
}
Buff.affect(this, Barrier.class).setShield( 30 + (HT - HP)/10);

View File

@@ -294,7 +294,7 @@ public class Ghoul extends Mob {
Dungeon.level.mobs.add(ghoul);
Dungeon.level.occupyCell( ghoul );
ghoul.sprite.idle();
ghoul.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(Math.round(ghoul.HT/10f)), FloatingText.HEALING);
ghoul.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.round(ghoul.HT/10f)), FloatingText.HEALING);
super.detach();
return true;
}

View File

@@ -119,7 +119,7 @@ public class Goo extends Mob {
if (Dungeon.level.heroFOV[pos] ){
sprite.emitter().burst( Speck.factory( Speck.HEALING ), healInc );
sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(healInc), FloatingText.HEALING );
sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(healInc), FloatingText.HEALING );
}
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES) && healInc < 3) {
healInc++;

View File

@@ -789,7 +789,7 @@ public abstract class Mob extends Char {
}
if (exp > 0) {
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(exp), FloatingText.EXPERIENCE);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(exp), FloatingText.EXPERIENCE);
}
Dungeon.hero.earnExp(exp, getClass());

View File

@@ -56,7 +56,7 @@ public class RotLasher extends Mob {
@Override
protected boolean act() {
if (HP < HT && (enemy == null || !Dungeon.level.adjacent(pos, enemy.pos))) {
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(Math.min(5, HT - HP)), FloatingText.HEALING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.min(5, HT - HP)), FloatingText.HEALING);
HP = Math.min(HT, HP + 5);
}
return super.act();

View File

@@ -82,11 +82,11 @@ public class Succubus extends Mob {
if (shield > 0){
HP = HT;
if (shield < 5){
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(5-shield), FloatingText.HEALING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(5-shield), FloatingText.HEALING);
}
Buff.affect(this, Barrier.class).setShield(shield);
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shield), FloatingText.SHIELDING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shield), FloatingText.SHIELDING);
} else {
HP += 5 + damage;
sprite.showStatusWithIcon(CharSprite.POSITIVE, "5", FloatingText.HEALING);

View File

@@ -87,10 +87,10 @@ public class Dewdrop extends Item {
hero.HP += effect;
if (shield > 0) Buff.affect(hero, Barrier.class).incShield(shield);
if (effect > 0){
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(effect), FloatingText.HEALING);
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(effect), FloatingText.HEALING);
}
if (shield > 0) {
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(effect), FloatingText.SHIELDING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(shield), FloatingText.SHIELDING );
}
} else if (!force) {

View File

@@ -59,7 +59,7 @@ public class EnergyCrystal extends Item {
//TODO track energy collected maybe? We do already track recipes crafted though..
GameScene.pickUp( this, pos );
hero.sprite.showStatusWithIcon( 0x44CCFF, String.valueOf(quantity), FloatingText.ENERGY );
hero.sprite.showStatusWithIcon( 0x44CCFF, Integer.toString(quantity), FloatingText.ENERGY );
hero.spendAndNext( TIME_TO_PICK_UP );
Sample.INSTANCE.play( Assets.Sounds.ITEM );

View File

@@ -63,7 +63,7 @@ public class Gold extends Item {
Badges.validateGoldCollected();
GameScene.pickUp( this, pos );
hero.sprite.showStatusWithIcon( CharSprite.NEUTRAL, String.valueOf(quantity), FloatingText.GOLD );
hero.sprite.showStatusWithIcon( CharSprite.NEUTRAL, Integer.toString(quantity), FloatingText.GOLD );
hero.spendAndNext( TIME_TO_PICK_UP );
Sample.INSTANCE.play( Assets.Sounds.GOLD, 1, 1, Random.Float( 0.9f, 1.1f ) );

View File

@@ -170,7 +170,7 @@ public class ChaliceOfBlood extends Artifact {
}
if (heal >= 1f) {
target.HP = Math.min(target.HT, target.HP + (int)heal);
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(heal), FloatingText.HEALING);
target.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString((int)heal), FloatingText.HEALING);
}
}

View File

@@ -313,7 +313,7 @@ public class DriedRose extends Artifact {
} else {
int heal = Math.round((1 + level()/3f)*amount);
ghost.HP = Math.min( ghost.HT, ghost.HP + heal);
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(heal), FloatingText.HEALING);
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(heal), FloatingText.HEALING);
updateQuickslot();
}
}

View File

@@ -70,7 +70,7 @@ public class FrozenCarpaccio extends Food {
GLog.i( Messages.get(FrozenCarpaccio.class, "better") );
hero.HP = Math.min( hero.HP + hero.HT / 4, hero.HT );
hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(hero.HT / 4), FloatingText.HEALING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(hero.HT / 4), FloatingText.HEALING );
break;
}
}

View File

@@ -100,7 +100,7 @@ public class Pasty extends Food {
int toHeal = Math.max(3, hero.HT/20);
hero.HP = Math.min(hero.HP + toHeal, hero.HT);
hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(toHeal), FloatingText.HEALING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(toHeal), FloatingText.HEALING );
break;
case WINTER_HOLIDAYS:
hero.belongings.charge(0.5f); //2 turns worth

View File

@@ -55,7 +55,7 @@ public class PhantomMeat extends Food {
Buff.affect( hero, Invisibility.class, Invisibility.DURATION );
hero.HP = Math.min( hero.HP + hero.HT / 4, hero.HT );
hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(hero.HT / 4), FloatingText.HEALING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(hero.HT / 4), FloatingText.HEALING );
PotionOfHealing.cure(hero);
}

View File

@@ -40,7 +40,7 @@ public class PotionOfExperience extends Potion {
@Override
public void apply( Hero hero ) {
identify();
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(hero.maxExp()), FloatingText.EXPERIENCE);
hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(hero.maxExp()), FloatingText.EXPERIENCE);
hero.earnExp( hero.maxExp(), getClass() );
new Flare( 6, 32 ).color(0xFFFF00, true).show( curUser.sprite, 2f );
}

View File

@@ -46,7 +46,7 @@ public class PotionOfShielding extends ExoticPotion {
} else {
//~75% of a potion of healing
Buff.affect(hero, Barrier.class).setShield((int) (0.6f * hero.HT + 10));
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf((int) (0.6f * hero.HT + 10)), FloatingText.SHIELDING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString((int) (0.6f * hero.HT + 10)), FloatingText.SHIELDING );
}
}
}

View File

@@ -39,7 +39,7 @@ public class SealShard extends RemainsItem {
@Override
protected void doEffect(Hero hero) {
Buff.affect(hero, Barrier.class).incShield(hero.HT/10);
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, String.valueOf(hero.HT/10), FloatingText.SHIELDING );
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(hero.HT/10), FloatingText.SHIELDING );
Sample.INSTANCE.play(Assets.Sounds.UNLOCK);
}

View File

@@ -603,7 +603,7 @@ public abstract class Wand extends Item {
float shield = curUser.HT * (0.04f*curWand.curCharges);
if (curUser.pointsInTalent(Talent.SHIELD_BATTERY) == 2) shield *= 1.5f;
Buff.affect(curUser, Barrier.class).setShield(Math.round(shield));
curUser.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shield), FloatingText.SHIELDING);
curUser.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.round(shield)), FloatingText.SHIELDING);
curWand.curCharges = 0;
curUser.sprite.operate(curUser.pos);
Sample.INSTANCE.play(Assets.Sounds.CHARGEUP);
@@ -639,7 +639,7 @@ public abstract class Wand extends Item {
//grants 3/5 shielding
int shieldToGive = 1 + 2 * Dungeon.hero.pointsInTalent(Talent.BACKUP_BARRIER);
Buff.affect(Dungeon.hero, Barrier.class).setShield(shieldToGive);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldToGive), FloatingText.SHIELDING);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING);
//metamorphed. Triggers if wand is highest level hero has
} else if (curUser.heroClass != HeroClass.MAGE) {
@@ -653,7 +653,7 @@ public abstract class Wand extends Item {
//grants 3/5 shielding
int shieldToGive = 1 + 2 * Dungeon.hero.pointsInTalent(Talent.BACKUP_BARRIER);
Buff.affect(Dungeon.hero, Barrier.class).setShield(shieldToGive);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shieldToGive), FloatingText.SHIELDING);
Dungeon.hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING);
}
}
}

View File

@@ -332,7 +332,7 @@ public class WandOfLivingEarth extends DamageWand {
HT = 16 + 8 * wandLevel;
}
if (HP != 0){
sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(healthToAdd), FloatingText.HEALING);
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healthToAdd), FloatingText.HEALING);
}
HP = Math.min(HT, HP + healthToAdd);
//half of hero's evasion

View File

@@ -95,10 +95,10 @@ public class WandOfTransfusion extends Wand {
ch.sprite.emitter().burst(Speck.factory(Speck.HEALING), 2 + buffedLvl() / 2);
if (healing > 0) {
ch.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(healing), FloatingText.HEALING);
ch.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healing), FloatingText.HEALING);
}
if (shielding > 0){
ch.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shielding), FloatingText.SHIELDING);
ch.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shielding), FloatingText.SHIELDING);
}
if (!freeCharge) {

View File

@@ -54,7 +54,7 @@ public class Blocking extends Weapon.Enchantment {
BlockBuff b = Buff.affect(attacker, BlockBuff.class);
int shield = Math.round(powerMulti * (2 + weapon.buffedLvl()));
b.setShield(shield);
attacker.sprite.showStatusWithIcon(CharSprite.POSITIVE, String.valueOf(shield), FloatingText.SHIELDING);
attacker.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shield), FloatingText.SHIELDING);
attacker.sprite.emitter().burst(Speck.factory(Speck.LIGHT), 5);
}