v0.2.3: refactored logic to distinguish between a Hero's class name, and given name.

Note that given name is only going to be set by donation features, which are not in the open source, but the refactor is generally beneficial so I'm putting it in anyway.
This commit is contained in:
Evan Debenham
2014-12-19 16:31:10 -05:00
parent b62090ae33
commit 353dc49fa4
5 changed files with 10 additions and 6 deletions
@@ -98,7 +98,7 @@ public class DriedRose extends Artifact {
hero.sprite.operate(hero.pos);
if (!firstSummon) {
ghost.yell(ghost.VOICE_HELLO + Dungeon.hero.className());
ghost.yell(ghost.VOICE_HELLO + Dungeon.hero.givenName());
Sample.INSTANCE.play( Assets.SND_GHOST );
firstSummon = true;
} else