Add debug function to dump defined monsters.
This commit is contained in:
parent
06c3aec3b4
commit
753c706260
2 changed files with 22 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r794 \cu(Sat 1 Jul 14:30:33 CEST 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r794 \cu(2023-07-01 14:30:33)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r795 \cu(Sat 1 Jul 14:30:40 CEST 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r795 \cu(2023-07-01 14:30:40)\c-";
|
||||
|
|
|
|||
|
|
@ -440,6 +440,26 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
}
|
||||
if ( !fail ) Console.Printf("ALL OK");
|
||||
}
|
||||
else if ( e.Name ~== "swwmdumpmonsters" )
|
||||
{
|
||||
int i = 0;
|
||||
bool bLastVanilla = false;
|
||||
foreach ( cls:AllActorClasses )
|
||||
{
|
||||
if ( cls.IsAbstract() ) continue;
|
||||
if ( cls == 'ChexSoul' ) // last defined in gzdoom.pk3
|
||||
{
|
||||
bLastVanilla = true;
|
||||
continue;
|
||||
}
|
||||
if ( !bLastVanilla ) continue;
|
||||
let def = GetDefaultByType(cls);
|
||||
if ( !def.bISMONSTER && !def.bCOUNTKILL ) continue;
|
||||
Console.Printf("%s [%s]",def.GetClassName(),def.GetTag("NO TAG"));
|
||||
i++;
|
||||
}
|
||||
Console.Printf("\n%d estimated monsters defined.",i);
|
||||
}
|
||||
}
|
||||
|
||||
override void NetworkProcess( ConsoleEvent e )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue