-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organ surgeries QOL and mechanical versions (#3605)
* Robotic organ surgeries first pass Ideally gives the organ repair surgeries to each of the organs * Final edit on the chest organs Fixes names and surgery steps * Makes so ear/eye surgery is only preformable if damaged Good clarity * Mechanical steps for ear and eye surgeries Im a little worried about removing the "requires_bodypart_type = NONE" But if its included the surgery appears twice. Once for each version. * Modularization I now know what modularization is! Moves the six surgeries into the monkestation code * Absolucys organ damage check change Co-authored-by: Lucy <[email protected]> * Revert "Modularization" This reverts commit 11e2f78. * Reapply "Modularization" This reverts commit ac90bd9. * So you gotta tick surgeries * Modularization for ear surgeries * Eyes too Best of luck --------- Co-authored-by: Lucy <[email protected]>
- Loading branch information
Showing
10 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,4 @@ | |
human_target.losebreath += 4 | ||
human_target.adjustOrganLoss(ORGAN_SLOT_LUNGS, 10) | ||
return FALSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/surgery/coronary_bypass/mechanic | ||
name = "Prosthesis Coronary Bypass" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) // Simpler mobs don't have bodypart types | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/mechanic_unwrench, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/incise_heart, | ||
/datum/surgery_step/coronary_bypass, | ||
/datum/surgery_step/mechanic_wrench, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/surgery/ear_surgery | ||
requires_bodypart_type = BODYTYPE_ORGANIC | ||
|
||
/datum/surgery/ear_surgery/mechanic | ||
name = "Ear surgery" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/fix_ears, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/surgery/eye_surgery | ||
requires_bodypart_type = BODYTYPE_ORGANIC | ||
|
||
/datum/surgery/eye_surgery/mechanic | ||
name = "Eye surgery" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/fix_eyes, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/datum/surgery/gastrectomy/mechanic | ||
name = "Prosthesis Gastrectomy" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) // Simpler mobs don't have bodypart types | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/mechanic_unwrench, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/incise, | ||
/datum/surgery_step/gastrectomy, | ||
/datum/surgery_step/clamp_bleeders, | ||
/datum/surgery_step/mechanic_wrench, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/surgery/hepatectomy/mechanic | ||
name = "Prosthesis Hepatectomy" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) // Simpler mobs don't have bodypart types | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/mechanic_unwrench, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/incise, | ||
/datum/surgery_step/hepatectomy, | ||
/datum/surgery_step/mechanic_wrench, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/datum/surgery/lobectomy/mechanic | ||
name = "Prosthesis Lobectomy" | ||
requires_bodypart_type = BODYTYPE_ROBOTIC | ||
target_mobtypes = list(/mob/living/carbon/human) // Simpler mobs don't have bodypart types | ||
steps = list( | ||
/datum/surgery_step/mechanic_open, | ||
/datum/surgery_step/open_hatch, | ||
/datum/surgery_step/mechanic_unwrench, | ||
/datum/surgery_step/prepare_electronics, | ||
/datum/surgery_step/lobectomy, | ||
/datum/surgery_step/mechanic_wrench, | ||
/datum/surgery_step/mechanic_close, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters