mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Retheme difficulty modes
This commit is contained in:
parent
873d16e6c0
commit
1a8b4dc78f
5 changed files with 25 additions and 15 deletions
|
|
@ -96,9 +96,9 @@ CV_PossibleValue_t dummykartspeed_cons_t[] = {
|
||||||
{0, NULL}
|
{0, NULL}
|
||||||
};
|
};
|
||||||
CV_PossibleValue_t gpdifficulty_cons_t[] = {
|
CV_PossibleValue_t gpdifficulty_cons_t[] = {
|
||||||
{KARTSPEED_EASY, "Easy"},
|
{KARTSPEED_EASY, "Relaxed"},
|
||||||
{KARTSPEED_NORMAL, "Normal"},
|
{KARTSPEED_NORMAL, "Intense"},
|
||||||
{KARTSPEED_HARD, "Hard"},
|
{KARTSPEED_HARD, "Extreme"},
|
||||||
{KARTGP_MASTER, "Master"},
|
{KARTGP_MASTER, "Master"},
|
||||||
{0, NULL}
|
{0, NULL}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -943,7 +943,7 @@ consvar_t cv_dummyextraspassword = MenuDummy("dummyextraspassword", "");
|
||||||
|
|
||||||
extern CV_PossibleValue_t gpdifficulty_cons_t[];
|
extern CV_PossibleValue_t gpdifficulty_cons_t[];
|
||||||
void Dummygpdifficulty_OnChange(void);
|
void Dummygpdifficulty_OnChange(void);
|
||||||
consvar_t cv_dummygpdifficulty = MenuDummy("dummygpdifficulty", "Normal").values(gpdifficulty_cons_t).onchange(Dummygpdifficulty_OnChange);
|
consvar_t cv_dummygpdifficulty = MenuDummy("dummygpdifficulty", "Relaxed").values(gpdifficulty_cons_t).onchange(Dummygpdifficulty_OnChange);
|
||||||
consvar_t cv_dummygpencore = MenuDummy("dummygpencore", "Off").on_off();
|
consvar_t cv_dummygpencore = MenuDummy("dummygpencore", "Off").on_off();
|
||||||
|
|
||||||
consvar_t cv_dummyip = MenuDummy("dummyip", "");
|
consvar_t cv_dummyip = MenuDummy("dummyip", "");
|
||||||
|
|
|
||||||
|
|
@ -5689,10 +5689,10 @@ static char *M_GetGameplayMode(void)
|
||||||
if (grandprixinfo.masterbots)
|
if (grandprixinfo.masterbots)
|
||||||
return va("Master");
|
return va("Master");
|
||||||
if (grandprixinfo.gamespeed == KARTSPEED_HARD)
|
if (grandprixinfo.gamespeed == KARTSPEED_HARD)
|
||||||
return va("Hard");
|
return va("Extreme");
|
||||||
if (grandprixinfo.gamespeed == KARTSPEED_NORMAL)
|
if (grandprixinfo.gamespeed == KARTSPEED_NORMAL)
|
||||||
return va("Normal");
|
return va("Intense");
|
||||||
return va("Easy");
|
return va("Relaxed");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cv_4thgear.value)
|
if (cv_4thgear.value)
|
||||||
|
|
|
||||||
10
src/m_cond.c
10
src/m_cond.c
|
|
@ -2374,11 +2374,11 @@ static const char *M_GetConditionString(condition_t *cn)
|
||||||
|
|
||||||
if (cn->extrainfo2 == KARTSPEED_NORMAL)
|
if (cn->extrainfo2 == KARTSPEED_NORMAL)
|
||||||
{
|
{
|
||||||
speedtext = " on Normal";
|
speedtext = " on Intense";
|
||||||
}
|
}
|
||||||
else if (cn->extrainfo2 == KARTSPEED_HARD)
|
else if (cn->extrainfo2 == KARTSPEED_HARD)
|
||||||
{
|
{
|
||||||
speedtext = " on Hard";
|
speedtext = " on Extreme";
|
||||||
}
|
}
|
||||||
else if (cn->extrainfo2 == KARTGP_MASTER)
|
else if (cn->extrainfo2 == KARTGP_MASTER)
|
||||||
{
|
{
|
||||||
|
|
@ -2424,7 +2424,7 @@ static const char *M_GetConditionString(condition_t *cn)
|
||||||
else*/
|
else*/
|
||||||
if (cn->requirement == KARTSPEED_HARD)
|
if (cn->requirement == KARTSPEED_HARD)
|
||||||
{
|
{
|
||||||
speedtext = " on Hard";
|
speedtext = " on Extreme";
|
||||||
}
|
}
|
||||||
else if (cn->requirement == KARTGP_MASTER)
|
else if (cn->requirement == KARTGP_MASTER)
|
||||||
{
|
{
|
||||||
|
|
@ -2686,11 +2686,11 @@ static const char *M_GetConditionString(condition_t *cn)
|
||||||
|
|
||||||
if (cn->requirement == KARTSPEED_NORMAL)
|
if (cn->requirement == KARTSPEED_NORMAL)
|
||||||
{
|
{
|
||||||
speedtext = "on Normal";
|
speedtext = "on Intense";
|
||||||
}
|
}
|
||||||
else if (cn->requirement == KARTSPEED_HARD)
|
else if (cn->requirement == KARTSPEED_HARD)
|
||||||
{
|
{
|
||||||
speedtext = "on Hard";
|
speedtext = "on Extreme";
|
||||||
}
|
}
|
||||||
else if (cn->requirement == KARTGP_MASTER)
|
else if (cn->requirement == KARTGP_MASTER)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
#include "../s_sound.h"
|
#include "../s_sound.h"
|
||||||
#include "../sounds.h"
|
#include "../sounds.h"
|
||||||
|
|
||||||
|
boolean interceptedDefaultDifficulty = false;
|
||||||
|
|
||||||
menuitem_t PLAY_RaceDifficulty[] =
|
menuitem_t PLAY_RaceDifficulty[] =
|
||||||
{
|
{
|
||||||
// For GP
|
// For GP
|
||||||
|
|
@ -127,6 +129,14 @@ void M_SetupDifficultyOptions(INT32 choice)
|
||||||
PLAY_RaceDifficulty[drace_cupselect].status = IT_DISABLED;
|
PLAY_RaceDifficulty[drace_cupselect].status = IT_DISABLED;
|
||||||
PLAY_RaceDifficulty[drace_mapselect].status = IT_DISABLED;
|
PLAY_RaceDifficulty[drace_mapselect].status = IT_DISABLED;
|
||||||
|
|
||||||
|
if (M_SecretUnlocked(SECRET_HARDSPEED, true) && !interceptedDefaultDifficulty)
|
||||||
|
{
|
||||||
|
CV_SetValue(&cv_dummygpdifficulty, KARTSPEED_NORMAL);
|
||||||
|
CV_SetValue(&cv_dummykartspeed, KARTSPEED_NORMAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
interceptedDefaultDifficulty = true;
|
||||||
|
|
||||||
if (choice) // Match Race
|
if (choice) // Match Race
|
||||||
{
|
{
|
||||||
PLAY_RaceDifficulty[drace_mrkartspeed].status = IT_STRING|IT_CVAR; // Kart Speed
|
PLAY_RaceDifficulty[drace_mrkartspeed].status = IT_STRING|IT_CVAR; // Kart Speed
|
||||||
|
|
@ -170,13 +180,13 @@ void Dummygpdifficulty_OnChange(void)
|
||||||
switch (cv_dummygpdifficulty.value)
|
switch (cv_dummygpdifficulty.value)
|
||||||
{
|
{
|
||||||
case KARTSPEED_EASY:
|
case KARTSPEED_EASY:
|
||||||
tooltip = "Warm up to the track with some\x83 Gear 1\x80 practice. For\x83 beginners.";
|
tooltip = "Low-stakes racing at \x83Gear 1""\x80"". Take a drive and \x83""enjoy the sights!";
|
||||||
break;
|
break;
|
||||||
case KARTSPEED_NORMAL:
|
case KARTSPEED_NORMAL:
|
||||||
tooltip = "Push to the top in\x82 Gear 2\x80. A balanced challenge for\x82 everyone!";
|
tooltip = "Aim for the prize at\x82 Gear 2\x80. Can you \x82surpass your limits?";
|
||||||
break;
|
break;
|
||||||
case KARTSPEED_HARD:
|
case KARTSPEED_HARD:
|
||||||
tooltip = "Challenge tough competition at\x87 Gear 3\x80. For\x87 thrill-seekers!";
|
tooltip = "Challenge fierce competition at\x87 Gear 3\x80. For\x87 thrill-seekers!";
|
||||||
break;
|
break;
|
||||||
case KARTGP_MASTER:
|
case KARTGP_MASTER:
|
||||||
tooltip = "Let's go crazy! Take on brutal CPUs at\x87 Gear 3\x80: for\x85 lunatics only!";
|
tooltip = "Let's go crazy! Take on brutal CPUs at\x87 Gear 3\x80: for\x85 lunatics only!";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue