diff options
author | Paul Gilbert | 2018-03-24 22:06:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-24 22:06:07 -0400 |
commit | edf19f5f0d4d23d11008a9b59163527caf3f1369 (patch) | |
tree | f3db23b26fa25fc238760ace8ad49412f677ad30 | |
parent | d5df6f0d7e70f47cfa76470342a02e5b5c3633d6 (diff) | |
download | scummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.tar.gz scummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.tar.bz2 scummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.zip |
XEEN: Fix showing training costs for next level
-rw-r--r-- | devtools/create_xeen/constants.cpp | 3 | ||||
-rw-r--r-- | dists/engine-data/xeen.ccs | bin | 43729 -> 43748 bytes | |||
-rw-r--r-- | engines/xeen/locations.cpp | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/devtools/create_xeen/constants.cpp b/devtools/create_xeen/constants.cpp index db1c73d063..81ca71c130 100644 --- a/devtools/create_xeen/constants.cpp +++ b/devtools/create_xeen/constants.cpp @@ -952,7 +952,8 @@ const char *const EXPERIENCE_FOR_LEVEL = const char *const LEARNED_ALL = "%s has learned all we can teach!"; -const char *const ELIGIBLE_FOR_LEVEL = "%s is eligible for level %d."; +const char *const ELIGIBLE_FOR_LEVEL = "%s is eligible for level %u.\x3l\n" + "\v081Cost\x3r\t000%u"; const char *const TRAINING_TEXT = "\x0D\x03""cTraining Options\n" diff --git a/dists/engine-data/xeen.ccs b/dists/engine-data/xeen.ccs Binary files differindex 801168a2ee..767b7ed5ed 100644 --- a/dists/engine-data/xeen.ccs +++ b/dists/engine-data/xeen.ccs diff --git a/engines/xeen/locations.cpp b/engines/xeen/locations.cpp index 95bb7c7649..7934c05ddf 100644 --- a/engines/xeen/locations.cpp +++ b/engines/xeen/locations.cpp @@ -1043,8 +1043,9 @@ Common::String TrainingLocation::createLocationText(Character &ch) { msg = Common::String::format(Res.LEARNED_ALL, ch._name.c_str()); } else { // Eligble for level increase + uint cost = ch._level._permanent * ch._level._permanent * 10; msg = Common::String::format(Res.ELIGIBLE_FOR_LEVEL, - ch._name.c_str(), ch._level._permanent + 1); + ch._name.c_str(), ch._level._permanent + 1, cost); } return Common::String::format(Res.TRAINING_TEXT, msg.c_str(), |