v0.3.4: externalized all buff strings

This commit is contained in:
Evan Debenham
2015-12-28 20:23:15 -05:00
committed by Evan Debenham
parent 801fd58e7c
commit 77d16d5a93
42 changed files with 239 additions and 305 deletions
@@ -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);
}
}