summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/core.cpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp
index 1b2db0d..6e8db90 100644
--- a/src/koopatlas/core.cpp
+++ b/src/koopatlas/core.cpp
@@ -1081,6 +1081,16 @@ void dScKoopatlas_c::showSaveWindow() {
yesNoWindow->visible = true;
}
+static const wchar_t *completionMsgs[] = {
+ L"butts",
+ L"You've collected all of\nthe \x0B\x014F\xBEEF Star Coins in",
+ L"You have gotten every \x0B\x013B\xBEEF exit\nin",
+ L"You have gotten everything\nin",
+ L"You have collected all the\nnecessary \x0B\x014F\xBEEF coins to enter\nthe Special World!",
+ L"You have collected all the \x0B\x014F\xBEEF Star\nCoins in the game!",
+ L"You've found every \x0B\x013B\xBEEF exit in the\ngame!",
+ L"You've completed everything in\nNEWER SUPER MARIO BROS. Wii!"
+};
void dScKoopatlas_c::beginState_CompletionMsg() {
OSReport("CompletionMsg beginning with type %d\n", pathManager.completionMessageType);
@@ -1111,11 +1121,11 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
int type = pathManager.completionMessageType;
- if (type >= CMP_MSG_COINS && type <= CMP_MSG_WORLD) {
- // get the stuff we need: base BMG string
- static const int bmgs[4] = {-1, 65, 58, 59};
- const wchar_t *baseText = GetBMG()->findStringForMessageID(0, bmgs[type]);
+ const wchar_t *baseText = completionMsgs[type];
+ // Used when we assemble a dynamic message
+ wchar_t text[512];
+ if (type >= CMP_MSG_COINS && type <= CMP_MSG_WORLD) {
// title
int w = pathManager.completionMessageWorldNum;
int l = ((w == 5) || (w == 7)) ? 101 : 100;
@@ -1123,7 +1133,6 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
const char *title = dLevelInfo_c::s_info.getNameForLevel(titleEntry);
// assemble the string
- wchar_t text[512];
wcscpy(text, baseText);
int pos = wcslen(text);
@@ -1138,10 +1147,11 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
text[pos++] = '!';
text[pos++] = 0;
-
- yesNoWindow->T_question_00->SetString(text);
- yesNoWindow->T_questionS_00->SetString(text);
+ baseText = text;
}
+
+ yesNoWindow->T_question_00->SetString(baseText);
+ yesNoWindow->T_questionS_00->SetString(baseText);
}
if (!yesNoWindow->animationActive) {