v0.3.4: externalized default hero name
This commit is contained in:
parent
95ab06888c
commit
c19e6c2442
|
@ -164,7 +164,7 @@ public class Hero extends Char {
|
||||||
|
|
||||||
public Hero() {
|
public Hero() {
|
||||||
super();
|
super();
|
||||||
name = "you";
|
name = Messages.get(this, "name");
|
||||||
|
|
||||||
HP = HT = 20;
|
HP = HT = 20;
|
||||||
STR = STARTING_STR;
|
STR = STARTING_STR;
|
||||||
|
@ -238,7 +238,7 @@ public class Hero extends Char {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String givenName(){
|
public String givenName(){
|
||||||
return name.equals("you") ? className() : name;
|
return name.equals(Messages.get(this, "name")) ? className() : name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void live() {
|
public void live() {
|
||||||
|
|
|
@ -177,6 +177,7 @@ actors.buffs.weakness.desc=Your gear suddenly feels a lot heavier.\n\nWeakening
|
||||||
|
|
||||||
|
|
||||||
#hero
|
#hero
|
||||||
|
actors.hero.hero.name=you
|
||||||
actors.hero.hero.leave=One does not simply leave Pixel Dungeon.
|
actors.hero.hero.leave=One does not simply leave Pixel Dungeon.
|
||||||
actors.hero.hero.level_up=level up!
|
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.
|
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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user