From 0f0094fe65e3a04b2ed9b7b621ba343967e1f273 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Tue, 28 Nov 2023 12:33:41 +0100 Subject: [PATCH] Prevent players from selling the Deep Impact. --- language.version | 4 ++-- zscript/kbase/swwm_kbasetab_store.zsc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/language.version b/language.version index 40a9425f6..9e3c4fcf8 100644 --- a/language.version +++ b/language.version @@ -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-"; diff --git a/zscript/kbase/swwm_kbasetab_store.zsc b/zscript/kbase/swwm_kbasetab_store.zsc index 0b10958c8..1bcaad0f9 100644 --- a/zscript/kbase/swwm_kbasetab_store.zsc +++ b/zscript/kbase/swwm_kbasetab_store.zsc @@ -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 )