Use GetDefaultByType for copying blood colors instead of spawning and then destroying the reference actors.
This commit is contained in:
parent
128f3dd69e
commit
05642fcf86
3 changed files with 8 additions and 11 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1227 \cu(mié 25 jun 2025 15:43:59 CEST)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1227 \cu(2025-06-25 15:43:59)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1228 \cu(vie 27 jun 2025 21:02:25 CEST)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1228 \cu(2025-06-27 21:02:25)\c-";
|
||||
|
|
|
|||
|
|
@ -398,21 +398,18 @@ extend Class SWWMHandler
|
|||
// vanilla blood color changes
|
||||
if ( (e.Thing.GetClassName() == 'BaronOfHell') || (e.Thing.GetClassName() == 'HellKnight') || (e.Thing.GetClassName() == 'Bishop') || (e.Thing.GetClassName() == 'Korax') )
|
||||
{
|
||||
let gb = Actor.Spawn('GreenBloodReference');
|
||||
let gb = GetDefaultByType('GreenBloodReference');
|
||||
e.Thing.CopyBloodColor(gb);
|
||||
gb.Destroy();
|
||||
}
|
||||
else if ( e.Thing.GetClassName() == 'Cacodemon' )
|
||||
{
|
||||
let bb = Actor.Spawn('BlueBloodReference');
|
||||
let bb = GetDefaultByType('BlueBloodReference');
|
||||
e.Thing.CopyBloodColor(bb);
|
||||
bb.Destroy();
|
||||
}
|
||||
else if ( (e.Thing.GetClassName() == 'Wizard') || (e.Thing.GetClassName() == 'Heresiarch') || (e.Thing.GetClassName() == 'Sorcerer2') )
|
||||
{
|
||||
let pb = Actor.Spawn('PurpleBloodReference');
|
||||
let pb = GetDefaultByType('PurpleBloodReference');
|
||||
e.Thing.CopyBloodColor(pb);
|
||||
pb.Destroy();
|
||||
}
|
||||
else if ( e.Thing.GetClassName() == 'LostSoul' )
|
||||
e.Thing.bNOBLOOD = true;
|
||||
|
|
|
|||
|
|
@ -814,21 +814,21 @@ Class mkBloodBlast : SWWMNonInteractiveActor
|
|||
}
|
||||
|
||||
// bare actors used for copying blood color to vanilla monsters
|
||||
Class GreenBloodReference : Actor
|
||||
Class GreenBloodReference : Actor abstract
|
||||
{
|
||||
Default
|
||||
{
|
||||
BloodColor "40 80 30";
|
||||
}
|
||||
}
|
||||
Class BlueBloodReference : Actor
|
||||
Class BlueBloodReference : Actor abstract
|
||||
{
|
||||
Default
|
||||
{
|
||||
BloodColor "00 00 A0";
|
||||
}
|
||||
}
|
||||
Class PurpleBloodReference : Actor
|
||||
Class PurpleBloodReference : Actor abstract
|
||||
{
|
||||
Default
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue