Sync pokemon jump documentation

This commit is contained in:
GriffinR committed 2022-03-02 02:05:07 -05:00
1 parent 82f0cced2d
commit 16aacb0648
32 files changed
+2441 -2069

No files matched your search

+1 -1
View File
@@ -155,6 +155,6 @@ static void ResetMiniGamesResults(void)
{
CpuFill16(0, &gSaveBlock2Ptr->berryCrush, sizeof(struct BerryCrush));
SetBerryPowder(&gSaveBlock2Ptr->berryCrush.berryPowderAmount, 0);
ResetPokeJumpResults();
ResetPokemonJumpRecords();
CpuFill16(0, &gSaveBlock2Ptr->berryPick, sizeof(struct BerryPickingResults));
}
+2413 -2064
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -1,4 +1,5 @@
#include "global.h"
#include "random.h"
// The number 1103515245 comes from the example implementation
// of rand and srand in the ISO C standard.
@@ -7,7 +8,7 @@ u32 gRngValue;
u16 Random(void)
{
gRngValue = 1103515245 * gRngValue + 24691;
gRngValue = ISO_RANDOMIZE1(gRngValue);
return gRngValue >> 16;
}