From 3d74f386dcbf68c58baa63bd5dc3aff30e48e391 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 29 Apr 2024 03:15:15 -0400 Subject: [PATCH] Cap bot level increases --- src/k_grandprix.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/k_grandprix.c b/src/k_grandprix.c index 677d29469..1eefac99c 100644 --- a/src/k_grandprix.c +++ b/src/k_grandprix.c @@ -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; }