diff options
author | Paul Gilbert | 2015-02-01 16:51:04 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-01 16:51:04 -0500 |
commit | 2b2ce19012c6b51e35704331d8b322f38c97f462 (patch) | |
tree | a74142d69211943ecee83600576ba6c48e8d14c6 /engines/xeen/town.cpp | |
parent | d57c9f20213e66539fc7686a8b8abc26090aaa59 (diff) | |
download | scummvm-rg350-2b2ce19012c6b51e35704331d8b322f38c97f462.tar.gz scummvm-rg350-2b2ce19012c6b51e35704331d8b322f38c97f462.tar.bz2 scummvm-rg350-2b2ce19012c6b51e35704331d8b322f38c97f462.zip |
XEEN: Fixes for Character Info dialog stat details display
Diffstat (limited to 'engines/xeen/town.cpp')
-rw-r--r-- | engines/xeen/town.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp index 2f31113146..3449c2e3c3 100644 --- a/engines/xeen/town.cpp +++ b/engines/xeen/town.cpp @@ -51,7 +51,7 @@ Town::Town(XeenEngine *vm) : _vm(vm) { _dayOfWeek = 0; _uncurseCost = 0; _flag1 = false; - _nextExperienceLevel = 0; + _experienceToNextLevel = 0; _drawCtr1 = _drawCtr2 = 0; } @@ -458,14 +458,14 @@ Common::String Town::createTownText(Character &ch) { } } - _nextExperienceLevel = ch.nextExperienceLevel(); + _experienceToNextLevel = ch.experienceToNextLevel(); - if (_nextExperienceLevel >= 0x10000 && ch._level._permanent < _v20) { + if (_experienceToNextLevel >= 0x10000 && ch._level._permanent < _v20) { int nextLevel = ch._level._permanent + 1; return Common::String::format(EXPERIENCE_FOR_LEVEL, - ch._name.c_str(), _nextExperienceLevel, nextLevel); + ch._name.c_str(), _experienceToNextLevel, nextLevel); } else if (ch._level._permanent >= 20) { - _nextExperienceLevel = 1; + _experienceToNextLevel = 1; msg = Common::String::format(LEARNED_ALL, ch._name.c_str()); } else { msg = Common::String::format(ELIGIBLE_FOR_LEVEL, @@ -906,7 +906,7 @@ Character *Town::doTrainingOptions(Character *c) { break; case Common::KEYCODE_t: - if (_nextExperienceLevel) { + if (_experienceToNextLevel) { sound.playSample(nullptr, 0); _drawFrameIndex = 0; @@ -927,7 +927,7 @@ Character *Town::doTrainingOptions(Character *c) { File f(isDarkCc ? "prtygd.voc" : "trainin2.voc"); sound.playSample(&f, 1); - c->_experience -= c->currentExperienceLevel() - + c->_experience -= c->nextExperienceLevel() - (c->getCurrentExperience() - c->_experience); c->_level._permanent++; |