mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'desc-final-final-final' into 'master'
I forgor one challenge description thing See merge request KartKrew/Kart!2264
This commit is contained in:
commit
3c9e7a5437
4 changed files with 8 additions and 3 deletions
|
|
@ -4876,7 +4876,7 @@ static void Command_cxdiag_f(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (cn->type == UC_AND || cn->type == UC_COMMA)
|
||||
if (cn->type == UC_AND || cn->type == UC_THEN || cn->type == UC_COMMA)
|
||||
{
|
||||
if (firstpass)
|
||||
;
|
||||
|
|
|
|||
|
|
@ -2983,6 +2983,7 @@ static void readcondition(UINT16 set, UINT32 id, char *word2)
|
|||
}
|
||||
}
|
||||
else if ((offset=0) || fastcmp(params[0], "AND")
|
||||
|| (++offset && fastcmp(params[0], "THEN"))
|
||||
|| (++offset && fastcmp(params[0], "COMMA")))
|
||||
{
|
||||
//PARAMCHECK(1);
|
||||
|
|
|
|||
|
|
@ -1638,6 +1638,7 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
|
|||
|
||||
// Just for string building
|
||||
case UC_AND:
|
||||
case UC_THEN:
|
||||
case UC_COMMA:
|
||||
case UC_DESCRIPTIONOVERRIDE:
|
||||
return true;
|
||||
|
|
@ -2008,7 +2009,7 @@ static boolean M_CheckConditionSet(conditionset_t *c, player_t *player)
|
|||
continue;
|
||||
|
||||
// Skip entries that are JUST for string building
|
||||
if (cn->type == UC_AND || cn->type == UC_COMMA || cn->type == UC_DESCRIPTIONOVERRIDE)
|
||||
if (cn->type == UC_AND || cn->type == UC_THEN || cn->type == UC_COMMA || cn->type == UC_DESCRIPTIONOVERRIDE)
|
||||
continue;
|
||||
|
||||
lastID = cn->id;
|
||||
|
|
@ -2417,7 +2418,7 @@ static const char *M_GetConditionString(condition_t *cn)
|
|||
return work;
|
||||
}
|
||||
case UC_UNLOCKABLE: // Requires unlockable x to be obtained
|
||||
return va("get \"%s\"",
|
||||
return va("get %s",
|
||||
gamedata->unlocked[cn->requirement-1]
|
||||
? unlockables[cn->requirement-1].name
|
||||
: "???");
|
||||
|
|
@ -2524,6 +2525,8 @@ static const char *M_GetConditionString(condition_t *cn)
|
|||
|
||||
case UC_AND:
|
||||
return "&";
|
||||
case UC_THEN:
|
||||
return "then";
|
||||
case UC_COMMA:
|
||||
return ",";
|
||||
case UC_DESCRIPTIONOVERRIDE:
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ typedef enum
|
|||
|
||||
// Just for string building
|
||||
UC_AND,
|
||||
UC_THEN,
|
||||
UC_COMMA,
|
||||
UC_DESCRIPTIONOVERRIDE,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue