aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-24 22:06:07 -0400
committerPaul Gilbert2018-03-24 22:06:07 -0400
commitedf19f5f0d4d23d11008a9b59163527caf3f1369 (patch)
treef3db23b26fa25fc238760ace8ad49412f677ad30 /engines/xeen
parentd5df6f0d7e70f47cfa76470342a02e5b5c3633d6 (diff)
downloadscummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.tar.gz
scummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.tar.bz2
scummvm-rg350-edf19f5f0d4d23d11008a9b59163527caf3f1369.zip
XEEN: Fix showing training costs for next level
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/locations.cpp3
1 files changed, 2 insertions, 1 deletions
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(),