mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Cap bot level increases
This commit is contained in:
parent
eb94b9e6b0
commit
3d74f386dc
1 changed files with 7 additions and 2 deletions
|
|
@ -542,9 +542,9 @@ void K_IncreaseBotDifficulty(player_t *bot)
|
||||||
|
|
||||||
bot->botvars.diffincrease = 0;
|
bot->botvars.diffincrease = 0;
|
||||||
|
|
||||||
if (bot->botvars.difficulty >= MAXBOTDIFFICULTY)
|
if (grandprixinfo.masterbots == true)
|
||||||
{
|
{
|
||||||
// Already at max difficulty, don't need to increase
|
// Master bot difficulty is not dynamic.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -657,6 +657,11 @@ void K_IncreaseBotDifficulty(player_t *bot)
|
||||||
// (Think, like, dire E rank in 4th.)
|
// (Think, like, dire E rank in 4th.)
|
||||||
// This is a deviation from SalCode™ and should be reexamined if bots get drowsy.
|
// This is a deviation from SalCode™ and should be reexamined if bots get drowsy.
|
||||||
}
|
}
|
||||||
|
else if (increase > 2)
|
||||||
|
{
|
||||||
|
// Hard cap difficulty increase between rounds
|
||||||
|
increase = 2;
|
||||||
|
}
|
||||||
|
|
||||||
bot->botvars.diffincrease = increase;
|
bot->botvars.diffincrease = increase;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue