From 026831d9c8a75bf454bc65155d0fbe4e0f5f30c4 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 28 Aug 2025 15:29:40 +0100 Subject: [PATCH] Statistics Map screen: If Sealed Stars have been visited but you haven't unlocked Special Mode, show them under Lost & Found instead of revealing the true cup order early --- src/menus/extras-statistics.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/menus/extras-statistics.cpp b/src/menus/extras-statistics.cpp index d5bdf990c..6d2b54d0e 100644 --- a/src/menus/extras-statistics.cpp +++ b/src/menus/extras-statistics.cpp @@ -26,7 +26,20 @@ static boolean M_StatisticsAddMap(UINT16 map, cupheader_t *cup, boolean *headere if (!mapheaderinfo[map]) return false; - if (mapheaderinfo[map]->cup != cup) + if (mapheaderinfo[map]->typeoflevel & TOL_SPECIAL) + { + if (gamedata->sealedswaps[GDMAX_SEALEDSWAPS-1] != NULL // all found + || (mapheaderinfo[map]->cup + && mapheaderinfo[map]->cup->id >= basenumkartcupheaders) // custom content + || M_SecretUnlocked(SECRET_SPECIALATTACK, true)) // true order + { + if (mapheaderinfo[map]->cup != cup) + return false; + } + else if (cup) // Appear under Lost & Found until you've ordered them. + return false; + } + else if (mapheaderinfo[map]->cup != cup) return false; if (((mapheaderinfo[map]->typeoflevel & TOL_TUTORIAL) == TOL_TUTORIAL) != tutorial)