Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mega branch of IPC changes and crew monitor adjustments. #3567

Merged
merged 7 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/game/machinery/computer/crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
JOB_ERT_CHAPLAIN = 225,
JOB_ERT_JANITOR = 226,
JOB_ERT_DEATHSQUAD = 227,
JOB_NT_REP = 230,
JOB_BLUESHIELD = 231,

// ANYTHING ELSE = UNKNOWN_JOB_ID, Unknowns/custom jobs will appear after civilians, and before assistants
JOB_PRISONER = 998,
JOB_ASSISTANT = 999,
)

Expand Down
5 changes: 5 additions & 0 deletions code/modules/cargo/bounties/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
reward = CARGO_CRATE_VALUE * 5
wanted_types = list(
/obj/item/organ/internal/heart = TRUE,
/obj/item/organ/internal/heart/synth = FALSE,
Gw0sty marked this conversation as resolved.
Show resolved Hide resolved
/obj/item/organ/internal/heart/cybernetic = FALSE,
/obj/item/organ/internal/heart/cybernetic/tier2 = TRUE,
/obj/item/organ/internal/heart/cybernetic/tier3 = TRUE,
Expand All @@ -16,6 +17,7 @@
required_count = 3
wanted_types = list(
/obj/item/organ/internal/lungs = TRUE,
/obj/item/organ/internal/lungs/synth = FALSE,
/obj/item/organ/internal/lungs/cybernetic = FALSE,
/obj/item/organ/internal/lungs/cybernetic/tier2 = TRUE,
/obj/item/organ/internal/lungs/cybernetic/tier3 = TRUE,
Expand All @@ -34,6 +36,7 @@
required_count = 3
wanted_types = list(
/obj/item/organ/internal/ears = TRUE,
/obj/item/organ/internal/ears/synth = FALSE,
/obj/item/organ/internal/ears/cybernetic = FALSE,
/obj/item/organ/internal/ears/cybernetic/upgraded = TRUE,
)
Expand All @@ -45,6 +48,7 @@
required_count = 3
wanted_types = list(
/obj/item/organ/internal/liver = TRUE,
/obj/item/organ/internal/liver/synth = FALSE,
/obj/item/organ/internal/liver/cybernetic = FALSE,
/obj/item/organ/internal/liver/cybernetic/tier2 = TRUE,
/obj/item/organ/internal/liver/cybernetic/tier3 = TRUE,
Expand All @@ -57,6 +61,7 @@
required_count = 3
wanted_types = list(
/obj/item/organ/internal/eyes = TRUE,
/obj/item/organ/internal/eyes/synth = FALSE,
/obj/item/organ/internal/eyes/robotic = FALSE,
)

Expand Down
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?
Gw0sty marked this conversation as resolved.
Show resolved Hide resolved
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",
Gw0sty marked this conversation as resolved.
Show resolved Hide resolved
"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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add monkestation edit comments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this one need a monkestation edit if its already modularized into the monkestation folder?

/datum/surgery/revival)

/obj/machinery/computer/operating/clockwork/Initialize(mapload)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ GLOBAL_DATUM_INIT(blueshield_crewmonitor, /datum/crewmonitor/blueshield, new)
JOB_CHIEF_MEDICAL_OFFICER = 20,
JOB_RESEARCH_DIRECTOR = 30,
JOB_CHIEF_ENGINEER = 40,
JOB_QUARTERMASTER = 50,
JOB_HEAD_OF_PERSONNEL = 60,
JOB_CENTCOM_ADMIRAL = 200,
JOB_CENTCOM = 201,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,16 @@
RND_CATEGORY_CYBERNETICS + RND_SUBCATEGORY_CYBERNETICS_ORGANS_MISC
)
departmental_flags = DEPARTMENT_BITFLAG_MEDICAL

/datum/design/power_cord
name = "power cord implant"
desc = "An internal power cord hooked up to a battery. Useful if you run on volts."
id = "power_cord"
build_type = MECHFAB
construction_time = 15 SECONDS
materials = list(/datum/material/iron = 2500, /datum/material/glass = 2000)
build_path = /obj/item/organ/internal/cyberimp/arm/item_set/power_cord
category = list(
RND_CATEGORY_CYBERNETICS + RND_SUBCATEGORY_CYBERNETICS_ORGANS_MISC
)
departmental_flags = DEPARTMENT_BITFLAG_MEDICAL
3 changes: 2 additions & 1 deletion monkestation/code/modules/research/techweb/all_nodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"ipc_arm_left",
"ipc_arm_right",
"ipc_leg_left",
"ipc_leg_right"
"ipc_leg_right",
"power_cord"
)
research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 2500)
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
Loading