Fixes for corner cases related to sell-only items.

This commit is contained in:
Mari the Deer 2022-06-07 13:42:13 +02:00
commit eb2e023c58
8 changed files with 15 additions and 15 deletions

View file

@ -27,7 +27,7 @@ Class ArmorNuggetItem : SWWMSpareArmor
// sell excess
if ( !bUsed )
{
int sellprice = int(abs(Stamina)*.5);
int sellprice = abs(Stamina)/2;
SWWMScoreObj.Spawn(sellprice,Owner.Vec3Offset(FRandom[ScoreBits](-8,8),FRandom[ScoreBits](-8,8),FRandom[ScoreBits](-8,8)+Owner.Height/2));
SWWMCredits.Give(Owner.player,sellprice);
if ( Owner.player )