Amputation Confirmation (#12495)

This commit is contained in:
nerocavalier
2021-09-16 19:49:20 +02:00
committed by GitHub
parent a7392ef82d
commit 4d27dfe73d
2 changed files with 44 additions and 1 deletions
+3 -1
View File
@@ -296,7 +296,9 @@
to_chat(user, SPAN_WARNING("The blades aren't spinning, you can't cut anything!"))
return FALSE
return (affected.limb_flags & ORGAN_CAN_AMPUTATE)
if(affected.limb_flags & ORGAN_CAN_AMPUTATE)
var/confirmation = alert("You are about to amputate [target]'s [affected.name]! Are you sure you want to do that?", "Amputation confirmation", "Yes", "No")
return confirmation == "Yes"
/decl/surgery_step/amputate/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)