changelings no longer nullspace when headslugging in a crematorium or gibber (#25465)

* changelings no longer nullspace when headslugging in a crematorium or gibber

* Update code/modules/antagonists/changeling/powers/become_headslug.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

* changes the scope

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

* Apply suggestions from code review

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2024-06-05 21:28:11 +00:00
committed by GitHub
co-authored by DGamerL
parent 3b9f0bc048
commit 2216afc681
5 changed files with 16 additions and 1 deletions
@@ -17,6 +17,7 @@
..()
/datum/action/changeling/headslug/sting_action(mob/living/user)
ADD_TRAIT(user, TRAIT_CLING_BURSTING, "last_resort")
user.Weaken(30 SECONDS)
user.do_jitter_animation(1000, -1) // jitter until they are gibbed
user.visible_message("<span class='danger'>A loud crack erupts from [user], followed by a hiss.</span>")
@@ -30,6 +31,11 @@
/datum/action/changeling/headslug/proc/become_headslug(mob/user)
var/datum/mind/M = user.mind
var/list/organs = user.get_organs_zone("head", 1)
if(isobj(user.loc))
var/obj/thing_to_break = user.loc
user.forceMove(get_turf(user)) // Get them outside of it before it breaks, to prevent issues / so they burst out of it dramatically
thing_to_break.visible_message("<span class='danger'>[user] violently explodes out of [thing_to_break], breaking it!</span>")
thing_to_break.obj_break(BRUTE)
for(var/obj/item/organ/internal/I in organs)
I.remove(user, TRUE)
@@ -233,6 +233,10 @@
visible_message("<span class='danger'>You hear a loud metallic grinding sound.</span>")
return
if(HAS_TRAIT(occupant, TRAIT_CLING_BURSTING))
visible_message("<span class='warning'>[src] jams up as [occupant]'s corpse rapidly grows in size...</span>")
return
use_power(1000)
visible_message("<span class='danger'>You hear a loud squelchy grinding sound.</span>")