Scale number of allowed invuln items w/ player count

0-5 players: 1 invincibility/grow allowed out at once
6-9 players: 2 invincibilities (how it was before)
10-13 players: 3 invincibilities
14+ players: 4 invincibilites
This commit is contained in:
Sally Cochenour 2019-01-27 17:51:46 -05:00
parent e0f7ab6ad4
commit 55c6ab2581
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ static INT32 K_KartGetItemOdds(UINT8 pos, SINT8 item, fixed_t mashed)
{
case KITEM_INVINCIBILITY:
case KITEM_GROW:
if (pinvin >= 2)
if (pinvin >= max(1, (pingame+2) / 4))
newodds = 0;
else
/* FALLTHRU */