mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-17 19:11:30 +00:00
Prisons: respond to game difficulty
This commit is contained in:
parent
9c585e35de
commit
5cdedd53ba
3 changed files with 15 additions and 3 deletions
|
|
@ -40,7 +40,19 @@ UINT8 numtargets = 0; // Capsules busted
|
|||
INT32 K_StartingBumperCount(void)
|
||||
{
|
||||
if (battleprisons)
|
||||
return 0; // always 1 hit in Prison Break
|
||||
{
|
||||
if (grandprixinfo.gp == true && grandprixinfo.masterbots == true)
|
||||
return 0;
|
||||
switch (gamespeed)
|
||||
{
|
||||
case KARTSPEED_HARD:
|
||||
return 1;
|
||||
case KARTSPEED_NORMAL:
|
||||
return 2;
|
||||
case KARTSPEED_EASY:
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
return cv_kartbumpers.value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12445,7 +12445,7 @@ tic_t K_TimeLimitForGametype(void)
|
|||
{
|
||||
if (battleprisons)
|
||||
{
|
||||
return 20*TICRATE;
|
||||
return (gamespeed == KARTSPEED_EASY) ? 30*TICRATE : 20*TICRATE;
|
||||
}
|
||||
|
||||
return gametypeDefault;
|
||||
|
|
|
|||
|
|
@ -1082,7 +1082,7 @@ static void P_AddBrokenPrison(mobj_t *target, mobj_t *inflictor, mobj_t *source)
|
|||
S_StartSound(NULL, sfx_s221);
|
||||
if (timelimitintics)
|
||||
{
|
||||
extratimeintics += 10*TICRATE;
|
||||
extratimeintics += (gamespeed == KARTSPEED_EASY) ? 15*TICRATE : 10*TICRATE;
|
||||
secretextratime = TICRATE/2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue