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,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfElements.Resistance;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.watabou.utils.Bundle;
@@ -54,7 +55,7 @@ public class Charm extends FlavourBuff {
@Override
public String toString() {
return "Charmed";
return Messages.get(this, "name");
}
public static float durationFactor( Char ch ) {
@@ -64,11 +65,6 @@ public class Charm extends FlavourBuff {
@Override
public String desc() {
return "A charm is manipulative magic that can make enemies temporarily adore eachother.\n" +
"\n" +
"Characters affected by charm are unable to directly attack the enemy they are charmed by. " +
"Attacking other targets is still possible however.\n" +
"\n" +
"The charm will last for " + dispTurns() + ".";
return Messages.get(this, "desc", dispTurns());
}
}