diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2019-07-28 21:23:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-28 21:23:43 -0500 |
commit | 3f477dae36c99bcb03a38be251dbef2f7e344ebc (patch) | |
tree | 57da1db9027de960c4b066bdcf6ab17c03753791 /src/battle/post_battle_event_funcs.c | |
parent | d442be12102ed3493c04b3688f37a4ffad6606f7 (diff) | |
parent | e03220c21de7c33e1ddeb3fd0585378da37d8b51 (diff) |
Merge pull request #750 from camthesaxman/filenames_1
emerald file names, part 1
Diffstat (limited to 'src/battle/post_battle_event_funcs.c')
-rw-r--r-- | src/battle/post_battle_event_funcs.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/src/battle/post_battle_event_funcs.c b/src/battle/post_battle_event_funcs.c deleted file mode 100644 index d0fbbec85..000000000 --- a/src/battle/post_battle_event_funcs.c +++ /dev/null @@ -1,70 +0,0 @@ -#include "global.h" -#include "event_data.h" -#include "hall_of_fame.h" -#include "load_save.h" -#include "main.h" -#include "pokemon.h" -#include "overworld.h" -#include "script_pokemon_80C4.h" -#include "constants/heal_locations.h" - -extern u8 gUnknown_02039324; - -int GameClear(void) -{ - int i; - bool32 ribbonGet; - - ScrSpecial_HealPlayerParty(); - - if (FlagGet(FLAG_SYS_GAME_CLEAR) == TRUE) - { - gUnknown_02039324 = 1; - } - else - { - gUnknown_02039324 = 0; - FlagSet(FLAG_SYS_GAME_CLEAR); - } - - if (!GetGameStat(GAME_STAT_FIRST_HOF_PLAY_TIME)) - SetGameStat(GAME_STAT_FIRST_HOF_PLAY_TIME, (gSaveBlock2.playTimeHours << 16) | (gSaveBlock2.playTimeMinutes << 8) | gSaveBlock2.playTimeSeconds); - - SetSecretBase2Field_9(); - - if (gSaveBlock2.playerGender == MALE) - sub_80537CC(HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F); - else - sub_80537CC(HEAL_LOCATION_LITTLEROOT_TOWN_MAYS_HOUSE_2F); - - ribbonGet = FALSE; - - for (i = 0; i < 6; i++) - { - u8 val; - u8 *ptr = &val; - if (GetMonData(&gPlayerParty[i], MON_DATA_SANITY_BIT2) - && !GetMonData(&gPlayerParty[i], MON_DATA_SANITY_BIT3) - && !GetMonData(&gPlayerParty[i], MON_DATA_CHAMPION_RIBBON)) - { - *ptr = 1; - SetMonData(&gPlayerParty[i], MON_DATA_CHAMPION_RIBBON, ptr); - ribbonGet = TRUE; - } - } - - if (ribbonGet == TRUE) - { - IncrementGameStat(GAME_STAT_RECEIVED_RIBBONS); - FlagSet(FLAG_SYS_RIBBON_GET); - } - - SetMainCallback2(sub_8141F90); - return 0; -} - -int sp0C8_whiteout_maybe(void) -{ - SetMainCallback2(CB2_WhiteOut); - return 0; -} |