Skip to content

Commit

Permalink
random seeds!(hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
kithr1 committed Sep 25, 2024
1 parent 2e9b0ae commit 9629e82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/config/general.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// still has them in the ROM. This is because the developers forgot
// to define NDEBUG before release, however this has been changed as
// Ruby's actual debug build does not use the AGBPrint features.
#define NDEBUG

// #define NDEBUG

// To enable printf debugging, comment out "#define NDEBUG". This allows
// the various AGBPrint functions to be used. (See include/gba/isagbprint.h).
Expand Down
1 change: 1 addition & 0 deletions include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ struct SaveBlock3
#if OW_USE_FAKE_RTC
struct Time fakeRTC;
#endif
u32 masterSeed;
};

extern struct SaveBlock3 *gSaveBlock3Ptr;
Expand Down
2 changes: 2 additions & 0 deletions src/main_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,8 @@ static void Task_NewGameBirchSpeech_ProcessModeMenuInput(u8 taskId)
case 1:
PlaySE(SE_SELECT);
gSaveBlock2Ptr->gameMode = 1;
u32 randomSeed = Random32();
gSaveBlock3Ptr->masterSeed = randomSeed;
gTasks[taskId].func = Task_NewGameBirchSpeech_ShrinkPlayer;
}
}
Expand Down

0 comments on commit 9629e82

Please sign in to comment.