mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user