v0.3.4: externalized all buff strings
This commit is contained in:
committed by
Evan Debenham
parent
801fd58e7c
commit
77d16d5a93
@@ -23,9 +23,9 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ResultDescriptions;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.PointF;
|
||||
import com.watabou.utils.Random;
|
||||
@@ -64,7 +64,7 @@ public class Bleeding extends Buff {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Bleeding";
|
||||
return Messages.get(this, "name");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -81,7 +81,7 @@ public class Bleeding extends Buff {
|
||||
|
||||
if (target == Dungeon.hero && !target.isAlive()) {
|
||||
Dungeon.fail( ResultDescriptions.BLEEDING );
|
||||
GLog.n( "You bled to death..." );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
|
||||
spend( TICK );
|
||||
@@ -100,11 +100,6 @@ public class Bleeding extends Buff {
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return "That wound is leaking a worrisome amount of blood.\n" +
|
||||
"\n" +
|
||||
"Bleeding causes damage every turn. Each turn the damage decreases by a random amount, " +
|
||||
"until the bleeding eventually stops.\n" +
|
||||
"\n" +
|
||||
"The bleeding can currently deal " + level + " max damage.";
|
||||
return Messages.get(this, "desc", level);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user