Reduce all bot difficulty when retrying

Especially reasonable now that you have a penalty for retrying.
This commit is contained in:
Sally Coolatta 2023-03-11 03:36:13 -05:00
parent 600063f46b
commit 569b9a7dee

View file

@ -2138,7 +2138,19 @@ void G_Ticker(boolean run)
{
if (playeringame[i])
{
K_PlayerLoseLife(&players[i]);
if (players[i].bot == true)
{
players[i].botvars.difficulty--;
if (players[i].botvars.difficulty < 1)
{
players[i].botvars.difficulty = 1;
}
}
else
{
K_PlayerLoseLife(&players[i]);
}
}
}