Might as well format it a little more.

This commit is contained in:
Useroth
2019-05-17 17:09:10 +02:00
parent 73c3e94946
commit 0f54bf7471
-2
View File
@@ -32,7 +32,6 @@
var/obj/item/bodypart/target_limb = M.get_bodypart(target_zone)
var/crush_time = max(0, 400 - target_limb.brute_dam*2)
if(!get_turf(M))
return
if(!istype(M))
@@ -50,7 +49,6 @@
M.visible_message("<span class='warning'>[user] is trying to crush [M]\s head with \the [src]!</span>")
if(do_mob(user, M, crush_time))
if(get_location_accessible(M, target_zone) && target_limb) //Yes, two checks, before and after the timer. What if someone puts a helmet on the guy while you're crushing his head?
M.visible_message("<span class='warning'>[M]\s head cracks like a watermelon, spilling everything inside, as it becomes an unrecognizable mess!</span>")