Fix vanilla boss assignments for Hexen.

This commit is contained in:
Mari the Deer 2020-06-22 23:45:53 +02:00
commit 535b94ee50
2 changed files with 37 additions and 19 deletions

View file

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\chSWWM \cwGZ\c- r377 (Mon 22 Jun 22:45:50 CEST 2020)";
SWWM_MODVER="\chSWWM \cwGZ\c- r378 (Mon 22 Jun 23:45:53 CEST 2020)";

View file

@ -189,39 +189,57 @@ Class SWWMVanillaBossHandler : EventHandler
}
else if ( bossmap == MAP_HMAP38 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_CLERIC";
if ( e.Thing is 'ClericBoss' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_CLERIC";
}
}
else if ( bossmap == MAP_HMAP36 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_FIGHTER";
if ( e.Thing is 'FighterBoss' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_FIGHTER";
}
}
else if ( bossmap == MAP_HMAP37 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_MAGE";
if ( e.Thing is 'MageBoss' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 2;
bosstag = "$BT_MAGE";
}
}
else if ( bossmap == MAP_HMAP12 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 4;
bosstag = "$BT_DRAGON";
if ( e.Thing is 'Dragon' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 4;
bosstag = "$BT_DRAGON";
}
}
else if ( bossmap == MAP_HMAP23_HMAP27 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 6;
bosstag = "$BT_HERESIARCH";
if ( e.Thing is 'Heresiarch' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 6;
bosstag = "$BT_HERESIARCH";
}
}
else if ( bossmap == MAP_HMAP40 )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 8;
bosstag = "$BT_KORAX";
if ( e.Thing is 'Korax' )
{
bossactors.Push(e.Thing);
if ( upgrademe ) e.Thing.Health *= 8;
bosstag = "$BT_KORAX";
}
}
}