v0.3.4: externalized default hero name

This commit is contained in:
Evan Debenham 2016-01-03 19:57:28 -05:00 committed by Evan Debenham
parent 95ab06888c
commit c19e6c2442
2 changed files with 3 additions and 2 deletions

View File

@ -164,7 +164,7 @@ public class Hero extends Char {
public Hero() {
super();
name = "you";
name = Messages.get(this, "name");
HP = HT = 20;
STR = STARTING_STR;
@ -238,7 +238,7 @@ public class Hero extends Char {
}
public String givenName(){
return name.equals("you") ? className() : name;
return name.equals(Messages.get(this, "name")) ? className() : name;
}
public void live() {

View File

@ -177,6 +177,7 @@ actors.buffs.weakness.desc=Your gear suddenly feels a lot heavier.\n\nWeakening
#hero
actors.hero.hero.name=you
actors.hero.hero.leave=One does not simply leave Pixel Dungeon.
actors.hero.hero.level_up=level up!
actors.hero.hero.new_level=Welcome to level %d! Now you are healthier and more focused. It's easier for you to hit enemies and dodge their attacks.