diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-16 19:14:14 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-16 19:14:14 -0500 |
commit | 31a322fdc589c381af6ec4b4c4781d28cb394cc1 (patch) | |
tree | e43fc56221de9ddcb8a8324f6a87ab4cf3f063db /src/battle/post_battle_event_funcs.c | |
parent | 9e4d9171e3a2d1d239cb66f1fdff09f069941589 (diff) |
use game stat defines
Diffstat (limited to 'src/battle/post_battle_event_funcs.c')
-rw-r--r-- | src/battle/post_battle_event_funcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle/post_battle_event_funcs.c b/src/battle/post_battle_event_funcs.c index 0617763f6..a44cf028b 100644 --- a/src/battle/post_battle_event_funcs.c +++ b/src/battle/post_battle_event_funcs.c @@ -26,8 +26,8 @@ int GameClear(void) FlagSet(FLAG_SYS_GAME_CLEAR); } - if (!GetGameStat(1)) - SetGameStat(1, (gSaveBlock2.playTimeHours << 16) | (gSaveBlock2.playTimeMinutes << 8) | gSaveBlock2.playTimeSeconds); + 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(); @@ -54,7 +54,7 @@ int GameClear(void) if (ribbonGet == TRUE) { - IncrementGameStat(42); + IncrementGameStat(GAME_STAT_RECEIVED_RIBBONS); FlagSet(FLAG_SYS_RIBBON_GET); } |