Mark Gold Shells as vip items.

This commit is contained in:
Mari the Deer 2021-02-22 21:51:49 +01:00
commit 1808617654
3 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r303 \cu(Mon 22 Feb 20:16:26 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r303 \cu(2021-02-22 20:16:26)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r303 \cu(Mon 22 Feb 21:51:49 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r303 \cu(2021-02-22 21:51:49)\c-";

View file

@ -1049,7 +1049,7 @@ Class SWWMStatusBar : BaseStatusBar
radius = t.target.radius;
if ( t.isitem )
{
if ( ((t.target is 'Chancebox') && (t.target.CurState == t.target.SpawnState)) || (t.target is 'SWWMCollectible') ) col = "Purple";
if ( ((t.target is 'Chancebox') && (t.target.CurState == t.target.SpawnState)) || (t.target is 'SWWMCollectible') || (t.target is 'GoldShell') ) col = "Purple";
else if ( t.target.bCOUNTITEM || (t.target is 'Key') ) col = am_thingcolor_citem;
else col = am_thingcolor_item;
isitem = true;

View file

@ -775,7 +775,7 @@ Class SWWMItemSense : Thinker
i.ChangeStatNum(STAT_USER);
i.item = item;
i.scoreitem = (item is 'Key')||item.bCOUNTITEM;
i.vipitem = (item is 'Chancebox')||(item is 'SWWMCollectible');
i.vipitem = (item is 'Chancebox')||(item is 'SWWMCollectible')||(item is 'GoldShell');
i.parent = parent;
i.updated = level.maptime+35;
i.UpdateTag();
@ -1376,7 +1376,7 @@ Class SWWMSimpleTracker : Thinker
countkill = target.bCOUNTKILL;
isitem = (target is 'Inventory');
countitem = (target is 'Key')||target.bCOUNTITEM;
vipitem = ((target is 'Chancebox')&&(target.CurState==target.SpawnState))||(target is 'SWWMCollectible');
vipitem = ((target is 'Chancebox')&&(target.CurState==target.SpawnState))||(target is 'SWWMCollectible')||(target is 'GoldShell');
lastupdate = level.maptime;
if ( isitem )
{