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
@@ -22,13 +22,12 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
public class Combo extends Buff {
private static String TXT_COMBO = "%d hit combo!";
public int count = 0;
@Override
@@ -38,7 +37,7 @@ public class Combo extends Buff {
@Override
public String toString() {
return "Combo";
return Messages.get(this, "name");
}
public int hit( Char enemy, int damage ) {
@@ -49,7 +48,7 @@ public class Combo extends Buff {
Badges.validateMasteryCombo( count );
GLog.p( TXT_COMBO, count );
GLog.p( Messages.get(this, "combo", count) );
postpone( 1.41f - count / 10f );
return (int)(damage * (count - 2) / 5f);
@@ -69,13 +68,9 @@ public class Combo extends Buff {
@Override
public String desc() {
return "Through building momentum, the gladiator deals bonus damage.\n" +
"\n" +
"Your combo will keep building with quick attacks that do not miss. " +
"The higher your combo gets, the faster your attacks will need to be. " +
"failing to land a hit quickly enough will reset the combo.\n" +
"\n" +
(count <= 2 ? "Your combo has not built up enough to give you bonus damage yet." :
"Your combo is currently giving you " + ((count - 2) * 20f) + " % bonus damage.");
return Messages.get(this, "desc") +
(count <= 2 ?
Messages.get(this, "notenough") :
Messages.get(this, "bonusdmg", ((count - 2) * 20f)));
}
}