From e943ba75488bf005165d65f9eba1aeaa2446e18b Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 15 Mar 2023 14:51:13 +0000 Subject: [PATCH] Challenge condition string: Grey out if you've unlocked the space with a Chao Key and haven't achieved its associated condition yet You can still achieve it and make it full-bright at a later date --- src/m_cond.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/m_cond.c b/src/m_cond.c index faff792c6..227fcf48e 100644 --- a/src/m_cond.c +++ b/src/m_cond.c @@ -1431,6 +1431,13 @@ char *M_BuildConditionSetString(UINT8 unlockid) return NULL; } + if (gamedata->unlocked[unlockid] == true && M_Achieved(unlockables[unlockid].conditionset - 1) == false) + { + message[0] = '\x86'; // the following text will be grey + message[1] = '\0'; + len--; + } + c = &conditionSets[unlockables[unlockid].conditionset-1]; for (i = 0; i < c->numconditions; ++i)