Add fuse to Emeralds in Battle, same as dropped items

This commit is contained in:
James R 2023-03-23 19:38:43 -07:00
parent f0f6c3643e
commit 04bc0b6b9d
2 changed files with 6 additions and 0 deletions

View file

@ -247,6 +247,11 @@ mobj_t *K_SpawnChaosEmerald(fixed_t x, fixed_t y, fixed_t z, angle_t angle, SINT
P_SetMobjState(overlay, S_CHAOSEMERALD_UNDER);
overlay->color = emerald->color;
if (gametyperules & GTR_BUMPERS)
{
emerald->fuse = BATTLE_DESPAWN_TIME;
}
return emerald;
}

View file

@ -9636,6 +9636,7 @@ static boolean P_CanFlickerFuse(mobj_t *mobj)
case MT_FLOATINGITEM:
case MT_POGOSPRING:
case MT_KART_LEFTOVER:
case MT_EMERALD:
if (mobj->fuse <= TICRATE)
{
return true;