From a72e97a64847ca72344d91f45bcb76d41cbbb667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=A9=E3=83=83=E3=83=94=20from=20PSO2?= <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com> Date: Sun, 19 Jul 2020 11:20:22 -0400 Subject: [PATCH] Tend Wounds Now Covers Organic (and Healable) Mobtypes (#52296) * tw * silicons OUT * better checkin * fffff * Update healing.dm --- code/modules/surgery/healing.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/healing.dm b/code/modules/surgery/healing.dm index d5f6d66b75d..7801071a186 100644 --- a/code/modules/surgery/healing.dm +++ b/code/modules/surgery/healing.dm @@ -6,7 +6,7 @@ /datum/surgery_step/heal, /datum/surgery_step/close) - target_mobtypes = list(/mob/living/carbon/human, /mob/living/carbon/monkey) + target_mobtypes = list(/mob/living) possible_locs = list(BODY_ZONE_CHEST) requires_bodypart_type = FALSE replaced_by = /datum/surgery @@ -14,6 +14,15 @@ var/healing_step_type var/antispam = FALSE +/datum/surgery/healing/can_start(mob/user, mob/living/patient) + . = ..() + if(isanimal(patient)) + var/mob/living/simple_animal/critter = patient + if(!critter.healable) + return FALSE + if(!(patient.mob_biotypes & (MOB_ORGANIC|MOB_HUMANOID))) + return FALSE + /datum/surgery/healing/New(surgery_target, surgery_location, surgery_bodypart) ..() if(healing_step_type)