Cap bot level increases

This commit is contained in:
Sally Coolatta 2024-04-29 03:15:15 -04:00
parent eb94b9e6b0
commit 3d74f386dc

View file

@ -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;
}