Skip to content

Commit

Permalink
and so the crow nameth itself black x2
Browse files Browse the repository at this point in the history
  • Loading branch information
its-helvi committed Jan 4, 2025
1 parent 83039bc commit 46580e5
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 4 deletions.
5 changes: 1 addition & 4 deletions code/game/machinery/computer/Operating.dm
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,4 @@
continue
var/obj/tool_path = tool
allowed_tools_by_name += capitalize(initial(tool_path.name))
// Please for the love of all that is holy, someone make surgery steps
// have names so I don't have to do this stupid pretty_type shit.
. += list(pretty_type(S) = english_list(allowed_tools_by_name))
// . += "[pretty_type(S)]: [english_list(allowed_tools_by_name)]"
. += list(S.step_name = english_list(allowed_tools_by_name))
10 changes: 10 additions & 0 deletions code/modules/surgery/bones.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/glue_bone
step_name = "Glue bone"

allowed_tools = list(
/obj/item/surgical/bonegel = 100
)
Expand Down Expand Up @@ -50,6 +52,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/set_bone
step_name = "Set bone"

allowed_tools = list(
/obj/item/surgical/bonesetter = 100,
/obj/item/surgical/bonesetter_primitive = 60
Expand Down Expand Up @@ -95,6 +99,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/mend_skull
step_name = "Mend skull"

allowed_tools = list(
/obj/item/surgical/bonesetter = 100,
/obj/item/surgical/bonesetter_primitive = 60
Expand Down Expand Up @@ -135,6 +141,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/finish_bone
step_name = "Finish bone"

allowed_tools = list(
/obj/item/surgical/bonegel = 100
)
Expand Down Expand Up @@ -176,6 +184,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/clamp_bone
step_name = "Clamp bone"

allowed_tools = list(
/obj/item/surgical/bone_clamp = 100
)
Expand Down
12 changes: 12 additions & 0 deletions code/modules/surgery/encased.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/open_encased/saw
step_name = "Saw bones"

allowed_tools = list(
/obj/item/surgical/circular_saw = 100, \
/obj/item/surgical/saw_bronze = 75, \
Expand Down Expand Up @@ -70,6 +72,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/open_encased/retract
step_name = "Retract bones"

allowed_tools = list(
/obj/item/surgical/retractor = 100,
/obj/item/surgical/retractor_primitive = 75
Expand Down Expand Up @@ -124,6 +128,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/open_encased/close
step_name = "Close bones"

allowed_tools = list(
/obj/item/surgical/retractor = 100,
/obj/item/surgical/retractor_primitive = 75
Expand Down Expand Up @@ -183,6 +189,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/open_encased/mend
step_name = "Mend bones"

allowed_tools = list(
/obj/item/surgical/bonegel = 100
)
Expand Down Expand Up @@ -224,6 +232,8 @@
// Saw/Retractor/Gel Combi-open and close.
///////////////////////////////////////////////////////////////
/datum/surgery_step/open_encased/advancedsaw_open
step_name = "Divert bones"

allowed_tools = list(
/obj/item/surgical/circular_saw/manager = 100
)
Expand Down Expand Up @@ -273,6 +283,8 @@


/datum/surgery_step/open_encased/advancedsaw_mend
step_name = "Seal bones"

allowed_tools = list(
/obj/item/surgical/circular_saw/manager = 100
)
Expand Down
6 changes: 6 additions & 0 deletions code/modules/surgery/external_repair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
//////////////////////////////////////////////////////////////////

/datum/surgery_step/repairflesh/scan_injury
step_name = "Scan injury"

allowed_tools = list(
/obj/item/healthanalyzer = 100,
/obj/item/atmos_analyzer = 10
Expand Down Expand Up @@ -80,6 +82,8 @@
//////////////////////////////////////////////////////////////////

/datum/surgery_step/repairflesh/repair_burns
step_name = "Reconstruct skin"

allowed_tools = list(
/obj/item/stack/medical/advanced/ointment = 100,
/obj/item/surgical/FixOVein = 100,
Expand Down Expand Up @@ -149,6 +153,8 @@
//////////////////////////////////////////////////////////////////

/datum/surgery_step/repairflesh/repair_brute
step_name = "Repair skin"

allowed_tools = list(
/obj/item/stack/medical/advanced/bruise_pack = 100,
/obj/item/surgical/cautery = 100,
Expand Down
8 changes: 8 additions & 0 deletions code/modules/surgery/face.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/cut_face
step_name = "Cut face"

allowed_tools = list(
/obj/item/surgical/scalpel = 100, \
/obj/item/surgical/scalpel_primitive = 80, \
Expand Down Expand Up @@ -57,6 +59,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/face/mend_vocal
step_name = "Fix vocal cords"

allowed_tools = list(
/obj/item/surgical/hemostat = 100, \
/obj/item/stack/cable_coil = 75, \
Expand Down Expand Up @@ -90,6 +94,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/face/fix_face
step_name = "Fix face"

allowed_tools = list(
/obj/item/surgical/retractor = 100, \
/obj/item/surgical/retractor_primitive = 75, \
Expand Down Expand Up @@ -125,6 +131,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/face/cauterize
step_name = "Cauterize"

allowed_tools = list(
/obj/item/surgical/cautery = 100, \
/obj/item/clothing/mask/smokable/cigarette = 75, \
Expand Down
14 changes: 14 additions & 0 deletions code/modules/surgery/generic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/cut_open
step_name = "Incise"

allowed_tools = list(
/obj/item/surgical/scalpel = 100,
/obj/item/surgical/scalpel_bronze = 90,
Expand Down Expand Up @@ -73,6 +75,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/cut_with_laser
step_name = "Laser incision"

allowed_tools = list(
/obj/item/surgical/scalpel/laser3 = 95, \
/obj/item/surgical/scalpel/laser2 = 85, \
Expand Down Expand Up @@ -119,6 +123,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/incision_manager
step_name = "Prepared incision"

allowed_tools = list(
/obj/item/surgical/scalpel/manager = 100,
)
Expand Down Expand Up @@ -165,6 +171,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/clamp_bleeders
step_name = "Clamp bleeders"

allowed_tools = list(
/obj/item/surgical/hemostat = 100,
/obj/item/stack/cable_coil = 75,
Expand Down Expand Up @@ -205,6 +213,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/retract_skin
step_name = "Retract skin"

allowed_tools = list(
/obj/item/surgical/retractor = 100,
/obj/item/surgical/retractor_primitive = 75,
Expand Down Expand Up @@ -266,6 +276,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/cauterize
step_name = "Cauterize"

allowed_tools = list(
/obj/item/surgical/cautery = 100,
/obj/item/clothing/mask/smokable/cigarette = 75,
Expand Down Expand Up @@ -308,6 +320,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/generic/amputate
step_name = "Amputate limb"

allowed_tools = list(
/obj/item/surgical/circular_saw = 100,
/obj/item/material/knife/machete/hatchet = 75,
Expand Down
8 changes: 8 additions & 0 deletions code/modules/surgery/implant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/cavity/make_space
step_name = "Prepare cavity"

allowed_tools = list(
/obj/item/surgical/surgicaldrill = 100,
/obj/item/pen = 75,
Expand Down Expand Up @@ -76,6 +78,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/cavity/close_space
step_name = "Seal cavity"

priority = 2
allowed_tools = list(
/obj/item/surgical/cautery = 100,
Expand Down Expand Up @@ -111,6 +115,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/cavity/place_item
step_name = "Implant item"

priority = 0
allowed_tools = list(/obj/item = 100)

Expand Down Expand Up @@ -168,6 +174,8 @@
update_icon()

/datum/surgery_step/cavity/implant_removal
step_name = "Remove implant"

allowed_tools = list(
/obj/item/surgical/hemostat = 100, \
/obj/item/surgical/hemostat_primitive = 50, \
Expand Down
6 changes: 6 additions & 0 deletions code/modules/surgery/limb_reattach.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/limb/attach
step_name = "Attach limb"

allowed_tools = list(/obj/item/organ/external = 100)

min_duration = 50
Expand Down Expand Up @@ -75,6 +77,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/limb/connect
step_name = "Connect muscles"

allowed_tools = list(
/obj/item/surgical/hemostat = 100, \
/obj/item/stack/cable_coil = 75, \
Expand Down Expand Up @@ -115,6 +119,8 @@
///////////////////////////////////////////////////////////////

/datum/surgery_step/limb/mechanize
step_name = "Attach prosthetic"

allowed_tools = list(/obj/item/robot_parts = 100)

min_duration = 80
Expand Down
12 changes: 12 additions & 0 deletions code/modules/surgery/neck.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/mend_vessels
step_name = "Mend vessels"

priority = 1
allowed_tools = list(
/obj/item/surgical/FixOVein = 100,
Expand Down Expand Up @@ -56,6 +58,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/drill_vertebrae
step_name = "Drill vertebrae"

priority = 3 //Do this instead of expanding the skull cavity
allowed_tools = list(
/obj/item/surgical/surgicaldrill = 100,
Expand Down Expand Up @@ -99,6 +103,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/clean_chips
step_name = "Clear bone chips"

priority = 3 //Do this instead of picking around for implants.
allowed_tools = list(
/obj/item/surgical/hemostat = 100,
Expand Down Expand Up @@ -139,6 +145,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/mend_cord
step_name = "Mend spinal cord"

priority = 1 //Do this after IB.
allowed_tools = list(
/obj/item/surgical/FixOVein = 100,
Expand Down Expand Up @@ -179,6 +187,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/mend_vertebrae
step_name = "Mend vertebrae"

priority = 3 //Do this instead of fixing bones.
allowed_tools = list(
/obj/item/surgical/bonegel = 100,
Expand Down Expand Up @@ -217,6 +227,8 @@
/////////////////////////////

/datum/surgery_step/brainstem/realign_tissue
step_name = "Realign tissue"

priority = 3 //Do this instead of searching for objects in the skull.
allowed_tools = list(
/obj/item/surgical/hemostat = 100,
Expand Down
Loading

0 comments on commit 46580e5

Please sign in to comment.