v0.3.4: externalized misc item strings
This commit is contained in:
committed by
Evan Debenham
parent
106ec11708
commit
95ab06888c
@@ -21,6 +21,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
@@ -32,8 +33,6 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
|
||||
public class Dewdrop extends Item {
|
||||
|
||||
private static final String TXT_VALUE = "%+dHP";
|
||||
|
||||
{
|
||||
image = ItemSpriteSheet.DEWDROP;
|
||||
@@ -57,9 +56,9 @@ public class Dewdrop extends Item {
|
||||
if (effect > 0) {
|
||||
hero.HP += effect;
|
||||
hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
|
||||
hero.sprite.showStatus( CharSprite.POSITIVE, TXT_VALUE, effect );
|
||||
hero.sprite.showStatus( CharSprite.POSITIVE, Messages.get(this, "value", effect) );
|
||||
} else {
|
||||
GLog.i("You already have full health.");
|
||||
GLog.i( Messages.get(this, "already_full") );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -82,8 +81,4 @@ public class Dewdrop extends Item {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String info() {
|
||||
return "A crystal clear dewdrop.\n\nDue to the magic of this place, pure water has minor restorative properties.";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user