v0.3.4: externalized all remaining actor strings

This commit is contained in:
Evan Debenham
2015-12-29 20:09:44 -05:00
committed by Evan Debenham
parent c3b964a8cc
commit 2c76c77360
53 changed files with 415 additions and 812 deletions
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.LockedFloor;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Vertigo;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.ui.BossHealthBar;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.noosa.audio.Sample;
@@ -58,7 +59,6 @@ public class King extends Mob {
private static final int MAX_ARMY_SIZE = 5;
{
name = "King of Dwarves";
spriteClass = KingSprite.class;
HP = HT = 300;
@@ -103,11 +103,6 @@ public class King extends Mob {
return 14;
}
@Override
public String defenseVerb() {
return "parried";
}
@Override
protected boolean getCloser( int target ) {
return canTryToSummon() ?
@@ -168,7 +163,7 @@ public class King extends Mob {
GLog.p("Your beacon grows stronger!");
}
yell( "You cannot kill me, " + Dungeon.hero.givenName() + "... I am... immortal..." );
yell( Messages.get(this, "defeated") );
}
@Override
@@ -225,26 +220,17 @@ public class King extends Mob {
} while (dist < undeadsToSummon);
}
yell( "Arise, slaves!" );
yell( Messages.get(this, "arise") );
}
@Override
public void notice() {
super.notice();
BossHealthBar.assignBoss(this);
yell( "How dare you!" );
yell( Messages.get(this, "notice") );
}
@Override
public String description() {
return
"The last king of dwarves was known for his deep understanding of processes of life and death. " +
"He has persuaded members of his court to participate in a ritual, that should have granted them " +
"eternal youthfulness. In the end he was the only one, who got it - and an army of undead " +
"as a bonus.";
}
private static final HashSet<Class<?>> RESISTANCES = new HashSet<Class<?>>();
private static final HashSet<Class<?>> RESISTANCES = new HashSet<>();
static {
RESISTANCES.add( ToxicGas.class );
RESISTANCES.add( Death.class );
@@ -257,7 +243,7 @@ public class King extends Mob {
return RESISTANCES;
}
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<Class<?>>();
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<>();
static {
IMMUNITIES.add( Paralysis.class );
IMMUNITIES.add( Vertigo.class );
@@ -273,7 +259,6 @@ public class King extends Mob {
public static int count = 0;
{
name = "undead dwarf";
spriteClass = UndeadSprite.class;
HP = HT = 28;
@@ -338,20 +323,8 @@ public class King extends Mob {
public int dr() {
return 5;
}
@Override
public String defenseVerb() {
return "blocked";
}
@Override
public String description() {
return
"These undead dwarves, risen by the will of the King of Dwarves, were members of his court. " +
"They appear as skeletons with a stunning amount of facial hair.";
}
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<Class<?>>();
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<>();
static {
IMMUNITIES.add( Death.class );
IMMUNITIES.add( Paralysis.class );