mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
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:
@@ -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."
|
||||
Reference in New Issue
Block a user