Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Sep 30, 2023
1 parent 9d0e0aa commit 30f7341
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code/modules/surgery/surgery_initiator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
to_chat(user, SPAN_WARNING("You can't perform surgery under these bad conditions!"))
return FALSE

var/obj/limb/surgery_limb = target.get_limb(target_zone)
if(surgery_limb)
var/obj/item/blocker = target.get_sharp_obj_blocker(surgery_limb)
if(blocker)
to_chat(user, SPAN_WARNING("[blocker] [target] is wearing restricts your access to the surgical site, take it off!"))
return

if(user.action_busy) //already doing an action
return FALSE

Expand Down Expand Up @@ -130,6 +137,12 @@
if(surgeryinstance.lying_required && !target.lying)
return TRUE

if(surgery_limb)
var/obj/item/blocker = target.get_sharp_obj_blocker(surgery_limb)
if(blocker)
to_chat(user, SPAN_WARNING("[blocker] [target] is wearing restricts your access to the surgical site, take it off!"))
return

if(affecting)
if(surgeryinstance.requires_bodypart)
if(affecting.status & LIMB_DESTROYED)
Expand Down

0 comments on commit 30f7341

Please sign in to comment.