TGUI Medical Conversion

This commit is contained in:
ShadowLarkens
2020-09-04 16:25:32 -07:00
parent 1a91b1c380
commit 44f65e2602
62 changed files with 4038 additions and 4410 deletions
+2
View File
@@ -119,6 +119,8 @@
max_duration = 100
/datum/surgery_step/cavity/place_item/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if(!istype(tool))
return 0
if(..())
var/obj/item/organ/external/affected = target.get_organ(target_zone)
if(istype(user,/mob/living/silicon/robot))
+3 -1
View File
@@ -28,6 +28,8 @@
max_duration = 70
/datum/surgery_step/limb/attach/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if(!istype(tool))
return 0
var/obj/item/organ/external/E = tool
var/obj/item/organ/external/P = target.organs_by_name[E.parent_organ]
var/obj/item/organ/external/affected = target.get_organ(target_zone)
@@ -117,7 +119,7 @@
max_duration = 100
/datum/surgery_step/limb/mechanize/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if(..())
if(..() && istype(tool))
var/obj/item/robot_parts/p = tool
if (p.part)
if (!(target_zone in p.part))
+13 -1
View File
@@ -164,6 +164,9 @@
if (!..())
return 0
if(!istype(tool))
return 0
var/obj/item/organ/external/affected = target.get_organ(target_zone)
if(!(affected && !(affected.robotic >= ORGAN_ROBOT)))
@@ -227,6 +230,9 @@
if (!..())
return 0
if(!istype(tool))
return 0
target.op_stage.current_organ = null
var/list/removable_organs = list()
@@ -281,7 +287,7 @@
var/obj/item/organ/internal/O = tool
var/obj/item/organ/external/affected = target.get_organ(target_zone)
if(!affected)
if(!affected || !istype(O))
return
var/organ_compatible
@@ -361,6 +367,9 @@
if (!..())
return 0
if(!istype(tool))
return 0
target.op_stage.current_organ = null
var/list/removable_organs = list()
@@ -417,6 +426,9 @@
if (!..())
return 0
if(!istype(tool))
return 0
target.op_stage.current_organ = null
var/list/removable_organs = list()