fix mistakes and bad formatting

This commit is contained in:
hondew 2019-02-22 16:03:35 -05:00 committed by huderlem
parent f965f1b13d
commit dd8ecabe26
5 changed files with 582 additions and 588 deletions

View File

@ -1,13 +1,15 @@
#ifndef GUARD_SLOT_MACHINE_H
#define GUARD_SLOT_MACHINE_H
#define REEL_NUM_TAGS 21
#define NUM_REELS 3
#define REEL_NUM_TAGS 21
#define REEL_TAG_HEIGHT 24
// Lucky Flags
#define LUCKY_BIAS_REPLAY 0x0001
#define LUCKY_BIAS_CHERRY 0x0002
#define LUCKY_BIAS_LOTAD 0x0004
#define LUCKY_BIAS_AZURRILL 0x0008
#define LUCKY_BIAS_AZURILL 0x0008
#define LUCKY_BIAS_POWER 0x0010
#define LUCKY_BIAS_REELTIME 0x0020
#define LUCKY_BIAS_MIXED_777 0x0040
@ -18,8 +20,6 @@
#define SLOT_MIDDLE_ROW 0x0002
#define SLOT_BOTTOM_ROW 0x0003
void PlaySlotMachine(u8, void (callback)(void));
#endif // GUARD_SLOT_MACHINE_H

View File

@ -26,9 +26,9 @@ bool8 GetPriceReduction(u8 newsKind);
void sub_80F14F8(TVShow *shows);
size_t CountDigits(int value);
u8 GetRibbonCount(struct Pokemon *pokemon);
void AlertTVThatYouPlayedSlotMachine(u16 nCoinsSpent);
void AlertTVThatYouPlayedRoulette(u16 nCoinsSpent);
void reportNewCoinTotal(u16 nCoinsPaidOut);
void AlertTVThatPlayerPlayedSlotMachine(u16 nCoinsSpent);
void AlertTVThatPlayerPlayedRoulette(u16 nCoinsSpent);
void AlertTVOfNewCointTotal(u16 nCoinsPaidOut);
void sub_80EEA70(void);
void sub_80EDB44(void);
void sub_80EDC60(const u16 *words);

View File

@ -996,7 +996,7 @@ static void sub_81405CC(void)
taskId = gUnknown_0203AB88->varA4 = CreateTask(sub_81408A8, 0);
gTasks[taskId].data[6] = 6;
gTasks[taskId].data[13] = GetCoins();
AlertTVThatYouPlayedRoulette(GetCoins());
AlertTVThatPlayerPlayedRoulette(GetCoins());
gUnknown_0203AB88->varA5 = CreateTask(sub_8140814, 1);
SetMainCallback2(sub_8140238);
return;
@ -1964,7 +1964,7 @@ static void sub_8141DE4(u8 taskId)
gSpecialVar_0x8004 = TRUE;
else
gSpecialVar_0x8004 = FALSE;
reportNewCoinTotal(GetCoins());
AlertTVOfNewCointTotal(GetCoins());
BeginHardwarePaletteFade(0xFF, 0, 0, 16, 0);
gTasks[taskId].func = sub_8141E7C;
}

File diff suppressed because it is too large Load Diff

View File

@ -62,7 +62,7 @@ IWRAM_DATA s8 sTVShowMixingCurSlot;
EWRAM_DATA u16 sPokemonAnglerSpecies = 0;
EWRAM_DATA u16 sPokemonAnglerAttemptCounters = 0;
EWRAM_DATA u16 sFindThatGamerCoinsSpent = 0;
EWRAM_DATA bool8 sFindThatGamerWhichGame = SLOT_MACHINE;
EWRAM_DATA u8 sFindThatGamerWhichGame = SLOT_MACHINE;
EWRAM_DATA ALIGNED(4) u8 sRecordMixingPartnersWithoutShowsToShare = 0;
EWRAM_DATA ALIGNED(4) u8 sTVShowState = 0;
EWRAM_DATA u8 sTVSecretBaseSecretsRandomValues[3] = {};
@ -2019,7 +2019,7 @@ void sub_80EDCE8(void)
}
}
void reportNewCoinTotal(u16 nCoinsPaidOut)
void AlertTVOfNewCointTotal(u16 nCoinsPaidOut)
{
TVShow *show;
bool8 flag;
@ -2072,13 +2072,13 @@ void reportNewCoinTotal(u16 nCoinsPaidOut)
}
}
void AlertTVThatYouPlayedSlotMachine(u16 nCoinsSpent)
void AlertTVThatPlayerPlayedSlotMachine(u16 nCoinsSpent)
{
sFindThatGamerWhichGame = SLOT_MACHINE;
sFindThatGamerCoinsSpent = nCoinsSpent;
}
void AlertTVThatYouPlayedRoulette(u16 nCoinsSpent)
void AlertTVThatPlayerPlayedRoulette(u16 nCoinsSpent)
{
sFindThatGamerWhichGame = ROULETTE;
sFindThatGamerCoinsSpent = nCoinsSpent;