Buff indirect item cooldown to 30 sec, make sure the cooldown is set immediately

This commit is contained in:
TehRealSalt 2018-11-21 19:30:00 -05:00
parent f65a8796df
commit a30563da22
2 changed files with 6 additions and 2 deletions

View File

@ -574,6 +574,10 @@ static void K_KartGetItemResult(player_t *player, SINT8 getitem)
player->kartstuff[k_itemtype] = KITEM_JAWZ;
player->kartstuff[k_itemamount] = 2;
break;
case KITEM_SPB: // Indirect items
case KITEM_SHRINK:
indirectitemcooldown = 30*TICRATE;
/* FALLTHRU */
default:
if (getitem <= 0 || getitem >= NUMKARTRESULTS) // Sad (Fallback)
{
@ -5250,7 +5254,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
if (player->kartstuff[k_itemtype] == KITEM_SPB
|| player->kartstuff[k_itemtype] == KITEM_SHRINK
|| player->kartstuff[k_growshrinktimer] < 0)
indirectitemcooldown = 20*TICRATE;
indirectitemcooldown = 30*TICRATE;
if (player->kartstuff[k_hyudorotimer] > 0)
{

View File

@ -8154,7 +8154,7 @@ void P_MobjThinker(mobj_t *mobj)
mobj->threshold--;
break;
case MT_SPB:
indirectitemcooldown = 20*TICRATE;
indirectitemcooldown = 30*TICRATE;
/* FALLTHRU */
case MT_BALLHOG:
P_SpawnGhostMobj(mobj)->fuse = 3;