mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
HYPNO: show total score when you finish the arcade level of the spider demo
This commit is contained in:
@@ -63,6 +63,14 @@ void SpiderEngine::runAfterArcade(ArcadeShooting *arc) {
|
||||
assert(_score >= _bonus);
|
||||
_score -= _bonus;
|
||||
}
|
||||
|
||||
if (isDemo() && _restoredContentEnabled) {
|
||||
if (_health == 0)
|
||||
showScore("Spider-man was defeated!");
|
||||
else
|
||||
showScore("Spider-Man saved the day!");
|
||||
_score = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void SpiderEngine::initSegment(ArcadeShooting *arc) {
|
||||
|
||||
@@ -1088,8 +1088,9 @@ void SpiderEngine::runGiveUp() {
|
||||
}
|
||||
|
||||
void SpiderEngine::showScore(const Common::String prefix) {
|
||||
Common::String message = Common::String::format("%s\n\
|
||||
You finished the game with a score of %d points", prefix.c_str(), _score);
|
||||
Common::String fmessage = "%s\nYou finished the ";
|
||||
fmessage = fmessage + (isDemo() ? "demo" : "game") + " with a score of %d points";
|
||||
Common::String message = Common::String::format(fmessage.c_str(), prefix.c_str(), _score);
|
||||
GUI::MessageDialog dialog(message);
|
||||
dialog.runModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user