mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Reduce all bot difficulty when retrying
Especially reasonable now that you have a penalty for retrying.
This commit is contained in:
parent
600063f46b
commit
569b9a7dee
1 changed files with 13 additions and 1 deletions
14
src/g_game.c
14
src/g_game.c
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue