mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-23 15:06:15 +00:00
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:
parent
bddb1d576d
commit
46dcfe0000
1 changed files with 6 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue