v0.3.4: externalized potion strings
This commit is contained in:
committed by
Evan Debenham
parent
4b768ea85c
commit
5ab29b50fa
@@ -22,14 +22,13 @@ package com.shatteredpixel.shatteredpixeldungeon.items.potions;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
|
||||
public class PotionOfMight extends Potion {
|
||||
|
||||
{
|
||||
initials = "Mi";
|
||||
|
||||
bones = true;
|
||||
}
|
||||
|
||||
@@ -40,19 +39,12 @@ public class PotionOfMight extends Potion {
|
||||
hero.STR++;
|
||||
hero.HT += 5;
|
||||
hero.HP += 5;
|
||||
hero.sprite.showStatus( CharSprite.POSITIVE, "+1 str, +5 hp" );
|
||||
GLog.p( "Newfound strength surges through your body." );
|
||||
hero.sprite.showStatus( CharSprite.POSITIVE, Messages.get(this, "msg_1") );
|
||||
GLog.p( Messages.get(this, "msg_2") );
|
||||
|
||||
Badges.validateStrengthAttained();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return
|
||||
"This powerful liquid will course through your muscles, permanently " +
|
||||
"increasing your strength by one point and health by five points.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int price() {
|
||||
return isKnown() ? 200 * quantity : super.price();
|
||||
|
||||
Reference in New Issue
Block a user