Don't use inventory tokens for mapper-toggleable store/revive. Tokens are icky.

This commit is contained in:
Mari the Deer 2023-02-18 11:54:30 +01:00
commit a2855dfc9a
9 changed files with 31 additions and 32 deletions

View file

@ -561,7 +561,7 @@ Class SWWMStatusBar : BaseStatusBar
xx = int((ss.x-len)/2.);
yy = ss.y/2.;
Screen.DrawText(mSmallFont,Font.CR_WHITE,xx,yy,str,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true,DTA_Alpha,alph);
if ( goner || CPlayer.mo.FindInventory("SWWMReviveDisabler") || !swwm_revive )
if ( goner || hnd.gdat.disablerevive || !swwm_revive )
return (1.-dimalph);
alph = clamp((deadtimer-160)/60.,0.,1.);
str = String.Format(StringTable.Localize("$SWWM_URDED3"));