Fix brutal doom "boot smearer" actors dropping golden shells.

This commit is contained in:
Mari the Deer 2022-12-06 19:37:40 +01:00
commit 476d48391f
2 changed files with 4 additions and 3 deletions

View file

@ -77,7 +77,7 @@ extend Class SWWMHandler
override void WorldThingDied( WorldEvent e )
{
if ( profiling ) ProfileTick();
if ( e.Thing.default.bISMONSTER && ((e.Thing.default.bBOSS) || (e.Thing.GetSpawnHealth() >= 1000) || e.Thing.FindInventory("BossMarker")) && (alreadygold.Find(e.Thing) == alreadygold.Size()) )
if ( e.Thing.default.bISMONSTER && e.Thing.default.bCOUNTKILL && ((e.Thing.default.bBOSS) || (e.Thing.GetSpawnHealth() >= 1000) || e.Thing.FindInventory("BossMarker")) && (alreadygold.Find(e.Thing) == alreadygold.Size()) )
{
// make sure we can't farm drops from revivable enemies
// (or cause some things to spam-spawn gold shells)
@ -97,6 +97,7 @@ extend Class SWWMHandler
double ang = FRandom[SpareShells](0,360);
g.vel.xy = Actor.AngleToVector(ang,FRandom[SpareShells](.4,.8));
g.vel.z = FRandom[SpareShells](2.,4.);
Console.Printf("Golden Shell dropped from %s (%s).",e.Thing.GetTag(),e.Thing.GetClassName());
}
}
// Korax instakill