summaryrefslogtreecommitdiff
path: root/src/koopatlas/starcoin.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-29 16:15:00 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-29 16:15:00 -0500
commit00c0d32c57bea82f703b818513680ebcdc7775ce (patch)
treee52a624375889ff6174143dd672ca7eb451d2e64 /src/koopatlas/starcoin.cpp
parent2aa698b56c83df5764c7af12fbbad74eeedf8b1d (diff)
downloadkamek-00c0d32c57bea82f703b818513680ebcdc7775ce.tar.gz
kamek-00c0d32c57bea82f703b818513680ebcdc7775ce.zip
Added secret hardmode, press A/B/+ on star coin screen
Diffstat (limited to '')
-rw-r--r--src/koopatlas/starcoin.cpp35
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",