More stuff I missed.

This commit is contained in:
Mari the Deer 2023-03-17 13:25:54 +01:00
commit a2f245b189
37 changed files with 67 additions and 71 deletions

View file

@ -308,7 +308,7 @@ extend Class SWWMHandler
players[e.Args[0]].mo.GiveInventory(item,1,true);
}
else players[e.Args[0]].mo.GiveInventory(item,e.Args[2],true);
// fucky workaround
// workaround for some items
let inv = players[e.Args[0]].mo.FindInventory(item);
if ( inv && (inv.Amount <= 0) && !inv.bKEEPDEPLETED ) inv.Destroy();
if ( item is 'Weapon' )