mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-07-18 03:17:57 +01:00
5d84083ada
* Revert "Novastation Synthetic Refactor Port (#29204)"
This reverts commit 2e1a819c4f.
* Refactor Synths away from /Robot/ limbs, Cybernetically augmented humanoids have alternative surgeries (#3970)
* [NO SELF SURGERY] Cybernetically augmented humanoids have alternative surgeries (both standard and advanced) [NO SELF SURGERY], as well as other misc additions
* 1
* p1
* Update limbs.dm
* oh yeah Taurs
* Limbs and Techwebs for them
* 3
* EMP
* Surgery Removals from Synths
* 5
* test
* Look Ma, no more surgery
* Update tgstation.dme
* Update hepatectomy.dm
* little bit more edit cleanup and diff reset
* Update surgery.dm
* Synth Organ Surgery!
* Update lungs.dm
* target
* 4
* Update synth_defines.dm
* you add the metal before the zap zap
* Apply suggestions from code review
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
* 1
* Update code/modules/surgery/hepatectomy.dm
* Update code/modules/surgery/advanced/brainwashing.dm
---------
Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
Co-authored-by: Fluffles <piecopresident@gmail.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
* some extra stuff
* Why me
* woops x2
* this is back
* cord stuff
* woops
* woopsx2
* bruh
* Some minor stuff that I'm adding to tg aswell
* This is good
* Makes this not pain
* Holy shit lacked a cleanup
* adds me to codeowners so no more synth changes escape my eye
* done
* eh heck it
---------
Co-authored-by: Zergspower <22140677+Zergspower@users.noreply.github.com>
Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
Co-authored-by: Fluffles <piecopresident@gmail.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
100 lines
3.9 KiB
Plaintext
100 lines
3.9 KiB
Plaintext
/datum/surgery/gastrectomy
|
|
name = "Gastrectomy"
|
|
surgery_flags = SURGERY_REQUIRE_RESTING | SURGERY_REQUIRE_LIMB | SURGERY_REQUIRES_REAL_LIMB
|
|
organ_to_manipulate = ORGAN_SLOT_STOMACH
|
|
possible_locs = list(BODY_ZONE_CHEST)
|
|
steps = list(
|
|
/datum/surgery_step/incise,
|
|
/datum/surgery_step/retract_skin,
|
|
/datum/surgery_step/saw,
|
|
/datum/surgery_step/clamp_bleeders,
|
|
/datum/surgery_step/incise,
|
|
/datum/surgery_step/gastrectomy,
|
|
/datum/surgery_step/clamp_bleeders,
|
|
/datum/surgery_step/close,
|
|
)
|
|
|
|
/datum/surgery/gastrectomy/mechanic
|
|
name = "Nutrient Processing System Diagnostic"
|
|
requires_bodypart_type = BODYTYPE_ROBOTIC
|
|
steps = list(
|
|
/datum/surgery_step/mechanic_open,
|
|
/datum/surgery_step/open_hatch,
|
|
/datum/surgery_step/mechanic_unwrench,
|
|
/datum/surgery_step/gastrectomy/mechanic,
|
|
/datum/surgery_step/mechanic_wrench,
|
|
/datum/surgery_step/mechanic_close,
|
|
)
|
|
|
|
/datum/surgery/gastrectomy/can_start(mob/user, mob/living/carbon/target)
|
|
var/obj/item/organ/internal/stomach/target_stomach = target.get_organ_slot(ORGAN_SLOT_STOMACH)
|
|
if(isnull(target_stomach) || target_stomach.damage < 50 || target_stomach.operated)
|
|
return FALSE
|
|
return ..()
|
|
|
|
////Gastrectomy, because we truly needed a way to repair stomachs.
|
|
//95% chance of success to be consistent with most organ-repairing surgeries.
|
|
/datum/surgery_step/gastrectomy
|
|
name = "remove lower duodenum (scalpel)"
|
|
implements = list(
|
|
TOOL_SCALPEL = 95,
|
|
/obj/item/melee/energy/sword = 65,
|
|
/obj/item/knife = 45,
|
|
/obj/item/shard = 35)
|
|
time = 52
|
|
preop_sound = 'sound/surgery/scalpel1.ogg'
|
|
success_sound = 'sound/surgery/organ1.ogg'
|
|
failure_sound = 'sound/surgery/organ2.ogg'
|
|
surgery_effects_mood = TRUE
|
|
|
|
/datum/surgery_step/gastrectomy/mechanic
|
|
name = "perform maintenance (scalpel or wrench)"
|
|
implements = list(
|
|
TOOL_SCALPEL = 95,
|
|
TOOL_WRENCH = 95,
|
|
/obj/item/melee/energy/sword = 65,
|
|
/obj/item/knife = 45,
|
|
/obj/item/shard = 35)
|
|
preop_sound = 'sound/items/ratchet.ogg'
|
|
success_sound = 'sound/machines/doorclick.ogg'
|
|
|
|
/datum/surgery_step/gastrectomy/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
display_results(
|
|
user,
|
|
target,
|
|
span_notice("You begin to cut out a damaged piece of [target]'s stomach..."),
|
|
span_notice("[user] begins to make an incision in [target]."),
|
|
span_notice("[user] begins to make an incision in [target]."),
|
|
)
|
|
display_pain(target, "You feel a horrible stab in your gut!")
|
|
|
|
/datum/surgery_step/gastrectomy/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results = FALSE)
|
|
var/mob/living/carbon/human/target_human = target
|
|
var/obj/item/organ/internal/stomach/target_stomach = target.get_organ_slot(ORGAN_SLOT_STOMACH)
|
|
target_human.setOrganLoss(ORGAN_SLOT_STOMACH, 20) // Stomachs have a threshold for being able to even digest food, so I might tweak this number
|
|
if(target_stomach)
|
|
target_stomach.operated = TRUE
|
|
if(target_stomach.organ_flags & ORGAN_EMP) //If our organ is failing due to an EMP, fix that
|
|
target_stomach.organ_flags &= ~ORGAN_EMP
|
|
display_results(
|
|
user,
|
|
target,
|
|
span_notice("You successfully remove the damaged part of [target]'s stomach."),
|
|
span_notice("[user] successfully removes the damaged part of [target]'s stomach."),
|
|
span_notice("[user] successfully removes the damaged part of [target]'s stomach."),
|
|
)
|
|
display_pain(target, "The pain in your gut ebbs and fades somewhat.")
|
|
return ..()
|
|
|
|
/datum/surgery_step/gastrectomy/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery)
|
|
var/mob/living/carbon/human/target_human = target
|
|
target_human.adjustOrganLoss(ORGAN_SLOT_STOMACH, 15)
|
|
display_results(
|
|
user,
|
|
target,
|
|
span_warning("You cut the wrong part of [target]'s stomach!"),
|
|
span_warning("[user] cuts the wrong part of [target]'s stomach!"),
|
|
span_warning("[user] cuts the wrong part of [target]'s stomach!"),
|
|
)
|
|
display_pain(target, "Your stomach throbs with pain; it's not getting any better!")
|