v0.3.4: externalized potion strings
This commit is contained in:
committed by
Evan Debenham
parent
4b768ea85c
commit
5ab29b50fa
@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.potions;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ConfusionGas;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.StenchGas;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.VenomGas;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
@@ -40,16 +41,9 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.watabou.utils.PathFinder;
|
||||
|
||||
public class PotionOfPurity extends Potion {
|
||||
|
||||
private static final String TXT_FRESHNESS = "You feel uncommon freshness in the air.";
|
||||
private static final String TXT_NO_SMELL = "You've stopped sensing any smells!";
|
||||
|
||||
private static final int DISTANCE = 5;
|
||||
|
||||
{
|
||||
initials = "Pu";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
@@ -103,7 +97,7 @@ public class PotionOfPurity extends Potion {
|
||||
setKnown();
|
||||
|
||||
if (heroAffected) {
|
||||
GLog.p( TXT_FRESHNESS );
|
||||
GLog.p( Messages.get(this, "freshness") );
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -111,7 +105,7 @@ public class PotionOfPurity extends Potion {
|
||||
super.shatter( cell );
|
||||
|
||||
if (heroAffected) {
|
||||
GLog.i( TXT_FRESHNESS );
|
||||
GLog.i( Messages.get(this, "freshness") );
|
||||
setKnown();
|
||||
}
|
||||
|
||||
@@ -120,18 +114,11 @@ public class PotionOfPurity extends Potion {
|
||||
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
GLog.w( TXT_NO_SMELL );
|
||||
GLog.w( Messages.get(this, "no_smell") );
|
||||
Buff.prolong( hero, GasesImmunity.class, GasesImmunity.DURATION );
|
||||
setKnown();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return
|
||||
"This reagent will quickly neutralize all harmful gases in the area of effect. " +
|
||||
"Drinking it will give you a temporary immunity to such gases.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int price() {
|
||||
return isKnown() ? 50 * quantity : super.price();
|
||||
|
||||
Reference in New Issue
Block a user