Allow selling Candygun spares if we own a Mortal Rifle.
This commit is contained in:
parent
1acba5ea0e
commit
4bb363928f
2 changed files with 4 additions and 4 deletions
|
|
@ -100,8 +100,8 @@ Class DemolitionistStoreTab : DemolitionistMenuTab
|
|||
if ( !(gameinfo.gametype&GAME_DOOM) && (type is 'EBarrier') ) return true;
|
||||
// no gravity/tether outside raven
|
||||
if ( !(gameinfo.gametype&GAME_RAVEN) && ((type is 'GravitySuppressor') || (type is 'SafetyTether')) ) return true;
|
||||
// can't sell candygun spares
|
||||
if ( bSell && (type is 'CandyGunSpares') ) return true;
|
||||
// can't sell candygun spares if we already own a Candy Gun
|
||||
if ( bSell && (type is 'CandyGunSpares') && players[consoleplayer].mo.FindInventory("CandyGun") ) return true;
|
||||
// skip items we don't own or are depleted if selling
|
||||
if ( bSell && (!cur || (cur.Amount <= 0)) ) return true;
|
||||
else if ( !bSell )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue