add greg to gameplay stats (#2544)

Co-authored-by: briaguya <briaguya>
This commit is contained in:
briaguya 2023-02-26 23:04:47 -05:00 committed by GitHub
parent 2cb4a6ee7e
commit 17aeec4b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -422,6 +422,7 @@ void SetupDisplayNames() {
strcpy(timestampDisplayName[TIMESTAMP_DEFEAT_TWINROVA], "Twinrova Defeated: ");
strcpy(timestampDisplayName[TIMESTAMP_DEFEAT_GANONDORF], "Ganondorf Defeated: ");
strcpy(timestampDisplayName[TIMESTAMP_DEFEAT_GANON], "Ganon Defeated: ");
strcpy(timestampDisplayName[TIMESTAMP_FOUND_GREG], "Greg Found: ");
}
void SetupDisplayColors() {
@ -431,6 +432,7 @@ void SetupDisplayColors() {
case ITEM_KOKIRI_EMERALD:
case ITEM_SONG_SARIA:
case ITEM_MEDALLION_FOREST:
case TIMESTAMP_FOUND_GREG:
timestampDisplayColor[i] = COLOR_GREEN;
break;
case ITEM_SONG_BOLERO:

View File

@ -21,7 +21,8 @@ typedef enum {
/* 0xA7 */ TIMESTAMP_DEFEAT_TWINROVA, // z_boss_tw.c
/* 0xA8 */ TIMESTAMP_DEFEAT_GANONDORF, // z_boss_ganon.c
/* 0xA9 */ TIMESTAMP_DEFEAT_GANON, // z_boss_ganon2.c
/* 0xAA */ TIMESTAMP_MAX
/* 0xAA */ TIMESTAMP_FOUND_GREG, // z_parameter.c
/* 0xAB */ TIMESTAMP_MAX
}GameplayStatTimestamp;

View File

@ -2581,6 +2581,7 @@ u16 Randomizer_Item_Give(PlayState* play, GetItemEntry giEntry) {
if (item == RG_GREG_RUPEE) {
Rupees_ChangeBy(1);
Flags_SetRandomizerInf(RAND_INF_GREG_FOUND);
gSaveContext.sohStats.timestamp[TIMESTAMP_FOUND_GREG] = GAMEPLAYSTAT_TOTAL_TIME;
return RG_NONE;
}