Paradise icon indicating copy to clipboard operation
Paradise copied to clipboard

Dusts dead mobs too when the nuke goes off

Open Skycert opened this issue 2 years ago • 0 comments

Fixes issue #19408 by implemeting dusting for non-alive mobs. The "should this mob be dusted" check has been extracted one level up in the condition hierarchy to avoid duplicating it (moved it one line up).

What Does This PR Do

Dead mobs are now dusted too when in range of a nuke going off at station zlevel fixing issue #19408.

Instead of filtering if the mobs are dead, first I check if they should be dusted (are they in the right zlevel for that? are they inside a fridge? etc.) and then, from the ones that satisfy those checks, if they are alive, they get ghostized but if they are not alive and are not observers, they get dusted.

Why It's Good For The Game

Adds consistency to the nuke explosion.

Images of changes

Before nuke onboard station: image

After nuke onboard station: image

Before nuke at Lavaland: image

After nuke at Lavaland: image

Testing

I spawned multiple corpses from the game panel and set off the nuke, they dusted.

Changelog

:cl: Nazsgull fix: Dead corpses now get dusted too (fixes issue #19408)

/:cl:

Skycert avatar Oct 16 '22 20:10 Skycert