Skip to content

Commit

Permalink
Copy of Makes robotic repairs upgrades actually researchable. Monkest…
Browse files Browse the repository at this point in the history
…ation#3523

Its kinda cool code shame we dont use it. Makes the surgeries researchable and adds it to clockwork computers. Plus brings it in line with self surgery wound tending
  • Loading branch information
Gw0sty committed Sep 26, 2024
1 parent 08f58d5 commit 331ef92
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
21 changes: 21 additions & 0 deletions code/modules/research/designs/medical_designs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,27 @@
surgery = /datum/surgery/healing/combo/upgraded/femto
id = "surgery_heal_combo_upgrade_femto"

/datum/design/surgery/robot_healing // Apparently this helps the code not scream looking at other examples?
name = "Repair Robotic Limbs"
desc = "A surgical procedure that provides highly effective repairs and maintenance to robotic limbs."
surgery = /datum/surgery/robot_healing
id = "surgery_heal_robot_base"
research_icon_state = "surgery_chest"

/datum/design/surgery/robot_healing/upgraded
name = "Repair Robotic Limbs (Physical) Upgrade"
desc = "A surgical procedure that provides highly effective repairs and maintenance to robotic limbs. Is somewhat more efficient when the patient is severely damaged."
surgery = /datum/surgery/robot_healing/upgraded
id = "surgery_heal_robot_upgrade"
research_icon_state = "surgery_chest"

/datum/design/surgery/robot_healing/upgraded_2
name = "Repair Robotic Limbs (Physical) Upgrade"
desc = "A surgical procedure that quickly provides highly effective repairs and maintenance to robotic limbs. Is moderately more efficient when the patient is severely damaged."
surgery = /datum/surgery/robot_healing/experimental
id = "surgery_heal_robot_upgrade_femto"
research_icon_state = "surgery_chest"

/datum/design/surgery/brainwashing
name = "Brainwashing"
desc = "A surgical procedure which directly implants a directive into the patient's brain, making it their absolute priority. It can be cleared using a mindshield implant."
Expand Down
2 changes: 2 additions & 0 deletions code/modules/research/techweb/all_nodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@
design_ids = list(
"surgery_heal_brute_upgrade",
"surgery_heal_burn_upgrade",
"surgery_heal_robot_upgrade",
"surgery_filter_upgrade", // monke edit: improved blood filter surgery
)
research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 1000)
Expand All @@ -534,6 +535,7 @@
design_ids = list(
"surgery_heal_brute_upgrade_femto",
"surgery_heal_burn_upgrade_femto",
"surgery_heal_robot_upgrade_femto",
"surgery_heal_combo",
"surgery_lobotomy",
"surgery_wing_reconstruction",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/datum/surgery/healing/brute/upgraded/femto,
/datum/surgery/healing/burn/upgraded/femto,
/datum/surgery/healing/combo/upgraded/femto,
/datum/surgery/robot_healing/experimental,
/datum/surgery/revival)

/obj/machinery/computer/operating/clockwork/Initialize(mapload)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
return TRUE

/datum/surgery_step/fix_robot_brain
name = "fix posibrain"
name = "fix posibrain (multitool)"
implements = list(
TOOL_MULTITOOL = 100,
TOOL_HEMOSTAT = 35,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
possible_locs = list(BODY_ZONE_CHEST)
replaced_by = /datum/surgery
requires_bodypart_type = BODYTYPE_ROBOTIC
surgery_flags = SURGERY_IGNORE_CLOTHES | SURGERY_REQUIRE_RESTING | SURGERY_REQUIRE_LIMB
surgery_flags = SURGERY_IGNORE_CLOTHES | SURGERY_REQUIRE_RESTING | SURGERY_REQUIRE_LIMB | SURGERY_SELF_OPERABLE

/// The step to use in the 4th surgery step.
var/healing_step_type
Expand Down

0 comments on commit 331ef92

Please sign in to comment.