Experiment for Challenges menu: The completion percentage only counts unlocks, but the Chao Medal meter fill subtracts major unlock skips

Should communicate the fact you're short of True Completion a little better.
This commit is contained in:
toaster 2023-10-09 13:01:25 +01:00
parent bddb1d576d
commit 46dcfe0000

View file

@ -100,10 +100,14 @@ static void M_UpdateChallengeGridVisuals(void)
challengesmenu.unlockcount[CMC_MEDALID] = 0;
challengesmenu.unlockcount[CMC_MEDALFILLED] =
(medalheight * (
challengesmenu.unlockcount[CMC_UNLOCKED]
- challengesmenu.unlockcount[CMC_MAJORSKIPPED]
)) / challengesmenu.unlockcount[CMC_TOTAL];
if (challengesmenu.unlockcount[CMC_PERCENT] == 100)
{
challengesmenu.unlockcount[CMC_MEDALFILLED] = medalheight;
if (challengesmenu.unlockcount[CMC_KEYED] == 0)
{
challengesmenu.unlockcount[CMC_MEDALID] = 2;
@ -116,10 +120,6 @@ static void M_UpdateChallengeGridVisuals(void)
}
else
{
challengesmenu.unlockcount[CMC_MEDALFILLED] =
(medalheight * challengesmenu.unlockcount[CMC_UNLOCKED])
/challengesmenu.unlockcount[CMC_TOTAL];
if (challengesmenu.unlockcount[CMC_MEDALFILLED] == 0 && challengesmenu.unlockcount[CMC_UNLOCKED] != 0)
{
// Cheat to give you a sliver of pixel.