mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-17 13:32:38 +00:00
PRE-unlock Brakes, Drifting, and Springs if your gamedata is converted from post-goner state
Means you'll only see a pop-up/challenge board visit for the Items tutorial, which is the new material you didn't previously have access to
This commit is contained in:
parent
e92725ea86
commit
5fb1da94e0
1 changed files with 11 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ namespace fs = std::filesystem;
|
||||||
|
|
||||||
#define GD_MINIMUM_SPRAYCANSV2 (2)
|
#define GD_MINIMUM_SPRAYCANSV2 (2)
|
||||||
#define GD_MINIMUM_TIMEATTACKV2 (2)
|
#define GD_MINIMUM_TIMEATTACKV2 (2)
|
||||||
|
#define GD_MINIMUM_TUTORIALLOCK (2)
|
||||||
|
|
||||||
void srb2::save_ng_gamedata()
|
void srb2::save_ng_gamedata()
|
||||||
{
|
{
|
||||||
|
|
@ -917,6 +918,16 @@ void srb2::load_ng_gamedata()
|
||||||
converted = true;
|
converted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (minorversion < GD_MINIMUM_TUTORIALLOCK && gamedata->gonerlevel >= GDGONER_DONE)
|
||||||
|
{
|
||||||
|
converted = true;
|
||||||
|
uint16_t checklocks[] = {751, 752, 754}; // Brakes, Drifting, Springs
|
||||||
|
for (uint16_t checklock : checklocks)
|
||||||
|
{
|
||||||
|
gamedata->unlocked[checklock - 1] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
M_FinaliseGameData();
|
M_FinaliseGameData();
|
||||||
|
|
||||||
if (converted)
|
if (converted)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue