Ring Box items aren't real items

This commit is contained in:
AJ Martinez 2023-06-14 23:59:45 -07:00
parent 28a65043f9
commit a18f84255b
3 changed files with 21 additions and 1 deletions

View file

@ -6595,7 +6595,7 @@ void K_DropItems(player_t *player)
{
K_DropHnextList(player);
if (player->mo && !P_MobjWasRemoved(player->mo) && player->itemamount > 0)
if (player->mo && !P_MobjWasRemoved(player->mo) && player->itemamount > 0 && !K_IsRingBoxItem(player->itemtype))
{
mobj_t *drop = K_CreatePaperItem(
player->mo->x, player->mo->y, player->mo->z + player->mo->height/2,
@ -12135,4 +12135,20 @@ boolean K_Cooperative(void)
return false;
}
boolean K_IsRingBoxItem(SINT8 itemtype)
{
switch (itemtype)
{
case KITEM_BAR:
case KITEM_DOUBLEBAR:
case KITEM_TRIPLEBAR:
case KITEM_SLOTRING:
case KITEM_SEVEN:
case KITEM_JACKPOT:
return true;
default:
return true;
}
}
//}

View file

@ -220,6 +220,7 @@ tic_t K_TimeLimitForGametype(void);
UINT32 K_PointLimitForGametype(void);
boolean K_Cooperative(void);
boolean K_IsRingBoxItem(SINT8 itemtype);
#ifdef __cplusplus
} // extern "C"

View file

@ -446,6 +446,9 @@ hyudoro_patrol_hit_player
if (!player->itemamount)
return false;
if (K_IsRingBoxItem(player->itemtype))
return false;
K_AddHitLag(toucher, TICRATE/2, false);
hyudoro_mode(hyu) = HYU_RETURN;