mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 08:52:33 +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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
@ -657,6 +657,11 @@ void K_IncreaseBotDifficulty(player_t *bot)
|
|||
// (Think, like, dire E rank in 4th.)
|
||||
// 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue