Fixes for corner cases related to sell-only items.
This commit is contained in:
parent
8f77bff671
commit
eb2e023c58
8 changed files with 15 additions and 15 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue