mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Surgery bugs.
Stopped attacking patient during head surgery with hemostat. Was caused by try_bone_surgery called twice in code. Removed one redunant call. Fixed runtimes during face surgery. Null organ was caused by not being 'mouth' organ there. Made it select 'head' as affected organ.
This commit is contained in:
@@ -304,6 +304,8 @@ CIRCULAR SAW
|
||||
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/datum/organ/external/S = H.organs[user.zone_sel.selecting]
|
||||
if(user.zone_sel.selecting == "mouth" || user.zone_sel.selecting == "eyes")
|
||||
S = H.organs["head"]
|
||||
|
||||
if(((user.zone_sel.selecting == "l_arm") || (user.zone_sel.selecting == "r_arm") || (user.zone_sel.selecting == "l_leg") || (user.zone_sel.selecting == "r_leg")) & (istype(M, /mob/living/carbon/human)))
|
||||
if(S.status & DESTROYED)
|
||||
@@ -447,8 +449,6 @@ CIRCULAR SAW
|
||||
return ..()
|
||||
M:brain_op_stage = 0
|
||||
S.open = 1
|
||||
if(!try_bone_surgery(M, user))
|
||||
return ..()
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user