mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
[REFACTOR] Helper proc for unbuckling a mob (#26918)
* Helper proc from unbuckling a mob * Rename to unbuckle * Minor fixes * Move buckled up /mob/living --------- Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
@@ -645,20 +645,18 @@
|
||||
var/obj/mecha/mech = AM
|
||||
if(mech.occupant)
|
||||
INVOKE_ASYNC(mech, TYPE_PROC_REF(/obj/mecha, get_out_and_die))
|
||||
if(ismob(AM))
|
||||
var/mob/M = AM
|
||||
if(M.buckled)
|
||||
M.buckled.unbuckle_mob(M, force = TRUE)
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(L.incorporeal_move || L.status_flags & GODMODE)
|
||||
continue
|
||||
L.stop_pulling()
|
||||
L.visible_message("<span class='warning'>[L] is hit by \
|
||||
a hyperspace ripple!</span>",
|
||||
"<span class='userdanger'>You feel an immense \
|
||||
crushing pressure as the space around you ripples.</span>")
|
||||
L.gib()
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(L.buckled)
|
||||
L.unbuckle(force = TRUE)
|
||||
if(L.incorporeal_move || L.status_flags & GODMODE)
|
||||
continue
|
||||
L.stop_pulling()
|
||||
L.visible_message("<span class='warning'>[L] is hit by \
|
||||
a hyperspace ripple!</span>",
|
||||
"<span class='userdanger'>You feel an immense \
|
||||
crushing pressure as the space around you ripples.</span>")
|
||||
L.gib()
|
||||
else if(lance_docking) //corrupt the child, destroy them all
|
||||
if(!AM.simulated)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user