Skip to content

Commit

Permalink
The synth brain surgery now targets the chest and only applies for sy…
Browse files Browse the repository at this point in the history
…nths (#875)

* It's a synth surgery

* This might be a bit better

* organising

Co-authored-by: Waterpig <[email protected]>
  • Loading branch information
Steals-The-PRs and Majkl-J authored Nov 29, 2023
1 parent c9fc77b commit ff081d2
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
)

target_mobtypes = list(/mob/living/carbon/human)
possible_locs = list(BODY_ZONE_HEAD)
possible_locs = list(BODY_ZONE_CHEST) // The brains are in the chest
requires_bodypart_type = BODYTYPE_ROBOTIC
desc = "A surgical procedure that restores the default behavior logic and personality matrix of an IPC posibrain."

/datum/surgery/robot_brain_surgery/can_start(mob/user, mob/living/carbon/target, obj/item/tool)
var/obj/item/organ/internal/brain/synth/brain = target.get_organ_slot(ORGAN_SLOT_BRAIN)
if(!istype(brain) && !issynthetic(target))
return FALSE
else
return TRUE

/datum/surgery_step/fix_robot_brain
name = "fix posibrain"
implements = list(
Expand All @@ -24,10 +31,6 @@
repeatable = TRUE
time = 12 SECONDS //long and complicated

/datum/surgery/robot_brain_surgery/can_start(mob/user, mob/living/carbon/target, obj/item/tool)
var/obj/item/organ/internal/brain/brain = target.get_organ_slot(ORGAN_SLOT_BRAIN)
return !!brain

/datum/surgery_step/fix_robot_brain/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
display_results(
user,
Expand Down

0 comments on commit ff081d2

Please sign in to comment.