From edf19f5f0d4d23d11008a9b59163527caf3f1369 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 24 Mar 2018 22:06:07 -0400 Subject: XEEN: Fix showing training costs for next level --- engines/xeen/locations.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/xeen') 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(), -- cgit v1.2.3