Paradise
Paradise copied to clipboard
Dusts dead mobs too when the nuke goes off
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:
After nuke onboard station:
Before nuke at Lavaland:
After nuke at Lavaland:
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: