Prevent players from selling the Deep Impact.
This commit is contained in:
parent
3948454866
commit
0f0094fe65
2 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1030 \cu(Tue 28 Nov 12:23:13 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1030 \cu(2023-11-28 12:23:13)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1031 \cu(Tue 28 Nov 12:33:41 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1031 \cu(2023-11-28 12:33:41)\c-";
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ Class DemolitionistStoreTab : DemolitionistMenuTab
|
|||
if ( !(gameinfo.gametype&GAME_RAVEN) && ((type is 'GravitySuppressor') || (type is 'SafetyTether')) ) 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;
|
||||
// can't sell deep impact
|
||||
if ( bSell && (type is 'DeepImpact') ) 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