mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
27 lines
572 B
Plaintext
27 lines
572 B
Plaintext
/client/proc/bluespace_artillery(mob/M in GLOB.mob_list)
|
|
if(!holder || !check_rights(R_FUN))
|
|
return
|
|
|
|
var/mob/living/target = M
|
|
|
|
if(!isliving(target))
|
|
to_chat(usr, "This can only be used on instances of type /mob/living", confidential=TRUE)
|
|
return
|
|
|
|
explosion(target.loc, 0, 0, 0, 0)
|
|
|
|
var/turf/open/floor/T = get_turf(target)
|
|
if(istype(T))
|
|
if(prob(80))
|
|
T.break_tile_to_plating()
|
|
else
|
|
T.break_tile()
|
|
|
|
if(target.health <= 1)
|
|
target.gib(1, 1)
|
|
else
|
|
target.adjustBruteLoss(min(99,(target.health - 1)))
|
|
target.Paralyze(400)
|
|
target.stuttering = 20
|
|
|