Use a separate class for voodoo dolls.

This commit is contained in:
Mari the Deer 2022-02-28 17:31:35 +01:00
commit 65b129b716
6 changed files with 49 additions and 30 deletions

View file

@ -108,7 +108,7 @@ extend Class SWWMHandler
LevelInfo nextlv = LevelInfo.FindLevelInfo(e.NextMap);
for ( int i=0; i<MAXPLAYERS; i++ )
{
if ( !playeringame[i] || !players[i].mo || (players[i].playerstate == PST_DEAD) ) continue;
if ( !playeringame[i] || !players[i].mo ) continue;
let demo = Demolitionist(players[i].mo);
if ( !demo ) continue;
if ( level.nextsecretmap.Left(6) == "enDSeQ" ) demo.invwipe |= Demolitionist.WIPE_EPISODE;