Corruption Cards dialogues and more (untested).

This commit is contained in:
Mari the Deer 2022-08-04 17:18:23 +02:00
commit d30600a185
9 changed files with 323 additions and 2 deletions

View file

@ -26,6 +26,12 @@ Class SWWMHandler : EventHandler
int iskdizd;
Array<String> bludtypes;
// mod inter-compat stuff
bool ccloaded;
// session globals
SWWMGlobals gdat;
// profiling data
bool profiling;
int bprofiletics, profiletics; // how many tics to aggregate data for
@ -73,6 +79,12 @@ Class SWWMHandler : EventHandler
hasdrlamonsters = true;
break;
}
for ( int i=0; i<AllClasses.Size(); i++ )
{
if ( AllClasses[i].GetClassName() != "CCards_Global" ) continue;
ccloaded = true;
break;
}
if ( LevelInfo.MapExists("Z1M1") && (LevelInfo.MapChecksum("Z1M1") ~== "2B7744234ED2C162AD08A3255E979F65") )
iskdizd = true;
// read bludtype files if they can be found
@ -99,6 +111,8 @@ Class SWWMHandler : EventHandler
while ( sv = si.Next() ) funtagsv.Push(sv);
si = ServiceIterator.Find("MergeMonsterService");
while ( sv = si.Next() ) mergemonstersv.Push(sv);
// session globals
gdat = SWWMGlobals.Get();
// start profiling
if ( swwm_profstart <= 0 ) return;
bprofiletics = profiletics = swwm_profstart;