diff options
Diffstat (limited to 'src/koopatlas')
-rw-r--r-- | src/koopatlas/starcoin.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/koopatlas/starcoin.cpp b/src/koopatlas/starcoin.cpp index 34c1982..5725ceb 100644 --- a/src/koopatlas/starcoin.cpp +++ b/src/koopatlas/starcoin.cpp @@ -373,6 +373,7 @@ static const int secretCode[] = { static const int secretCodeButtons = WPAD_UP|WPAD_DOWN|WPAD_LEFT|WPAD_RIGHT|WPAD_ONE|WPAD_TWO; static int secretCodeIndex = 0; static int minusCount = 0; +extern bool enableHardMode; extern bool enableDebugMode; extern u8 isReplayEnabled; @@ -442,6 +443,38 @@ void dWMStarCoin_c::beginState_Wait() { } void dWMStarCoin_c::executeState_Wait() { int nowPressed = Remocon_GetPressed(GetActiveRemocon()); + if ((GetActiveRemocon()->heldButtons == 0xc10) && (nowPressed & 0xc10)) { // A, B, and Plus + + const int lineCountOn = 9, lineCountOff = 2; + static const wchar_t *linesOn[lineCountOn] = { + L"You've activated Hard Mode", + L" ", + L"In Hard Mode, Mario will die", + L"any time he takes damage, and", + L"the timer will be more strict.", + L" ", + L"So treasure your Yoshi, and", + L"and hold on to your hats, you're", + L"in for a wild ride!", + }; + static const wchar_t *linesOff[lineCountOff] = { + L"Hard Mode has been", + L"turned off.", + }; + + if (!enableHardMode) { + enableHardMode = true; + OSReport("Hard Mode enabled!\n"); + MapSoundPlayer(SoundRelatedClass, SE_VOC_MA_CS_COURSE_IN_HARD, 1); + showSecretMessage(L"Hard Mode", linesOn, lineCountOn); + } else { + enableHardMode = false; + OSReport("Hard Mode disabled!\n"); + showSecretMessage(L"Classic Mario", linesOff, lineCountOff); + } + return; + } + if (nowPressed & secretCodeButtons) { int nextKey = secretCode[secretCodeIndex]; if (nowPressed & nextKey) { @@ -492,6 +525,8 @@ void dWMStarCoin_c::executeState_Wait() { enableDebugMode = !enableDebugMode; if (enableDebugMode) { + MapSoundPlayer(SoundRelatedClass, SE_VOC_MA_GET_PRIZE, 1); + const int msgCount = 9; static const wchar_t *msg[msgCount] = { L"You've found the Totally", |