Add missing factors to item the item roll tracker

* Track floating item pickups and Hyudoro steals
This commit is contained in:
yamamama 2025-12-12 23:37:52 -05:00
parent 81e88b07d2
commit 508530d088
2 changed files with 19 additions and 0 deletions

View file

@ -1740,6 +1740,10 @@ static void K_DoHyudoroSteal(player_t *player)
player->itemamount = 1;
K_UnsetItemOut(player);
// Add the Sink roll to the list
if (itemlistactive)
K_AddItemRollToList((INT32)(player - players), KITEM_KITCHENSINK, 1);
// Woah this could be big, lets get the inside scoop...
K_DirectorForceSwitch(player - players, 1);
return;
@ -1761,6 +1765,13 @@ static void K_DoHyudoroSteal(player_t *player)
player->itemamount = players[stealplayer].itemamount;
K_UnsetItemOut(player);
if (itemlistactive)
{
K_AddItemRollToList((INT32)(player - players),
players[stealplayer].itemtype,
players[stealplayer].itemamount);
}
players[stealplayer].itemtype = KITEM_NONE;
players[stealplayer].itemamount = 0;
K_UnsetItemOut(&players[stealplayer]);

View file

@ -355,6 +355,14 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
else
player->itemamount += special->movecount;
// Add the pickup to our roll list
if (itemlistactive)
{
K_AddItemRollToList((INT32)(player - players),
player->itemtype,
player->itemamount);
}
S_StartSound(special, special->info->deathsound);
P_SetTarget(&special->tracer, toucher);