Removes a bunch of organ booleans, organ flag cleanup. (#7786)

This commit is contained in:
Matt Atlas
2019-12-28 12:45:29 +01:00
committed by GitHub
parent 05d3ecefc9
commit 126c7ec1a8
13 changed files with 106 additions and 82 deletions
+1 -1
View File
@@ -350,7 +350,7 @@
to_chat(user, "<span class='warning'>The blades aren't spinning, you can't cut anything!</span>")
return 0
return !affected.cannot_amputate
return (affected.limb_flags & ORGAN_CAN_AMPUTATE)
/datum/surgery_step/generic/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)