Gives the crusher a chance to crush hands (#3538)

Adds a chance for the crusher to crush hands if used while in operation
This commit is contained in:
Ron
2017-10-04 19:23:10 +02:00
committed by Werner
parent ab97b50d93
commit 240c2fc799
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -87,9 +87,15 @@
return ..()
/obj/machinery/crusher_base/attackby(var/obj/item/O as obj, var/mob/user as mob)
if(status != "idle" && prob(40) && ishuman(user))
var/mob/living/carbon/human/M = user
M.apply_damage(45, BRUTE, user.get_active_hand())
M.apply_damage(45, HALLOSS)
M.visible_message("<span class='danger'>[user]'s hand catches in the [src]!</span>", "<span class='danger'>Your hand gets caught in the [src]!</span>")
M.say("*scream")
return
if(default_deconstruction_screwdriver(user, O))
return
//TODO: Add a chance to catch their hand in the mechanic if they do something while the crusher is in operation
if(default_deconstruction_crowbar(user, O))
return
if(default_part_replacement(user, O))
@@ -0,0 +1,4 @@
author: Printer16
delete-after: True
changes:
- rscadd: "The crusher is no longer safe to use while operational."