mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 15:48:49 +01:00
[MIRROR] Balloon Alerts (#10856)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Guti
Kashargul
parent
81bfbd1e01
commit
be0504b0de
@@ -34,7 +34,7 @@
|
||||
if (affected.stage == 0)
|
||||
user.visible_message(span_notice("[user] starts applying medication to the damaged bones in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_notice("You start applying medication to the damaged bones in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("applies medication to the damaged bones.", "applying medication to the damaged bones.") // CHOMPEdit
|
||||
user.balloon_alert_visible("applies medication to the damaged bones.", "applying medication to the damaged bones.")
|
||||
target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50)
|
||||
..()
|
||||
|
||||
@@ -42,14 +42,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] applies some [tool] to [target]'s bone in [affected.name]"), \
|
||||
span_notice("You apply some [tool] to [target]'s bone in [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("applies [tool] to [target]'s bone.", "applying [tool] to [target]'s bone.") // CHOMPEdit
|
||||
user.balloon_alert_visible("applies [tool] to [target]'s bone.", "applying [tool] to [target]'s bone.")
|
||||
affected.stage = 1
|
||||
|
||||
/datum/surgery_step/glue_bone/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!") , \
|
||||
span_danger("Your hand slips, smearing [tool] in the incision in [target]'s [affected.name]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips.")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Bone Setting Surgery
|
||||
@@ -78,7 +78,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] is beginning to set the bone in [target]'s [affected.name] in place with \the [tool].") , \
|
||||
span_notice("You are beginning to set the bone in [target]'s [affected.name] in place with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to set the bone in place.", "setting the bone in place.") // CHOMPEdit - Balloon alert
|
||||
user.balloon_alert_visible("begins to set the bone in place.", "setting the bone in place.")
|
||||
target.custom_pain("The pain in your [affected.name] is going to make you pass out!", 50)
|
||||
..()
|
||||
|
||||
@@ -87,19 +87,19 @@
|
||||
if (affected.status & ORGAN_BROKEN)
|
||||
user.visible_message(span_notice("[user] sets the bone in [target]'s [affected.name] in place with \the [tool]."), \
|
||||
span_notice("You set the bone in [target]'s [affected.name] in place with \the [tool]."))
|
||||
user.balloon_alert_visible("sets the bone in place.", "bone set in place.") // CHOMPEdit - Balloon alert
|
||||
user.balloon_alert_visible("sets the bone in place.", "bone set in place.")
|
||||
affected.stage = 2
|
||||
else
|
||||
user.visible_message("[user] sets the bone in [target]'s [affected.name] " + span_danger("in the WRONG place with \the [tool]."), \
|
||||
"You set the bone in [target]'s [affected.name] " + span_danger("in the WRONG place with \the [tool]."))
|
||||
user.balloon_alert_visible("sets the bone in the WRONG place.", "bone set in the WRONG place.") // CHOMPEdit - Balloon alert
|
||||
user.balloon_alert_visible("sets the bone in the WRONG place.", "bone set in the WRONG place.")
|
||||
affected.fracture()
|
||||
|
||||
/datum/surgery_step/set_bone/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!") , \
|
||||
span_danger("Your hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging the bone.", "your hand slips, damaging the bone") // CHOMPEdit - Balloon alert
|
||||
user.balloon_alert_visible("slips, damaging the bone.", "your hand slips, damaging the bone")
|
||||
affected.createwound(BRUISE, 5)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -128,21 +128,21 @@
|
||||
/datum/surgery_step/mend_skull/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] is beginning to piece together [target]'s skull with \the [tool].") , \
|
||||
span_notice("You are beginning to piece together [target]'s skull with \the [tool]."))
|
||||
user.balloon_alert_visible("pieces the skull together", "piecing skull together.") // CHOMPEdit
|
||||
user.balloon_alert_visible("pieces the skull together", "piecing skull together.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/mend_skull/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] sets [target]'s skull with \the [tool].") , \
|
||||
span_notice("You set [target]'s skull with \the [tool]."))
|
||||
user.balloon_alert_visible("sets the skull back.", "skull set back.") // CHOMPEdit
|
||||
user.balloon_alert_visible("sets the skull back.", "skull set back.")
|
||||
affected.stage = 2
|
||||
|
||||
/datum/surgery_step/mend_skull/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, damaging [target]'s face with \the [tool]!") , \
|
||||
span_danger("Your hand slips, damaging [target]'s face with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s face", "your hand slips, damaging [target]'s face") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s face", "your hand slips, damaging [target]'s face")
|
||||
var/obj/item/organ/external/head/h = affected
|
||||
h.createwound(BRUISE, 10)
|
||||
h.disfigured = 1
|
||||
@@ -177,14 +177,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] starts to finish mending the damaged bones in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You start to finish mending the damaged bones in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins mending damaged bones.", "mending damaged bones.") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins mending damaged bones.", "mending damaged bones.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/finish_bone/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has mended the damaged bones in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_notice("You have mended the damaged bones in [target]'s [affected.name] with \the [tool].") )
|
||||
user.balloon_alert_visible("mends damaged bones.", "mended damaged bones.") // CHOMPEdit
|
||||
user.balloon_alert_visible("mends damaged bones.", "mended damaged bones.")
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
affected.stage = 0
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!") , \
|
||||
span_danger("Your hand slips, smearing [tool] in the incision in [target]'s [affected.name]!"))
|
||||
user.balloon_alert_visible("slips, smearing [tool] in the incision.", "your hand slips, smearing [tool].") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, smearing [tool] in the incision.", "your hand slips, smearing [tool].")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Bone Clamp Surgery
|
||||
@@ -223,7 +223,7 @@
|
||||
if (affected.stage == 0)
|
||||
user.visible_message(span_notice("[user] starts repairing the damaged bones in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_notice("You starts repairing the damaged bones in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins repairing damaged bones.", "repairing damaged bones.") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins repairing damaged bones.", "repairing damaged bones.")
|
||||
target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50)
|
||||
..()
|
||||
|
||||
@@ -231,12 +231,12 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] sets the bone in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You sets [target]'s bone in [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("sets the bone back in.", "bone set in.") // CHOMPEdit
|
||||
user.balloon_alert_visible("sets the bone back in.", "bone set in.")
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
|
||||
/datum/surgery_step/clamp_bone/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!") , \
|
||||
span_danger("Your hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging the bone.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging the bone.")
|
||||
affected.createwound(BRUISE, 5)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
user.visible_message(span_filter_notice("[user] begins to cut through [target]'s [affected.encased] with \the [tool]."), \
|
||||
span_filter_notice("You begin to cut through [target]'s [affected.encased] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to cut", "cutting through the [affected.encased]'s ") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to cut", "cutting through the [affected.encased]'s ")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 60)
|
||||
..()
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
user.visible_message(span_notice("[user] has cut [target]'s [affected.encased] open with \the [tool]."), \
|
||||
span_notice("You have cut [target]'s [affected.encased] open with \the [tool]."))
|
||||
user.balloon_alert_visible("cuts [target]'s [affected.encased] open.", "[affected.encased] cut open.") // CHOMPEdit
|
||||
user.balloon_alert_visible("cuts [target]'s [affected.encased] open.", "[affected.encased] cut open.")
|
||||
affected.open = 2.5
|
||||
|
||||
/datum/surgery_step/open_encased/saw/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
user.visible_message(span_danger("[user]'s hand slips, cracking [target]'s [affected.encased] with \the [tool]!") , \
|
||||
span_danger("Your hand slips, cracking [target]'s [affected.encased] with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, crackng [target]'s [affected.encased]","your hand slips.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, crackng [target]'s [affected.encased]","your hand slips.")
|
||||
|
||||
affected.createwound(CUT, 20)
|
||||
affected.fracture()
|
||||
@@ -99,7 +99,7 @@
|
||||
var/msg = span_filter_notice("[user] starts to force open the [affected.encased] in [target]'s [affected.name] with \the [tool].")
|
||||
var/self_msg = span_filter_notice("You start to force open the [affected.encased] in [target]'s [affected.name] with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("starts to force open [target]'s [affected.encased]", "forcing open \the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to force open [target]'s [affected.encased]", "forcing open \the [affected.encased]")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 40)
|
||||
..()
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
var/msg = span_notice("[user] forces open [target]'s [affected.encased] with \the [tool].")
|
||||
var/self_msg = span_notice("You force open [target]'s [affected.encased] with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("forces open the [affected.encased]", "forced open the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("forces open the [affected.encased]", "forced open the [affected.encased]")
|
||||
|
||||
affected.open = 3
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
var/msg = span_danger("[user]'s hand slips, cracking [target]'s [affected.encased]!")
|
||||
var/self_msg = span_danger("Your hand slips, cracking [target]'s [affected.encased]!")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("slips, cracking [affected.encased]", "you hand slips, cracking [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, cracking [affected.encased]", "you hand slips, cracking [affected.encased]")
|
||||
|
||||
affected.createwound(BRUISE, 20)
|
||||
affected.fracture()
|
||||
@@ -156,7 +156,7 @@
|
||||
var/msg = span_filter_notice("[user] starts bending [target]'s [affected.encased] back into place with \the [tool].")
|
||||
var/self_msg = span_filter_notice("You start bending [target]'s [affected.encased] back into place with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("starts bending [affected.encased] into place.", "bending [affected.encased] into place") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts bending [affected.encased] into place.", "bending [affected.encased] into place")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 100)
|
||||
..()
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
var/msg = span_notice("[user] bends [target]'s [affected.encased] back into place with \the [tool].")
|
||||
var/self_msg = span_notice("You bend [target]'s [affected.encased] back into place with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("bends [affected.encased] into place", "[affected.encased] bend into place.") // CHOMPEdit
|
||||
user.balloon_alert_visible("bends [affected.encased] into place", "[affected.encased] bend into place.")
|
||||
|
||||
affected.open = 2.5
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
var/msg = span_danger("[user]'s hand slips, bending [target]'s [affected.encased] the wrong way!")
|
||||
var/self_msg = span_danger("Your hand slips, bending [target]'s [affected.encased] the wrong way!")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("slips, bending [affected.encased] the wrong way.", "your hand slips, bending [affected.encased] the wrong way.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, bending [affected.encased] the wrong way.", "your hand slips, bending [affected.encased] the wrong way.")
|
||||
|
||||
affected.createwound(BRUISE, 20)
|
||||
affected.fracture()
|
||||
@@ -218,7 +218,7 @@
|
||||
var/msg = span_filter_notice("[user] starts applying \the [tool] to [target]'s [affected.encased].")
|
||||
var/self_msg = span_filter_notice("You start applying \the [tool] to [target]'s [affected.encased].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("starts applying [tool] to \the [affected.encased]", "applying [tool] to \the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts applying [tool] to \the [affected.encased]", "applying [tool] to \the [affected.encased]")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 100)
|
||||
..()
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
var/msg = span_notice("[user] applied \the [tool] to [target]'s [affected.encased].")
|
||||
var/self_msg = span_notice("You applied \the [tool] to [target]'s [affected.encased].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("applies \the [tool] to [affected.encased]", "applied \the [tool] to [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("applies \the [tool] to [affected.encased]", "applied \the [tool] to [affected.encased]")
|
||||
|
||||
affected.open = 2
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
|
||||
user.visible_message(span_filter_notice("[user] begins to open [target]'s [affected.encased] with \the [tool]."), \
|
||||
span_filter_notice("You begin to open [target]'s [affected.encased] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to open \the [affected.encased]", "opening \the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to open \the [affected.encased]", "opening \the [affected.encased]")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 60)
|
||||
..()
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
user.visible_message(span_notice("[user] has cut [target]'s [affected.encased] wide open with \the [tool]."), \
|
||||
span_notice("You have cut [target]'s [affected.encased] wide open with \the [tool]."))
|
||||
user.balloon_alert_visible("cuts \the [affected.encased] wide open.", "cut \the [affected.encased] wide open.") // CHOMPEdit
|
||||
user.balloon_alert_visible("cuts \the [affected.encased] wide open.", "cut \the [affected.encased] wide open.")
|
||||
affected.open = 3
|
||||
|
||||
/datum/surgery_step/open_encased/advancedsaw_open/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
@@ -283,7 +283,7 @@
|
||||
|
||||
user.visible_message(span_danger("[user]'s hand slips, searing [target]'s [affected.encased] with \the [tool]!") , \
|
||||
span_danger("Your hand slips, searing [target]'s [affected.encased] with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, searing \the [affected.encased]", "your hand slips, searing [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, searing \the [affected.encased]", "your hand slips, searing [affected.encased]")
|
||||
|
||||
affected.createwound(CUT, 20)
|
||||
affected.createwound(BURN, 15)
|
||||
@@ -316,7 +316,7 @@
|
||||
var/msg = span_filter_notice("[user] starts sealing \the [target]'s [affected.encased] with \the [tool].")
|
||||
var/self_msg = span_filter_notice("You start sealing \the [target]'s [affected.encased] with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("starts sealing \the [affected.encased]", "sealing \the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts sealing \the [affected.encased]", "sealing \the [affected.encased]")
|
||||
target.custom_pain("Something hurts horribly in your [affected.name]!", 100)
|
||||
..()
|
||||
|
||||
@@ -328,6 +328,6 @@
|
||||
var/msg = span_notice("[user] sealed \the [target]'s [affected.encased] with \the [tool].")
|
||||
var/self_msg = span_notice("You sealed \the [target]'s [affected.encased] with \the [tool].")
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible("seals \the [affected.encased]", "sealed \the [affected.encased]") // CHOMPEdit
|
||||
user.balloon_alert_visible("seals \the [affected.encased]", "sealed \the [affected.encased]")
|
||||
|
||||
affected.open = 2
|
||||
|
||||
@@ -62,14 +62,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] begins scanning [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin scanning [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins scanning [target]'s [affected]", "scaning \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins scanning [target]'s [affected]", "scaning \the [affected]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/repairflesh/scan_injury/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] finishes scanning [target]'s [affected]."), \
|
||||
span_notice("You finish scanning [target]'s [affected]."))
|
||||
user.balloon_alert_visible("finishes scanning [target]'s [affected]", "finished scanning \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("finishes scanning [target]'s [affected]", "finished scanning \the [affected]")
|
||||
if(affected.brute_dam)
|
||||
to_chat(user, span_notice("The muscle in [target]'s [affected] is notably bruised."))
|
||||
if(affected.status & ORGAN_BROKEN)
|
||||
@@ -83,7 +83,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s hand slips, dropping \the [tool] onto [target]'s [affected]!") , \
|
||||
span_warning("Your hand slips, dropping \the [tool] onto [target]'s [affected]!") )
|
||||
user.balloon_alert_visible("slips, dropping \the [tool].", "your hand slips, dropping \the [tool] onto \the [affected].") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, dropping \the [tool].", "your hand slips, dropping \the [tool] onto \the [affected].")
|
||||
affected.createwound(BRUISE, 10)
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
@@ -117,16 +117,16 @@
|
||||
if(istype(tool, /obj/item/tape_roll) || istype(tool, /obj/item/taperoll))
|
||||
user.visible_message(span_warning("[user] begins taping up [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin taping up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins taping up \the [target]", "taping up \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins taping up \the [target]", "taping up \the [affected]")
|
||||
affected.jostle_bone(10)
|
||||
else if(istype(tool, /obj/item/surgical/hemostat) || istype(tool, /obj/item/surgical/FixOVein))
|
||||
user.visible_message(span_notice("[user] begins mending the charred blood vessels in [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin mending the charred blood vessels in [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins mending the charred blood vessels in [affected].", "mends the charred blood vessels in [affected].") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins mending the charred blood vessels in [affected].", "mends the charred blood vessels in [affected].")
|
||||
else
|
||||
user.visible_message(span_notice("[user] begins coating the charred tissue in [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin coating the charred tissue in [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins coating the charred tissue in \the [affected]", "coating the charred tssue in \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins coating the charred tissue in \the [affected]", "coating the charred tssue in \the [affected]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/repairflesh/repair_burns/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
@@ -134,7 +134,7 @@
|
||||
if(istype(tool, /obj/item/tape_roll) || istype(tool, /obj/item/taperoll))
|
||||
user.visible_message(span_notice("[user] finishes taping up [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You finish taping up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("tapes up \the [affected]", "taped up \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("tapes up \the [affected]", "taped up \the [affected]")
|
||||
affected.createwound(BRUISE, 10)
|
||||
affected.heal_damage(0, 25, 0, 0)
|
||||
if(!(affected.burn_dam))
|
||||
@@ -148,7 +148,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing up [target]'s [affected] with \the [tool]."), \
|
||||
span_danger("Your hand slips, tearing up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("slips, tearing up \the [affected]", "you slip, tearing up \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing up \the [affected]", "you slip, tearing up \the [affected]")
|
||||
affected.createwound(BRUISE, 10)
|
||||
affected.createwound(CUT, 5)
|
||||
if(istype(tool, /obj/item/stack) && prob(30))
|
||||
@@ -187,16 +187,16 @@
|
||||
if(istype(tool, /obj/item/tape_roll) || istype(tool, /obj/item/taperoll))
|
||||
user.visible_message(span_warning("[user] begins taping up [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin taping up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to tape up \the [affected].", "taping up \the [affected].") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to tape up \the [affected].", "taping up \the [affected].")
|
||||
affected.jostle_bone(10)
|
||||
else if(istype(tool, /obj/item/surgical/FixOVein) || istype(tool, /obj/item/surgical/bonesetter))
|
||||
user.visible_message(span_notice("[user] begins mending the torn tissue in [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin mending the torn tissue in [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins mending torn tissue in \the [affected]", "mending torn issue in \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins mending torn tissue in \the [affected]", "mending torn issue in \the [affected]")
|
||||
else
|
||||
user.visible_message(span_notice("[user] begins coating the tissue in [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You begin coating the tissue in [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins coating tissue in \the [affected]", "coating tissue in \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins coating tissue in \the [affected]", "coating tissue in \the [affected]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/repairflesh/repair_brute/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
@@ -204,7 +204,7 @@
|
||||
if(istype(tool, /obj/item/tape_roll) || istype(tool, /obj/item/taperoll))
|
||||
user.visible_message(span_notice("[user] finishes taping up [target]'s [affected] with \the [tool]."), \
|
||||
span_notice("You finish taping up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("tapes up \the [affected]", "taped up \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("tapes up \the [affected]", "taped up \the [affected]")
|
||||
affected.createwound(BRUISE, 10)
|
||||
affected.heal_damage(25, 0, 0, 0)
|
||||
if(!(affected.brute_dam))
|
||||
@@ -218,7 +218,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing up [target]'s [affected] with \the [tool]."), \
|
||||
span_danger("Your hand slips, tearing up [target]'s [affected] with \the [tool]."))
|
||||
user.balloon_alert_visible("slips, tearing up \the [affected]", "your hand slips, tearing up \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing up \the [affected]", "your hand slips, tearing up \the [affected]")
|
||||
affected.createwound(BRUISE, 10)
|
||||
affected.createwound(CUT, 5)
|
||||
if(istype(tool, /obj/item/stack) && prob(30))
|
||||
|
||||
@@ -40,20 +40,20 @@
|
||||
/datum/surgery_step/generic/cut_face/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to cut open [target]'s face and neck with \the [tool]."), \
|
||||
span_filter_notice("You start to cut open [target]'s face and neck with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to cut open [target]'s face and neck.", "cutting open face and neck.") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to cut open [target]'s face and neck.", "cutting open face and neck.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/generic/cut_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has cut open [target]'s face and neck with \the [tool].") , \
|
||||
span_notice(" You have cut open[target]'s face and neck with \the [tool]."),)
|
||||
user.balloon_alert_visible("cuts up [target]'s face and neck.", "face and neck cut open.") // CHOMPEdit
|
||||
user.balloon_alert_visible("cuts up [target]'s face and neck.", "face and neck cut open.")
|
||||
target.op_stage.face = 1
|
||||
|
||||
/datum/surgery_step/generic/cut_face/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, slicing [target]'s throat with \the [tool]!") , \
|
||||
span_danger("Your hand slips, slicing [target]'s throat wth \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, slicing [target]'s throat.", "your hand slips, slicing [target]'s throat.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, slicing [target]'s throat.", "your hand slips, slicing [target]'s throat.")
|
||||
affected.createwound(CUT, 60)
|
||||
target.AdjustLosebreath(10)
|
||||
|
||||
@@ -78,19 +78,19 @@
|
||||
/datum/surgery_step/face/mend_vocal/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts mending [target]'s vocal cords with \the [tool]."), \
|
||||
span_filter_notice("You start mending [target]'s vocal cords with \the [tool]."))
|
||||
user.balloon_alert_visible("starts mending [target]'s vocal cords.", "mending vocal cords.") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts mending [target]'s vocal cords.", "mending vocal cords.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/face/mend_vocal/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] mends [target]'s vocal cords with \the [tool]."), \
|
||||
span_notice("You mend [target]'s vocal cords with \the [tool]."))
|
||||
user.balloon_alert_visible("[target]'s vocal cords mended", "vocal cords mended") // CHOMPEdit
|
||||
user.balloon_alert_visible("[target]'s vocal cords mended", "vocal cords mended")
|
||||
target.op_stage.face = 2
|
||||
|
||||
/datum/surgery_step/face/mend_vocal/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_danger("[user]'s hand slips, clamping [target]'s trachea shut for a moment with \the [tool]!"), \
|
||||
span_danger("Your hand slips, clamping [target]'s trachea shut for a moment with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, clamping [target]'s trachea", "your hand slips, clamping [target]'s trachea.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, clamping [target]'s trachea", "your hand slips, clamping [target]'s trachea.")
|
||||
target.AdjustLosebreath(10)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -115,20 +115,20 @@
|
||||
/datum/surgery_step/face/fix_face/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts pulling the skin on [target]'s face back in place with \the [tool]."), \
|
||||
span_filter_notice("You start pulling the skin on [target]'s face back in place with \the [tool]."))
|
||||
user.balloon_alert_visible("starts pulling the skin on [target]'s face back in place.", "pulling the skin back in place.") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts pulling the skin on [target]'s face back in place.", "pulling the skin back in place.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/face/fix_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] pulls the skin on [target]'s face back in place with \the [tool]."), \
|
||||
span_notice("You pull the skin on [target]'s face back in place with \the [tool]."))
|
||||
user.balloon_alert_visible("pulls the skin on [target]'s face back in place", "skin pulled back in place.") // CHOMPEdit
|
||||
user.balloon_alert_visible("pulls the skin on [target]'s face back in place", "skin pulled back in place.")
|
||||
target.op_stage.face = 3
|
||||
|
||||
/datum/surgery_step/face/fix_face/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing skin on [target]'s face with \the [tool]!"), \
|
||||
span_danger("Your hand slips, tearing skin on [target]'s face with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, tearing skin on [target]'s face.", "your hand slips, tearing skin on the face.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing skin on [target]'s face.", "your hand slips, tearing skin on the face.")
|
||||
target.apply_damage(10, BRUTE, affected, sharp = TRUE, sharp = TRUE)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -153,14 +153,14 @@
|
||||
/datum/surgery_step/face/cauterize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] is beginning to cauterize the incision on [target]'s face and neck with \the [tool].") , \
|
||||
span_notice("You are beginning to cauterize the incision on [target]'s face and neck with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to cauterize the incision on [target]'s face and neck", "cauterizing the incision on face and neck.") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to cauterize the incision on [target]'s face and neck", "cauterizing the incision on face and neck.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/face/cauterize/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] cauterizes the incision on [target]'s face and neck with \the [tool]."), \
|
||||
span_notice("You cauterize the incision on [target]'s face and neck with \the [tool]."))
|
||||
user.balloon_alert_visible("cauterizes the incision on [target]'s face and neck", "cauterized the incision on the face and neck.") // CHOMPEdit
|
||||
user.balloon_alert_visible("cauterizes the incision on [target]'s face and neck", "cauterized the incision on the face and neck.")
|
||||
affected.open = 0
|
||||
affected.status &= ~ORGAN_BLEEDING
|
||||
if (target.op_stage.face == 3)
|
||||
@@ -172,5 +172,5 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, leaving a small burn on [target]'s face with \the [tool]!"), \
|
||||
span_danger("Your hand slips, leaving a small burn on [target]'s face with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, leaving a small burn on the face.", "your hand slips, leaving a small burn on the face.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, leaving a small burn on the face.", "your hand slips, leaving a small burn on the face.")
|
||||
target.apply_damage(4, BURN, affected)
|
||||
|
||||
@@ -50,14 +50,14 @@
|
||||
user.visible_message(span_filter_notice("[user] starts the incision on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_filter_notice("You start the incision on [target]'s [affected.name] with \the [tool]."))
|
||||
target.custom_pain("You feel a horrible pain as if from a sharp knife in your [affected.name]!", 40)
|
||||
user.balloon_alert_visible("starts to open an incision on [target]", "opening incision on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to open an incision on [target]", "opening incision on \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/generic/cut_open/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has made an incision on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have made an incision on [target]'s [affected.name] with \the [tool]."),)
|
||||
user.balloon_alert_visible("opens an incision on [target]'s [affected.name]", "incision open on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("opens an incision on [target]'s [affected.name]", "incision open on \the [affected.name]")
|
||||
affected.open = 1
|
||||
|
||||
if(istype(target) && target.should_have_organ(O_HEART))
|
||||
@@ -69,7 +69,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, slicing open [target]'s [affected.name] in the wrong place with \the [tool]!"), \
|
||||
span_danger("Your hand slips, slicing open [target]'s [affected.name] in the wrong place with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, slicing open \the [affected.name]", "your hand slips, slicing open [affected.name] in the wrong place.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, slicing open \the [affected.name]", "your hand slips, slicing open [affected.name] in the wrong place.")
|
||||
affected.createwound(CUT, 10)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -99,7 +99,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts the bloodless incision on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_filter_notice("You start the bloodless incision on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts to open a bloodless incision on [target]", "opening a blodless incision on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to open a bloodless incision on [target]", "opening a blodless incision on \the [affected.name]")
|
||||
target.custom_pain("You feel a horrible, searing pain in your [affected.name]!", 50)
|
||||
..()
|
||||
|
||||
@@ -119,11 +119,11 @@
|
||||
affected.organ_clamp()
|
||||
user.visible_message(span_notice("[user] has made a bloodless incision on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have made a bloodless incision on [target]'s [affected.name] with \the [tool]."),)
|
||||
user.balloon_alert_visible("opens a bloodless incision on [target]'s [affected.name]", "bloodless incision open on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("opens a bloodless incision on [target]'s [affected.name]", "bloodless incision open on \the [affected.name]")
|
||||
else
|
||||
user.visible_message(span_notice("[user] has made an incision on [target]'s [affected.name] with \the [tool], but blood is still escaping from the wound."), \
|
||||
span_notice("You have made an incision on [target]'s [affected.name] with \the [tool], but blood is still coming from the wound.."),)
|
||||
user.balloon_alert_visible("opens an incision on [target]'s [affected.name], blood still flowing", "incision open on \the [affected.name], but blood still flows") // CHOMPEdit
|
||||
user.balloon_alert_visible("opens an incision on [target]'s [affected.name], blood still flowing", "incision open on \the [affected.name], but blood still flows")
|
||||
//Could be cleaner ...
|
||||
|
||||
spread_germs_to_organ(affected, user)
|
||||
@@ -132,7 +132,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips as the blade sputters, searing a long gash in [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips as the blade sputters, searing a long gash in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, searing a long gash on \the [affected.name]", "your hand slips, searing a long gash on [affected.name].") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, searing a long gash on \the [affected.name]", "your hand slips, searing a long gash on [affected.name].")
|
||||
affected.createwound(CUT, 7.5)
|
||||
affected.createwound(BURN, 12.5)
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts to construct a prepared incision on and within [target]'s [affected.name] with \the [tool]."), \
|
||||
span_filter_notice("You start to construct a prepared incision on and within [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins constructing a prepared incsion on [target]'s [affected.name]", "contructing prepared incision on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins constructing a prepared incsion on [target]'s [affected.name]", "contructing prepared incision on \the [affected.name]")
|
||||
target.custom_pain("You feel a horrible, searing pain in your [affected.name] as it is pushed apart!", 50)
|
||||
..()
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has constructed a prepared incision on and within [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have constructed a prepared incision on and within [target]'s [affected.name] with \the [tool]."),)
|
||||
user.balloon_alert_visible("constructs a prepared incision", "constructed prepared incision") // CHOMPEdit
|
||||
user.balloon_alert_visible("constructs a prepared incision", "constructed prepared incision")
|
||||
affected.open = 1
|
||||
|
||||
if(istype(target) && target.should_have_organ(O_HEART))
|
||||
@@ -183,7 +183,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand jolts as the system sparks, ripping a gruesome hole in [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand jolts as the system sparks, ripping a gruesome hole in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("hand slips as the system sparks, ripping a gruesome hole in [target]'s [affected.name]", "your hand jolts as the system sparks, ripping a gruesome hole in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("hand slips as the system sparks, ripping a gruesome hole in [target]'s [affected.name]", "your hand jolts as the system sparks, ripping a gruesome hole in \the [affected.name]")
|
||||
affected.createwound(CUT, 20)
|
||||
affected.createwound(BURN, 15)
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts clamping bleeders in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_filter_notice("You start clamping bleeders in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts clamping bleeders", "clamping bleders") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts clamping bleeders", "clamping bleders")
|
||||
target.custom_pain("The pain in your [affected.name] is maddening!", 40)
|
||||
..()
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] clamps bleeders in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You clamp bleeders in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("clamps bleeders", "clamped bleeders") // CHOMPEdit
|
||||
user.balloon_alert_visible("clamps bleeders", "clamped bleeders")
|
||||
affected.organ_clamp()
|
||||
spread_germs_to_organ(affected, user)
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing blood vessels and causing massive bleeding in [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips, tearing blood vessels and causing massive bleeding in [target]'s [affected.name] with \the [tool]!"),)
|
||||
user.balloon_alert_visible("slips, tearing blood vessels and causing massive bleedings in [target]'s [affected.name]", "your hand slips, tearing blood vessels and causing massive bleedings in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing blood vessels and causing massive bleedings in [target]'s [affected.name]", "your hand slips, tearing blood vessels and causing massive bleedings in \the [affected.name]")
|
||||
affected.createwound(CUT, 10)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -255,8 +255,8 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
var/msg = "[user] starts to pry open the incision on [target]'s [affected.name] with \the [tool]."
|
||||
var/self_msg = "You start to pry open the incision on [target]'s [affected.name] with \the [tool]."
|
||||
var/msgBall = "Starts to pry open the incision on [target]'s [affected.name]" // CHOMPEdit
|
||||
var/self_msgBall = "Prying open the incision on [affected.name]" // CHOMPEdit
|
||||
var/msgBall = "starts to pry open the incision on [target]'s [affected.name]"
|
||||
var/self_msgBall = "prying open the incision on [affected.name]"
|
||||
if (target_zone == BP_TORSO)
|
||||
msg = "[user] starts to separate the ribcage and rearrange the organs in [target]'s torso with \the [tool]."
|
||||
self_msg = "You start to separate the ribcage and rearrange the organs in [target]'s torso with \the [tool]."
|
||||
@@ -264,10 +264,10 @@
|
||||
self_msgBall = "Separating ribcage and rearranging organs."
|
||||
if (target_zone == BP_GROIN)
|
||||
msg = "[user] starts to pry open the incision and rearrange the organs in [target]'s lower abdomen with \the [tool]."
|
||||
self_msg = "You start to pry open the incision and rearrange the organs in [target]'s lower abdomen with \the [tool]."
|
||||
msgBall = "Starts to pry open the incison and rearrange the organs in [target]'s lower abdomen"
|
||||
self_msg = "you start to pry open the incision and rearrange the organs in [target]'s lower abdomen with \the [tool]."
|
||||
msgBall = "starts to pry open the incison and rearrange the organs in [target]'s lower abdomen"
|
||||
user.visible_message(span_filter_notice("[msg]"), span_filter_notice("[self_msg]"))
|
||||
user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit
|
||||
user.balloon_alert_visible(msgBall, self_msgBall)
|
||||
target.custom_pain("It feels like the skin on your [affected.name] is on fire!", 40)
|
||||
..()
|
||||
|
||||
@@ -275,40 +275,40 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
var/msg = span_notice("[user] keeps the incision open on [target]'s [affected.name] with \the [tool].")
|
||||
var/self_msg = span_notice("You keep the incision open on [target]'s [affected.name] with \the [tool].")
|
||||
var/msgBall = "Keeps the incision open on [target]'s [affected.name]"
|
||||
var/self_msgBall = "Keeping the incision open on \the [affected.name]"
|
||||
var/msgBall = "keeps the incision open on [target]'s [affected.name]"
|
||||
var/self_msgBall = "keeping the incision open on \the [affected.name]"
|
||||
if (target_zone == BP_TORSO)
|
||||
msg = span_notice("[user] keeps the ribcage open on [target]'s torso with \the [tool].")
|
||||
self_msg = span_notice("You keep the ribcage open on [target]'s torso with \the [tool].")
|
||||
msgBall = "Keeps the ribcage open on [target]'s torso."
|
||||
self_msgBall = "Keeping the ribcage open."
|
||||
msgBall = "keeps the ribcage open on [target]'s torso."
|
||||
self_msgBall = "keeping the ribcage open."
|
||||
if (target_zone == BP_GROIN)
|
||||
msg = span_notice("[user] keeps the incision open on [target]'s lower abdomen with \the [tool].")
|
||||
self_msg = span_notice("You keep the incision open on [target]'s lower abdomen with \the [tool].")
|
||||
msgBall = "Keeps the incision open on [target]'s lower abdomen."
|
||||
self_msgBall = "Keeping the incision open on the lower abdomen."
|
||||
msgBall = "keeps the incision open on [target]'s lower abdomen."
|
||||
self_msgBall = "keeping the incision open on the lower abdomen."
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit
|
||||
user.balloon_alert_visible(msgBall, self_msgBall)
|
||||
affected.open = 2
|
||||
|
||||
/datum/surgery_step/generic/retract_skin/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
var/msg = span_danger("[user]'s hand slips, tearing the edges of the incision on [target]'s [affected.name] with \the [tool]!")
|
||||
var/self_msg = span_danger("Your hand slips, tearing the edges of the incision on [target]'s [affected.name] with \the [tool]!")
|
||||
var/msgBall = "Slips, tearing the edges of the incision."
|
||||
var/self_msgBall = "Your hand slips, tearing the edges of the incision."
|
||||
var/msgBall = "slips, tearing the edges of the incision."
|
||||
var/self_msgBall = "your hand slips, tearing the edges of the incision."
|
||||
if (target_zone == BP_TORSO)
|
||||
msg = span_danger("[user]'s hand slips, damaging several organs in [target]'s torso with \the [tool]!")
|
||||
self_msg = span_danger("Your hand slips, damaging several organs in [target]'s torso with \the [tool]!")
|
||||
msgBall = "Slips, damaging several organs in [target]'s torso."
|
||||
self_msgBall = "Your hand slips, damaging several organs in the torso."
|
||||
msgBall = "slips, damaging several organs in [target]'s torso."
|
||||
self_msgBall = "your hand slips, damaging several organs in the torso."
|
||||
if (target_zone == BP_GROIN)
|
||||
msg = span_danger("[user]'s hand slips, damaging several organs in [target]'s lower abdomen with \the [tool]!")
|
||||
self_msg = span_danger("Your hand slips, damaging several organs in [target]'s lower abdomen with \the [tool]!")
|
||||
msgBall = "Slips, damaging several organs in [target]'s lower abdomen."
|
||||
self_msgBall = "Your hand slips, damaging several organs in the torso."
|
||||
msgBall = "slips, damaging several organs in [target]'s lower abdomen."
|
||||
self_msgBall = "your hand slips, damaging several organs in the torso."
|
||||
user.visible_message(msg, self_msg)
|
||||
user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit
|
||||
user.balloon_alert_visible(msgBall, self_msgBall)
|
||||
target.apply_damage(12, BRUTE, affected, sharp = TRUE)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -336,7 +336,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] is beginning to cauterize the incision on [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You are beginning to cauterize the incision on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to cauterize the incision on [target]'s [affected.name]", "cauterizing \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to cauterize the incision on [target]'s [affected.name]", "cauterizing \the [affected.name]")
|
||||
target.custom_pain("Your [affected.name] is being burned!", 40)
|
||||
..()
|
||||
|
||||
@@ -344,7 +344,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] cauterizes the incision on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You cauterize the incision on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("cauterizes the incision on [target]'s [affected.name]", "incison cauterized on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("cauterizes the incision on [target]'s [affected.name]", "incison cauterized on \the [affected.name]")
|
||||
affected.open = 0
|
||||
affected.germ_level = 0
|
||||
affected.status &= ~ORGAN_BLEEDING
|
||||
@@ -353,7 +353,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, leaving a small burn on [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips, leaving a small burn on [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, leaving a small burn on [target]'s [affected.name]", "your hand slips, leaving a small burn on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, leaving a small burn on [target]'s [affected.name]", "your hand slips, leaving a small burn on \the [affected.name]")
|
||||
target.apply_damage(3, BURN, affected)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -385,7 +385,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] is beginning to amputate [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You are beginning to cut through [target]'s [affected.amputation_point] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to amputate [target]'s [affected.name]", "amputating \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to amputate [target]'s [affected.name]", "amputating \the [affected.name]")
|
||||
target.custom_pain("Your [affected.amputation_point] is being ripped apart!", 100)
|
||||
..()
|
||||
|
||||
@@ -393,13 +393,13 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] amputates [target]'s [affected.name] at the [affected.amputation_point] with \the [tool]."), \
|
||||
span_notice("You amputate [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("amputates [target]'s [affected.name] at the [affected.amputation_point]", "amputated \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("amputates [target]'s [affected.name] at the [affected.amputation_point]", "amputated \the [affected.name]")
|
||||
affected.droplimb(1,DROPLIMB_EDGE)
|
||||
|
||||
/datum/surgery_step/generic/amputate/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, sawing through the bone in [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips, sawwing through the bone in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, sawing through the bone in [target]'s [affected.name]", "your hand slips, sawng through the bone in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, sawing through the bone in [target]'s [affected.name]", "your hand slips, sawng through the bone in \the [affected.name]")
|
||||
affected.createwound(CUT, 30)
|
||||
affected.fracture()
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
var/obj/item/organ/external/chest/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, scraping around inside [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips, scraping around inside [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, scraping around inside [target]'s [affected.name]", "your hand slips, scraping around inside \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, scraping around inside [target]'s [affected.name]", "your hand slips, scraping around inside \the [affected.name]")
|
||||
affected.createwound(CUT, 20)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -67,7 +67,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts making some space inside [target]'s [get_cavity(affected)] cavity with \the [tool]."), \
|
||||
span_filter_notice("You start making some space inside [target]'s [get_cavity(affected)] cavity with \the [tool].") )
|
||||
user.balloon_alert_visible("starts making space inside [target]'s [get_cavity(affected)]", "making space inside [get_cavity(affected)]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts making space inside [target]'s [get_cavity(affected)]", "making space inside [get_cavity(affected)]")
|
||||
target.custom_pain("The pain in your chest is living hell!",1)
|
||||
affected.cavity = 1
|
||||
..()
|
||||
@@ -76,7 +76,7 @@
|
||||
var/obj/item/organ/external/chest/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] makes some space inside [target]'s [get_cavity(affected)] cavity with \the [tool]."), \
|
||||
span_notice("You make some space inside [target]'s [get_cavity(affected)] cavity with \the [tool].") )
|
||||
user.balloon_alert_visible("makes space inside [target]'s [get_cavity(affected)]", "made space inside \the [get_cavity(affected)]") // CHOMPEdit
|
||||
user.balloon_alert_visible("makes space inside [target]'s [get_cavity(affected)]", "made space inside \the [get_cavity(affected)]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Cavity Closing Surgery
|
||||
@@ -104,7 +104,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts mending [target]'s [get_cavity(affected)] cavity wall with \the [tool]."), \
|
||||
span_filter_notice("You start mending [target]'s [get_cavity(affected)] cavity wall with \the [tool].") )
|
||||
user.balloon_alert_visible("starts mending [target]'s [get_cavity(affected)] cavity wall.", "mending \the [get_cavity(affected)] cavity wall.") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts mending [target]'s [get_cavity(affected)] cavity wall.", "mending \the [get_cavity(affected)] cavity wall.")
|
||||
target.custom_pain("The pain in your chest is living hell!",1)
|
||||
affected.cavity = 0
|
||||
..()
|
||||
@@ -113,7 +113,7 @@
|
||||
var/obj/item/organ/external/chest/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] mends [target]'s [get_cavity(affected)] cavity walls with \the [tool]."), \
|
||||
span_notice(" You mend [target]'s [get_cavity(affected)] cavity walls with \the [tool].") )
|
||||
user.balloon_alert_visible("mends [target]'s [get_cavity(affected)] cavity walls", "mended [get_cavity(affected)] cavity walls.") // CHOMPEdit
|
||||
user.balloon_alert_visible("mends [target]'s [get_cavity(affected)] cavity walls", "mended [get_cavity(affected)] cavity walls.")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Item Implantation Surgery
|
||||
@@ -156,7 +156,7 @@
|
||||
tool = G.wrapped
|
||||
user.visible_message(span_notice("[user] starts putting \the [tool] inside [target]'s [get_cavity(affected)] cavity."), \
|
||||
span_notice("You start putting \the [tool] inside [target]'s [get_cavity(affected)] cavity.") ) //Nobody will probably ever see this, but I made these two blue. ~CK
|
||||
user.balloon_alert_visible("starts putting \the [tool] inside [target]'s [get_cavity(affected)]", "putting \the [tool] inside \the [get_cavity(affected)]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts putting \the [tool] inside [target]'s [get_cavity(affected)]", "putting \the [tool] inside \the [get_cavity(affected)]")
|
||||
target.custom_pain("The pain in your chest is living hell!",1)
|
||||
..()
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
user.drop_item()
|
||||
user.visible_message(span_notice("[user] puts \the [tool] inside [target]'s [get_cavity(affected)] cavity."), \
|
||||
span_notice("You put \the [tool] inside [target]'s [get_cavity(affected)] cavity.") )
|
||||
user.balloon_alert_visible("Puts \the [tool] inside [target]'s [get_cavity(affected)]", "\the [tool] placed inside [get_cavity(affected)]") // CHOMPEdit
|
||||
user.balloon_alert_visible("Puts \the [tool] inside [target]'s [get_cavity(affected)]", "\the [tool] placed inside [get_cavity(affected)]")
|
||||
if (tool.w_class > get_max_wclass(affected)/2 && prob(50) && (affected.robotic < ORGAN_ROBOT))
|
||||
to_chat(user, span_danger(" You tear some blood vessels trying to fit such a big object in this cavity."))
|
||||
var/datum/wound/internal_bleeding/I = new (10)
|
||||
@@ -209,7 +209,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] starts poking around inside [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You start poking around inside [target]'s [affected.name] with \the [tool].") )
|
||||
user.balloon_alert_visible("pokes inside [target]'s [affected.name]", "poking around inside [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("pokes inside [target]'s [affected.name]", "poking around inside [affected.name]")
|
||||
target.custom_pain("The pain in your [affected.name] is living hell!",1)
|
||||
..()
|
||||
|
||||
@@ -222,13 +222,13 @@
|
||||
if(isnull(obj)) //They clicked cancel.
|
||||
user.visible_message(span_notice("[user] takes \the [tool] out of [target]'s [affected.name]."), \
|
||||
span_notice("You take \the [tool] out of the incision on [target]'s [affected.name].") )
|
||||
user.balloon_alert_visible("Takes \the [tool] out of [target]'s [affected.name]", "\the [tool] taken out of the incison on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("Takes \the [tool] out of [target]'s [affected.name]", "\the [tool] taken out of the incison on \the [affected.name]")
|
||||
return
|
||||
if(!do_mob(user, target, 1)) //They moved away
|
||||
to_chat(user, span_warning("You must remain close to and keep focused on your patient to conduct surgery."))
|
||||
user.visible_message(span_notice("[user] fails to remove anything from [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_notice("You fail to remove the [obj] from [target]'s [affected.name]s with \the [tool]!") )
|
||||
user.balloon_alert_visible("fails to remove anything from [target]'s [affected.name]", "failed to remove \the [obj] from \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("fails to remove anything from [target]'s [affected.name]", "failed to remove \the [obj] from \the [affected.name]")
|
||||
return
|
||||
|
||||
if(istype(obj,/obj/item/implant))
|
||||
@@ -236,17 +236,17 @@
|
||||
if (!imp.islegal()) //ILLEGAL IMPLANT ALERT!!!!!!!!!!
|
||||
user.visible_message(span_notice("[user] seems to be intently working on something within [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_notice("You intently begin to take [obj] out of the incision on [target]'s [affected.name]s with \the [tool]!") )
|
||||
user.balloon_alert_visible("intently works on something within [target]'s [affected.name]", "intently taking \the [obj] out of the incision in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("intently works on something within [target]'s [affected.name]", "intently taking \the [obj] out of the incision in \the [affected.name]")
|
||||
if(!do_after(user, min_duration, target))
|
||||
user.visible_message(span_notice("[user] fails to remove anything from [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_notice("You fail to remove the [obj] from [target]'s [affected.name]s with \the [tool]!") )
|
||||
user.balloon_alert_visible("fails to remove anything from [target]'s [affected.name]", "failed to remove \the [obj] from \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("fails to remove anything from [target]'s [affected.name]", "failed to remove \the [obj] from \the [affected.name]")
|
||||
return
|
||||
|
||||
|
||||
user.visible_message(span_notice("[user] takes something out of the incision on [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_notice("You take [obj] out of the incision on [target]'s [affected.name]s with \the [tool]!") )
|
||||
user.balloon_alert_visible("Takes something out of the incision on [target]'s [affected.name]", "[obj] taken out of the incision on [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("Takes something out of the incision on [target]'s [affected.name]", "[obj] taken out of the incision on [affected.name]")
|
||||
affected.implants -= obj
|
||||
if(!target.has_embedded_objects())
|
||||
target.clear_alert("embeddedobject")
|
||||
@@ -272,7 +272,7 @@
|
||||
else
|
||||
user.visible_message(span_notice("[user] could not find anything inside [target]'s [affected.name], and pulls \the [tool] out."), \
|
||||
span_notice("You could not find anything inside [target]'s [affected.name].") )
|
||||
user.balloon_alert_visible("could not find anything inside", "nothing found inside") // CHOMPEdit
|
||||
user.balloon_alert_visible("could not find anything inside", "nothing found inside")
|
||||
|
||||
/datum/surgery_step/cavity/implant_removal/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
..()
|
||||
|
||||
@@ -37,19 +37,19 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
if (affected)
|
||||
to_chat(user, span_warning("Something is in the way! You can't attach [E] here!"))
|
||||
user.balloon_alert(user, "something is in the way!") // CHOMPEdit
|
||||
user.balloon_alert(user, "something is in the way!")
|
||||
return 0
|
||||
if(!P)
|
||||
to_chat(user, span_warning("There's nothing to attach [E] to!"))
|
||||
user.balloon_alert(user, "there's nothing to attach [E] to!") // CHOMPEdit
|
||||
user.balloon_alert(user, "there's nothing to attach [E] to!")
|
||||
return 0
|
||||
else if((P.robotic >= ORGAN_ROBOT) && (E.robotic < ORGAN_ROBOT))
|
||||
to_chat(user, span_warning("Attaching [E] to [P] wouldn't work well."))
|
||||
user.balloon_alert(user, "attaching [E] to [P] wouldn't work well") // CHOMPEdit
|
||||
user.balloon_alert(user, "attaching [E] to [P] wouldn't work well")
|
||||
return 0
|
||||
else if(istype(E, /obj/item/organ/external/head) && E.robotic >= ORGAN_ROBOT && P.robotic < ORGAN_ROBOT)
|
||||
to_chat(user, span_warning("Attaching [E] to [P] might break [E]."))
|
||||
user.balloon_alert(user, "attaching [E] to [P] might break [E]") // CHOMPEdit
|
||||
user.balloon_alert(user, "attaching [E] to [P] might break [E]")
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
@@ -58,13 +58,13 @@
|
||||
var/obj/item/organ/external/E = tool
|
||||
user.visible_message(span_filter_notice("[user] starts attaching [E.name] to [target]'s [E.amputation_point]."), \
|
||||
span_filter_notice("You start attaching [E.name] to [target]'s [E.amputation_point]."))
|
||||
user.balloon_alert_visible("starts attaching [E.name] to [target]'s [E.amputation_point]", "attaching [E.name] to [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts attaching [E.name] to [target]'s [E.amputation_point]", "attaching [E.name] to [E.amputation_point]")
|
||||
|
||||
/datum/surgery_step/limb/attach/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/E = tool
|
||||
user.visible_message(span_notice("[user] has attached [target]'s [E.name] to the [E.amputation_point]."), \
|
||||
span_notice("You have attached [target]'s [E.name] to the [E.amputation_point]."))
|
||||
user.balloon_alert_visible("attaches [target]'s [E.name] to \the [E.amputation_point]", "attached \the [E.name] to the [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("attaches [target]'s [E.name] to \the [E.amputation_point]", "attached \the [E.name] to the [E.amputation_point]")
|
||||
user.drop_from_inventory(E)
|
||||
E.replaced(target)
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
var/obj/item/organ/external/E = tool
|
||||
user.visible_message(span_warning(" [user]'s hand slips, damaging [target]'s [E.amputation_point]!"), \
|
||||
span_warning(" Your hand slips, damaging [target]'s [E.amputation_point]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [E.amputation_point]", "your hand slips, damaging [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [E.amputation_point]", "your hand slips, damaging [E.amputation_point]")
|
||||
target.apply_damage(10, BRUTE, null, sharp = TRUE)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -109,13 +109,13 @@
|
||||
var/obj/item/organ/external/E = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts connecting tendons and muscles in [target]'s [E.amputation_point] with [tool]."), \
|
||||
span_filter_notice("You start connecting tendons and muscle in [target]'s [E.amputation_point]."))
|
||||
user.balloon_alert_visible("starts connecting tendons and muscles in [target]'s [E.amputation_point]", "connecting tendons and muscle in \the [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts connecting tendons and muscles in [target]'s [E.amputation_point]", "connecting tendons and muscle in \the [E.amputation_point]")
|
||||
|
||||
/datum/surgery_step/limb/connect/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/E = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has connected tendons and muscles in [target]'s [E.amputation_point] with [tool]."), \
|
||||
span_notice("You have connected tendons and muscles in [target]'s [E.amputation_point] with [tool]."))
|
||||
user.balloon_alert_visible("connected tendons and muscles in [target]'s [E.amputation_point]", "connected tendons and muscles in \the [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("connected tendons and muscles in [target]'s [E.amputation_point]", "connected tendons and muscles in \the [E.amputation_point]")
|
||||
E.status &= ~ORGAN_CUT_AWAY
|
||||
target.update_icons_body()
|
||||
target.updatehealth()
|
||||
@@ -125,7 +125,7 @@
|
||||
var/obj/item/organ/external/E = tool
|
||||
user.visible_message(span_warning(" [user]'s hand slips, damaging [target]'s [E.amputation_point]!"), \
|
||||
span_warning(" Your hand slips, damaging [target]'s [E.amputation_point]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [E.amputation_point]", "your hand slips, damaging \the [E.amputation_point]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [E.amputation_point]", "your hand slips, damaging \the [E.amputation_point]")
|
||||
target.apply_damage(10, BRUTE, null, sharp = TRUE)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -150,13 +150,13 @@
|
||||
/datum/surgery_step/limb/mechanize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts attaching \the [tool] to [target]."), \
|
||||
span_filter_notice("You start attaching \the [tool] to [target]."))
|
||||
user.balloon_alert_visible("starts attaching \the [tool] to [target]", "attachng \the [tool]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts attaching \the [tool] to [target]", "attachng \the [tool]")
|
||||
|
||||
/datum/surgery_step/limb/mechanize/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/robot_parts/L = tool
|
||||
user.visible_message(span_notice("[user] has attached \the [tool] to [target]."), \
|
||||
span_notice("You have attached \the [tool] to [target]."))
|
||||
user.balloon_alert_visible("attaches \the [tool] to [target]", "attached \the [tool]") // CHOMPEdit
|
||||
user.balloon_alert_visible("attaches \the [tool] to [target]", "attached \the [tool]")
|
||||
|
||||
if(L.part)
|
||||
for(var/part_name in L.part)
|
||||
@@ -180,5 +180,5 @@
|
||||
/datum/surgery_step/limb/mechanize/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning(" [user]'s hand slips, damaging [target]'s flesh!"), \
|
||||
span_warning(" Your hand slips, damaging [target]'s flesh!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s flesh", "your hand slips, damaging the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s flesh", "your hand slips, damaging the flesh")
|
||||
target.apply_damage(10, BRUTE, null, sharp = TRUE)
|
||||
|
||||
@@ -40,20 +40,20 @@
|
||||
/datum/surgery_step/brainstem/mend_vessels/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to mend the blood vessels on [target]'s brainstem with \the [tool]."), \
|
||||
span_filter_notice("You start to mend the blood vessels on [target]'s brainstem with \the [tool]."))
|
||||
user.balloon_alert_visible("starts mending blood vessels on [target]'s brainstem", "mending blood vessels on the brainstem.") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts mending blood vessels on [target]'s brainstem", "mending blood vessels on the brainstem.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/mend_vessels/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has mended the blood vessels on [target]'s brainstem with \the [tool].") , \
|
||||
span_notice(" You have mended the blood vessels on [target]'s brainstem with \the [tool]."),)
|
||||
user.balloon_alert_visible("mended the blood vessels on [target]'s brainstem", "mended the blood vessels on the brainstem.") // CHOMPEdit
|
||||
user.balloon_alert_visible("mended the blood vessels on [target]'s brainstem", "mended the blood vessels on the brainstem.")
|
||||
target.op_stage.brainstem = 1
|
||||
|
||||
/datum/surgery_step/brainstem/mend_vessels/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing at [target]'s brainstem with \the [tool]!") , \
|
||||
span_danger("Your hand slips, tearing at [target]'s brainstem with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, tearing at [target]'s brainstem", "your hand slips, tearing at the brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing at [target]'s brainstem", "your hand slips, tearing at the brainstem")
|
||||
affected.createwound(PIERCE, 10)
|
||||
target.AdjustParalysis(10)
|
||||
|
||||
@@ -81,14 +81,14 @@
|
||||
/datum/surgery_step/brainstem/drill_vertebrae/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to drill around [target]'s brainstem with \the [tool]."), \
|
||||
span_filter_notice("You start to drill around [target]'s brainstem with \the [tool]."))
|
||||
user.balloon_alert_visible("starts drilling around [target]'s brainstem", "drilling around the brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts drilling around [target]'s brainstem", "drilling around the brainstem")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/drill_vertebrae/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has drilled around [target]'s brainstem with \the [tool].") , \
|
||||
span_notice(" You have drilled around [target]'s brainstem with \the [tool]."),)
|
||||
user.balloon_alert_visible("drilled around [target]'s brainstem", "drilled around the brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("drilled around [target]'s brainstem", "drilled around the brainstem")
|
||||
target.AdjustParalysis(10) //We're getting Invasive here. This only ticks down when the person is alive, so it's a good side-effect for this step. Rattling the braincase with a drill is not optimal.
|
||||
target.op_stage.brainstem = 2
|
||||
affected.fracture() //Does not apply damage, simply breaks it if it wasn't already. Doesn't stop a defib on its own.
|
||||
@@ -97,7 +97,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, shredding [target]'s brainstem with \the [tool]!") , \
|
||||
span_danger("Your hand slips, shredding [target]'s brainstem with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, shredding [target]'s brainstem", "your hand slips, shredding the brainstem.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, shredding [target]'s brainstem", "your hand slips, shredding the brainstem.")
|
||||
affected.createwound(PIERCE, 10)
|
||||
target.AdjustParalysis(15)
|
||||
spawn()
|
||||
@@ -126,13 +126,13 @@
|
||||
/datum/surgery_step/brainstem/clean_chips/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to pick around [target]'s brainstem for bone chips with \the [tool]."), \
|
||||
span_filter_notice("You start to pick around [target]'s brainstem for bone chips with \the [tool]."))
|
||||
user.balloon_alert_visible("starts to pick around [target]'s brainstem for bone chips.", "picking around the brainstem for bone chips.") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to pick around [target]'s brainstem for bone chips.", "picking around the brainstem for bone chips.")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/clean_chips/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has cleaned around [target]'s brainstem with \the [tool].") , \
|
||||
span_notice(" You have cleaned around [target]'s brainstem with \the [tool]."),)
|
||||
user.balloon_alert_visible("cleaned around [target]'s brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("cleaned around [target]'s brainstem")
|
||||
target.AdjustParalysis(10) //Still invasive.
|
||||
target.op_stage.brainstem = 3
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, gouging [target]'s brainstem with \the [tool]!") , \
|
||||
span_danger("Your hand slips, gouging [target]'s brainstem with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, gouging [target]'s brainstem", "your hand slips, gouging the brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, gouging [target]'s brainstem", "your hand slips, gouging the brainstem")
|
||||
affected.createwound(CUT, 5)
|
||||
target.AdjustParalysis(10)
|
||||
spawn()
|
||||
@@ -169,13 +169,13 @@
|
||||
/datum/surgery_step/brainstem/mend_cord/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to fuse [target]'s spinal cord with \the [tool]."), \
|
||||
span_filter_notice("You start to fuse [target]'s spinal cord with \the [tool]."))
|
||||
user.balloon_alert_visible("starts fusing [target]'s spinal cord", "fusing the spinal cord") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts fusing [target]'s spinal cord", "fusing the spinal cord")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/mend_cord/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has fused [target]'s spinal cord with \the [tool].") , \
|
||||
span_notice(" You have fused [target]'s spinal cord with \the [tool]."),)
|
||||
user.balloon_alert_visible("fused [target]'s spinal cord", "fused the spinal cord") // CHOMPEdit
|
||||
user.balloon_alert_visible("fused [target]'s spinal cord", "fused the spinal cord")
|
||||
target.op_stage.brainstem = 4
|
||||
target.AdjustParalysis(5)
|
||||
target.add_modifier(/datum/modifier/franken_sickness, 20 MINUTES)
|
||||
@@ -184,7 +184,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing at [target]'s spinal cord with \the [tool]!") , \
|
||||
span_danger("Your hand slips, tearing at [target]'s spinal cord with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, tearing [target]'s spinal cord", "your hand slips, tearing at the spinal cord") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing [target]'s spinal cord", "your hand slips, tearing at the spinal cord")
|
||||
affected.createwound(PIERCE, 5)
|
||||
target.AdjustParalysis(20)
|
||||
spawn()
|
||||
@@ -212,13 +212,13 @@
|
||||
/datum/surgery_step/brainstem/mend_vertebrae/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to mend [target]'s opened vertebrae with \the [tool]."), \
|
||||
span_filter_notice("You start to mend [target]'s opened vertebrae with \the [tool]."))
|
||||
user.balloon_alert_visible("starts mending [target]'s opened vertebrae", "mending opened vertebrae") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts mending [target]'s opened vertebrae", "mending opened vertebrae")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/mend_vertebrae/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has mended [target]'s vertebrae with \the [tool].") , \
|
||||
span_notice(" You have mended [target]'s vertebrae with \the [tool]."),)
|
||||
user.balloon_alert_visible("mended [target]'s vertebrae", "mended the vertebrae") // CHOMPEdit
|
||||
user.balloon_alert_visible("mended [target]'s vertebrae", "mended the vertebrae")
|
||||
target.can_defib = 1
|
||||
target.op_stage.brainstem = 5
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, tearing at [target]'s spinal cord with \the [tool]!") , \
|
||||
span_danger("Your hand slips, tearing at [target]'s spinal cord with \the [tool]!") )
|
||||
user.balloon_alert_visible("slips, tearing at [target]'s spinal cord", "your hand slips, tearing at the spinal cord") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, tearing at [target]'s spinal cord", "your hand slips, tearing at the spinal cord")
|
||||
affected.createwound(PIERCE, 5)
|
||||
target.AdjustParalysis(15)
|
||||
spawn()
|
||||
@@ -255,13 +255,13 @@
|
||||
/datum/surgery_step/brainstem/realign_tissue/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] starts to realign the tissues in [target]'s skull with \the [tool]."), \
|
||||
span_filter_notice("You start to realign the tissues in [target]'s skull with \the [tool]."))
|
||||
user.balloon_alert_visible("starts to realign the tissues in [target]'s skull", "realigning the tissues in the skull") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to realign the tissues in [target]'s skull", "realigning the tissues in the skull")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/brainstem/realign_tissue/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has realigned the tissues in [target]'s skull back into place with \the [tool].") , \
|
||||
span_notice(" You have realigned the tissues in [target]'s skull back into place with \the [tool]."),)
|
||||
user.balloon_alert_visible("realigned the tissues in [target]'s skull back in place", "realigned the tissues in the skull back into place") // CHOMPEdit
|
||||
user.balloon_alert_visible("realigned the tissues in [target]'s skull back in place", "realigned the tissues in the skull back into place")
|
||||
target.AdjustParalysis(5) //I n v a s i v e
|
||||
target.op_stage.brainstem = 0 //The cycle begins anew.
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, gouging [target]'s brainstem with \the [tool]!") , \
|
||||
span_danger("Your hand slips, gouging [target]'s brainstem with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, gounging at [target]'s brainstem", "your hand slips, gouging at the brainstem") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, gounging at [target]'s brainstem", "your hand slips, gouging at the brainstem")
|
||||
affected.createwound(CUT, 5)
|
||||
target.AdjustParalysis(30)
|
||||
spawn()
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/datum/surgery_step/generic/ripper/tear_vessel/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message("[user] starts ripping into [target] with \the [tool].", \
|
||||
"You start ripping into [target] with \the [tool].")
|
||||
user.balloon_alert_visible("starts ripping into [target]", "ripping into [target]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts ripping into [target]", "ripping into [target]")
|
||||
target.custom_pain("[user] is ripping into your [target.op_stage.current_organ]!", 100)
|
||||
..()
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has ripped [target]'s [affected] \the [tool], blood and viscera spraying everywhere!"), \
|
||||
span_notice("You have ripped [target]'s [target.op_stage.current_organ] out with \the [tool], spraying blood all through the room!"))
|
||||
user.balloon_alert_visible("rips into [target]'s [affected], blood and viscera everywhere!", "ripped into [target]'s [affected], blood and viscera everywhere!") // CHOMPEdit
|
||||
user.balloon_alert_visible("rips into [target]'s [affected], blood and viscera everywhere!", "ripped into [target]'s [affected], blood and viscera everywhere!")
|
||||
var/datum/wound/internal_bleeding/I = new (30) //splurt. New severed artery.
|
||||
affected.wounds += I
|
||||
affected.owner.custom_pain("You feel something rip in your [affected.name]!", 1)
|
||||
@@ -56,7 +56,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s hand slips, damaging [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, damaging [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging \the [affected.name]")
|
||||
affected.createwound(BRUISE, 20) //Only bruised...Sad.
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message("[user] starts violently shifting \the [tool] in [target]'s [affected.name]!", \
|
||||
"You start violently moving the [tool] in [target]'s [affected.name]!")
|
||||
user.balloon_alert_visible("starts violently shifting \the [tool] in [target]'s [affected.name]!", "violently moving \the [tool] in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts violently shifting \the [tool] in [target]'s [affected.name]!", "violently moving \the [tool] in \the [affected.name]")
|
||||
target.custom_pain("[user] is ripping into your [target.op_stage.current_organ]!", 100)
|
||||
..()
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
if(!(I.robotic >= ORGAN_ROBOT))
|
||||
user.visible_message(span_filter_notice("[user] starts treating damage to [target]'s [I.name] with [tool_name]."), \
|
||||
span_filter_notice("You start treating damage to [target]'s [I.name] with [tool_name].") )
|
||||
user.balloon_alert_visible("starts treating damage to [target]'s [I.name]", "treating damage on \the [I.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts treating damage to [target]'s [I.name]", "treating damage on \the [I.name]")
|
||||
|
||||
target.custom_pain("The pain in your [affected.name] is living hell!", 100)
|
||||
..()
|
||||
@@ -81,10 +81,10 @@
|
||||
if(!(I.robotic >= ORGAN_ROBOT))
|
||||
user.visible_message(span_notice("[user] treats damage to [target]'s [I.name] with [tool_name]."), \
|
||||
span_notice("You treat damage to [target]'s [I.name] with [tool_name].") )
|
||||
user.balloon_alert_visible("starts treating damage to [target]'s [I.name]", "treating damage to \the [I.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts treating damage to [target]'s [I.name]", "treating damage to \the [I.name]")
|
||||
if(I.organ_tag == O_BRAIN && I.status == ORGAN_DEAD && target.can_defib == 0) //Let people know they still got more work to get the brain back into working order.
|
||||
to_chat(user, span_warning("You fix their [I] but the neurological structure is still heavily damaged and in need of repair."))
|
||||
user.balloon_alert(user, "fixed \the [I], neurological structure still in neeed of repair.") // CHOMPEdit
|
||||
user.balloon_alert(user, "fixed \the [I], neurological structure still in neeed of repair.")
|
||||
I.damage = 0
|
||||
I.status = 0
|
||||
if(I.organ_tag == O_EYES)
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
user.visible_message(span_warning("[user]'s hand slips, getting mess and tearing the inside of [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, getting mess and tearing the inside of [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, gettng mess and tearing the inside of [target]'s [affected.name]", "your hand slips, getting mess and tearng the [affected.name]'s insides") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, gettng mess and tearing the inside of [target]'s [affected.name]", "your hand slips, getting mess and tearng the [affected.name]'s insides")
|
||||
var/dam_amt = 2
|
||||
|
||||
if (istype(tool, /obj/item/stack/medical/advanced/bruise_pack))
|
||||
@@ -154,7 +154,7 @@
|
||||
if(I.robotic >= ORGAN_ROBOT)
|
||||
user.visible_message("[user] starts mending the damage to [target]'s [I.name]'s mechanisms.", \
|
||||
"You start mending the damage to [target]'s [I.name]'s mechanisms." )
|
||||
user.balloon_alert_visible("mends damage to [target]'s [I.name]'s mechanisms.", "mending damage to [I.name]'s mechanisms") // CHOMPEdit
|
||||
user.balloon_alert_visible("mends damage to [target]'s [I.name]'s mechanisms.", "mending damage to [I.name]'s mechanisms")
|
||||
|
||||
target.custom_pain("The pain in your [affected.name] is living hell!",1)
|
||||
..()
|
||||
@@ -169,7 +169,7 @@
|
||||
if(I.robotic >= ORGAN_ROBOT)
|
||||
user.visible_message(span_notice("[user] repairs [target]'s [I.name] with [tool]."), \
|
||||
span_notice("You repair [target]'s [I.name] with [tool].") )
|
||||
user.balloon_alert_visible("repairs [target]'s [I.name]", "repaired \the [I.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("repairs [target]'s [I.name]", "repaired \the [I.name]")
|
||||
I.damage = 0
|
||||
if(I.organ_tag == O_EYES)
|
||||
target.sdisabilities &= ~BLIND
|
||||
@@ -181,7 +181,7 @@
|
||||
|
||||
user.visible_message(span_warning("[user]'s hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, gumming up the mechanisms inside of [target]'s [affected.name]", "your hand slips, gumming up the mechanisms inside \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, gumming up the mechanisms inside of [target]'s [affected.name]", "your hand slips, gumming up the mechanisms inside \the [affected.name]")
|
||||
|
||||
target.adjustBruteLoss(5)
|
||||
|
||||
@@ -242,14 +242,14 @@
|
||||
|
||||
user.visible_message(span_filter_notice("[user] starts to separate [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_filter_notice("You start to separate [target]'s [target.op_stage.current_organ] with \the [tool].") )
|
||||
user.balloon_alert_visible("starts to separate [target]'s [target.op_stage.current_organ]", "separating \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to separate [target]'s [target.op_stage.current_organ]", "separating \the [target.op_stage.current_organ]")
|
||||
target.custom_pain("The pain in your [affected.name] is living hell!", 100)
|
||||
..()
|
||||
|
||||
/datum/surgery_step/internal/detatch_organ/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has separated [target]'s [target.op_stage.current_organ] with \the [tool].") , \
|
||||
span_notice("You have separated [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("separates [target]'s [target.op_stage.current_organ]", "separated \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("separates [target]'s [target.op_stage.current_organ]", "separated \the [target.op_stage.current_organ]")
|
||||
|
||||
var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ]
|
||||
if(I && istype(I))
|
||||
@@ -259,7 +259,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, slicing an artery inside [target]'s [affected.name]", "your hand slips, slicing anrtery inside [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, slicing an artery inside [target]'s [affected.name]", "your hand slips, slicing anrtery inside [affected.name]")
|
||||
affected.createwound(CUT, rand(30,50), 1)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -310,13 +310,13 @@
|
||||
to_chat(user, span_notice("You decide against preparing any organs for removal."))
|
||||
user.visible_message(span_filter_notice("[user] starts pulling \the [tool] from [target]'s [affected]."), \
|
||||
span_filter_notice("You start pulling \the [tool] from [target]'s [affected]."))
|
||||
user.balloon_alert_visible("starts pulling \the [tool] from [target]'s [affected]", "pulling \the [tool] from \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts pulling \the [tool] from [target]'s [affected]", "pulling \the [tool] from \the [affected]")
|
||||
|
||||
target.op_stage.current_organ = organ_to_remove
|
||||
|
||||
user.visible_message(span_filter_notice("[user] starts removing [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_filter_notice("You start removing [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts removing [target]'s [target.op_stage.current_organ]", "removing \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts removing [target]'s [target.op_stage.current_organ]", "removing \the [target.op_stage.current_organ]")
|
||||
target.custom_pain("Someone's ripping out your [target.op_stage.current_organ]!", 100)
|
||||
..()
|
||||
|
||||
@@ -325,13 +325,13 @@
|
||||
if(!target.op_stage.current_organ) //They chose to remove their tool instead.
|
||||
user.visible_message(span_notice("[user] has removed \the [tool] from [target]'s [affected]."), \
|
||||
span_notice("You have removed \the [tool] from [target]'s [affected]."))
|
||||
user.balloon_alert_visible("removes \the [tool] from [target]'s [affected]", "removed \the [tool] from \the [affected]") // CHOMPEdit
|
||||
user.balloon_alert_visible("removes \the [tool] from [target]'s [affected]", "removed \the [tool] from \the [affected]")
|
||||
|
||||
// Extract the organ!
|
||||
if(target.op_stage.current_organ)
|
||||
user.visible_message(span_notice("[user] has removed [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_notice("You have removed [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("removes [target]'s [target.op_stage.current_organ]", "removed \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("removes [target]'s [target.op_stage.current_organ]", "removed \the [target.op_stage.current_organ]")
|
||||
var/obj/item/organ/O = target.internal_organs_by_name[target.op_stage.current_organ]
|
||||
if(O && istype(O))
|
||||
O.removed(user)
|
||||
@@ -341,7 +341,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s hand slips, damaging [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, damaging [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging [target]'s [affected.name]", "your hand slips, damaging \the [affected.name]")
|
||||
affected.createwound(BRUISE, 20)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -372,7 +372,7 @@
|
||||
|
||||
if((affected.robotic >= ORGAN_ROBOT) && !(O.robotic >= ORGAN_ROBOT))
|
||||
to_chat(user, span_danger("You cannot install a naked organ into a robotic body."))
|
||||
user.balloon_alert(user, "you cannot install a naked organ into a robotic body.") // CHOMPEdit
|
||||
user.balloon_alert(user, "you cannot install a naked organ into a robotic body.")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!target.species)
|
||||
@@ -392,7 +392,7 @@
|
||||
organ_missing = 1
|
||||
else
|
||||
to_chat(user, span_warning("\The [target] already has [o_a][O.organ_tag]."))
|
||||
user.balloon_alert(user, "there is a [o_a][O.organ_tag] already!") // CHOMPEdit
|
||||
user.balloon_alert(user, "there is a [o_a][O.organ_tag] already!")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
// CHOMPadd begin - Malignant organs
|
||||
@@ -412,7 +412,7 @@
|
||||
|
||||
else
|
||||
to_chat(user, span_warning("\The [O.organ_tag] [o_do] normally go in \the [affected.name]."))
|
||||
user.balloon_alert(user, "\the [O.organ_tag] [o_do] normally go in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert(user, "\the [O.organ_tag] [o_do] normally go in \the [affected.name]")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
return ..() && organ_missing && organ_compatible
|
||||
@@ -421,7 +421,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts transplanting \the [tool] into [target]'s [affected.name]."), \
|
||||
span_filter_notice("You start transplanting \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("strats transplanting \the [tool] into [target]'s [affected.name]", "transplanting \the [tool] into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("strats transplanting \the [tool] into [target]'s [affected.name]", "transplanting \the [tool] into \the [affected.name]")
|
||||
target.custom_pain("Someone's rooting around in your [affected.name]!", 100)
|
||||
..()
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has transplanted \the [tool] into [target]'s [affected.name]."), \
|
||||
span_notice("You have transplanted \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("transplants \the [tool] into [target]'s [affected.name]", "transplanted \the [tool] into [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("transplants \the [tool] into [target]'s [affected.name]", "transplanted \the [tool] into [affected.name]")
|
||||
var/obj/item/organ/O = tool
|
||||
if(istype(O))
|
||||
user.remove_from_mob(O)
|
||||
@@ -438,7 +438,7 @@
|
||||
/datum/surgery_step/internal/replace_organ/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning("[user]'s hand slips, damaging \the [tool]!"), \
|
||||
span_warning("Your hand slips, damaging \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging \the [tool]", "your hand slips, damaging \the [tool]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging \the [tool]", "your hand slips, damaging \the [tool]")
|
||||
var/obj/item/organ/I = tool
|
||||
if(istype(I))
|
||||
I.take_damage(rand(3,5),0)
|
||||
@@ -482,14 +482,14 @@
|
||||
/datum/surgery_step/internal/attach_organ/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_filter_notice("[user] begins reattaching [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_filter_notice("You start reattaching [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins reattaching [target]'s [target.op_stage.current_organ]", "reattaching [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins reattaching [target]'s [target.op_stage.current_organ]", "reattaching [target.op_stage.current_organ]")
|
||||
target.custom_pain("Someone's digging needles into your [target.op_stage.current_organ]!", 100)
|
||||
..()
|
||||
|
||||
/datum/surgery_step/internal/attach_organ/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has reattached [target]'s [target.op_stage.current_organ] with \the [tool].") , \
|
||||
span_notice("You have reattached [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("reattached [target]'s [target.op_stage.current_organ]", "reattached [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("reattached [target]'s [target.op_stage.current_organ]", "reattached [target.op_stage.current_organ]")
|
||||
|
||||
var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ]
|
||||
if(I && istype(I))
|
||||
@@ -499,5 +499,5 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s hand slips, damaging the flesh in [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, damaging the flesh in [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, damaging the flesh in [target]'s [affected.name]", "your hand slips, damaging the flesh in [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging the flesh in [target]'s [affected.name]", "your hand slips, damaging the flesh in [affected.name]")
|
||||
affected.createwound(BRUISE, 20)
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts patching the damaged vein in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You start patching the damaged vein in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts patching the damaged ven in [target]'s [affected.name]", "patching the damaged vein in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts patching the damaged ven in [target]'s [affected.name]", "patching the damaged vein in \the [affected.name]")
|
||||
target.custom_pain("The pain in [affected.name] is unbearable!", 100)
|
||||
..()
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has patched the damaged vein in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have patched the damaged vein in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("patches the damaged vein in [target]'s [affected.name]", "patched the damaged vein in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("patches the damaged vein in [target]'s [affected.name]", "patched the damaged vein in \the [affected.name]")
|
||||
|
||||
for(var/datum/wound/W in affected.wounds) if(W.internal)
|
||||
affected.wounds -= W
|
||||
@@ -58,7 +58,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!") , \
|
||||
span_danger("Your hand slips, smearing [tool] in the incision in [target]'s [affected.name]!"))
|
||||
user.balloon_alert_visible("slips, smearing [tool] in the incision in [target]'s [affected.name]", "your hand slips, smearing [tool] in the incisiom in [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, smearing [tool] in the incision in [target]'s [affected.name]", "your hand slips, smearing [tool] in the incisiom in [affected.name]")
|
||||
affected.take_damage(5, 0)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -96,7 +96,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts cutting away necrotic tissue in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You start cutting away necrotic tissue in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts cutting away necrotic tissue in [target]'s [affected.name]", "cutting away necrotic issue in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts cutting away necrotic tissue in [target]'s [affected.name]", "cutting away necrotic issue in \the [affected.name]")
|
||||
target.custom_pain("The pain in [affected.name] is unbearable!", 100)
|
||||
..()
|
||||
|
||||
@@ -104,14 +104,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has cut away necrotic tissue in [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have cut away necrotic tissue in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("cuts away necrotic tissue in [target]'s [affected.name]", "cut away necrotic tissue in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("cuts away necrotic tissue in [target]'s [affected.name]", "cut away necrotic tissue in \the [affected.name]")
|
||||
affected.open = 3
|
||||
|
||||
/datum/surgery_step/fix_dead_tissue/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_danger("Your hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, slicing an artery inside [target]'s [affected.name]", "your hand slips, slicing an artery inside \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, slicing an artery inside [target]'s [affected.name]", "your hand slips, slicing an artery inside \the [affected.name]")
|
||||
affected.createwound(CUT, 20, 1)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -157,7 +157,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts applying medication to the affected tissue in [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You start applying medication to the affected tissue in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts applying medication to the affected tissue in [target]'s [affected.name]", "applying medication to the affected tissue in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts applying medication to the affected tissue in [target]'s [affected.name]", "applying medication to the affected tissue in \the [affected.name]")
|
||||
target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50)
|
||||
..()
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
|
||||
user.visible_message(span_notice("[user] applies [trans] units of the solution to affected tissue in [target]'s [affected.name]."), \
|
||||
span_notice("You apply [trans] units of the solution to affected tissue in [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("applies [trans] units of the solution to affected tissue in [target]'s [affected.name]", "applied [trans] units of the solution to afected tissue in [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("applies [trans] units of the solution to affected tissue in [target]'s [affected.name]", "applied [trans] units of the solution to afected tissue in [affected.name]")
|
||||
|
||||
/datum/surgery_step/treat_necrosis/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
@@ -191,7 +191,7 @@
|
||||
user.visible_message(span_danger("[user]'s hand slips, applying [trans] units of the solution to the wrong place in [target]'s [affected.name] with the [tool]!") , \
|
||||
span_danger("Your hand slips, applying [trans] units of the solution to the wrong place in [target]'s [affected.name] with the [tool]!"))
|
||||
user.balloon_alert_visible("slips, applying [trans] units of the solution to the wrong place in [target]'s [affected.name]",
|
||||
"your hand slips, applying [trans] units of the solution to the wrong place in \the [affected.name]") // CHOMPEdit
|
||||
"your hand slips, applying [trans] units of the solution to the wrong place in \the [affected.name]")
|
||||
|
||||
//no damage or anything, just wastes medicine
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
return
|
||||
user.visible_message(span_filter_notice("[user] starts cutting through the support systems of \the [rig] on [target] with \the [tool].") , \
|
||||
span_filter_notice("You start cutting through the support systems of \the [rig] on [target] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts cutting through the support systems of \the [rig] on [target]", "cutting through the support systems of \the [rig] on [target]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts cutting through the support systems of \the [rig] on [target]", "cutting through the support systems of \the [rig] on [target]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/hardsuit/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
@@ -243,12 +243,12 @@
|
||||
rig.cut_suit()
|
||||
user.visible_message(span_notice("[user] has cut through the support systems of \the [rig] on [target] with \the [tool]."), \
|
||||
span_notice("You have cut through the support systems of \the [rig] on [target] with \the [tool]."))
|
||||
user.balloon_alert_visible("cuts through the support systems of \the [rig] on [target]", "cut through the support systems of \the [rig]") // CHOMPEdit
|
||||
user.balloon_alert_visible("cuts through the support systems of \the [rig] on [target]", "cut through the support systems of \the [rig]")
|
||||
|
||||
/datum/surgery_step/hardsuit/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_danger("[user]'s [tool] can't quite seem to get through the metal..."), \
|
||||
span_danger("\The [tool] can't quite seem to get through the metal. It's weakening, though - try again."))
|
||||
user.balloon_alert_visible("[tool] can't quite seem to get through the metal", "\the [tool] can't quite seem to get through the metal.") // CHOMPEdit
|
||||
user.balloon_alert_visible("[tool] can't quite seem to get through the metal", "\the [tool] can't quite seem to get through the metal.")
|
||||
|
||||
///////////////////////////////////////////
|
||||
// De-Husking Surgery //
|
||||
@@ -287,13 +287,13 @@
|
||||
/datum/surgery_step/dehusk/structinitial/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] begins to create a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool]."), \
|
||||
span_notice("You begin to create a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool]."))
|
||||
user.balloon_alert_visible("begins to create a fleshy mesh over gaps in [target]'s flesh.", "creating a flesh mesh over gaps") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to create a fleshy mesh over gaps in [target]'s flesh.", "creating a flesh mesh over gaps")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/dehusk/structinitial/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] creates a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool]."), \
|
||||
span_notice("You create a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool]."))
|
||||
user.balloon_alert_visible("creates a fleshy mesh over gaps in [target]'s flesh", "created a fleshy mesh over gaps in the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("creates a fleshy mesh over gaps in [target]'s flesh", "created a fleshy mesh over gaps in the flesh")
|
||||
target.op_stage.dehusk = 1
|
||||
..()
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, and the mesh falls, with \the [tool] scraping [target]'s body."), \
|
||||
span_danger("Your hand slips, and the mesh falls, with \the [tool] scraping [target]'s body."))
|
||||
user.balloon_alert_visible("slips, the mesh falls and scrapes [target]'s body", "your hand slips, the mesh falls and scrapes the body") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, the mesh falls and scrapes [target]'s body", "your hand slips, the mesh falls and scrapes the body")
|
||||
affected.createwound(CUT, 15)
|
||||
affected.createwound(BRUISE, 10)
|
||||
..()
|
||||
@@ -322,13 +322,13 @@
|
||||
/datum/surgery_step/dehusk/relocateflesh/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] begins to relocate some of [target]'s flesh with \the [tool], using it to fill in gaps."), \
|
||||
span_notice("You begin to relocate some of [target]'s flesh with \the [tool], using it to fill in gaps."))
|
||||
user.balloon_alert_visible("begins relocating [target]'s flesh", "relocating the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins relocating [target]'s flesh", "relocating the flesh")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/dehusk/relocateflesh/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] relocates some of [target]'s flesh with \the [tool], using it to fill in gaps."), \
|
||||
span_notice("You relocate some of [target]'s flesh with \the [tool], using it to fill in gaps."))
|
||||
user.balloon_alert_visible("relocates [target]'s flesh", "relocated the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("relocates [target]'s flesh", "relocated the flesh")
|
||||
target.op_stage.dehusk = 2
|
||||
..()
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
user.visible_message(span_danger("[user] accidentally rips a massive chunk out of [target]'s flesh with \the [tool], causing massive damage."), \
|
||||
span_danger("You accidentally rip a massive chunk out of [target]'s flesh with \the [tool], causing massive damage."))
|
||||
user.balloon_alert_visible("accidentally rips a massive chunk out of [target]'s flesh, causing massive damage",
|
||||
"you accidentally rip a massive chunk out of the flesh, causing massive damage") // CHOMPEdit
|
||||
"you accidentally rip a massive chunk out of the flesh, causing massive damage")
|
||||
affected.createwound(CUT, 25)
|
||||
affected.createwound(BRUISE, 10)
|
||||
..()
|
||||
@@ -358,17 +358,17 @@
|
||||
if(istype(tool,/obj/item/surgical/bioregen))
|
||||
user.visible_message(span_notice("[user] begins to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool]."), \
|
||||
span_notice("You begin to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool]."))
|
||||
user.balloon_alert_visible("begins recreating blood vessels and filing gaps in [target]'s flesh", "recreating blood vessels and filling gaps in the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins recreating blood vessels and filing gaps in [target]'s flesh", "recreating blood vessels and filling gaps in the flesh")
|
||||
else if(istype(tool,/obj/item/surgical/FixOVein))
|
||||
user.visible_message(span_notice("[user] attempts to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool]."), \
|
||||
span_notice("You attempt to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool]."))
|
||||
user.balloon_alert_visible("attempts to recreate blood vessesl and fill the gaps in [target]'s flesh", "attempting to recreate blood vessels and fill gaps in the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("attempts to recreate blood vessesl and fill the gaps in [target]'s flesh", "attempting to recreate blood vessels and fill gaps in the flesh")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/dehusk/structfinish/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] finishes recreating the missing biological structures and filling in gaps in [target]'s flesh with \the [tool]."), \
|
||||
span_notice("You finish recreating the missing biological structures and filling in gaps in [target]'s flesh with \the [tool]."))
|
||||
user.balloon_alert_visible("recreates the missing biological structures and gaps in [target]'s flesh", "recreated the missing bological structures and gaps in the flesh") // CHOMPEdit
|
||||
user.balloon_alert_visible("recreates the missing biological structures and gaps in [target]'s flesh", "recreated the missing bological structures and gaps in the flesh")
|
||||
target.op_stage.dehusk = 0
|
||||
target.mutations.Remove(HUSK)
|
||||
target.status_flags &= ~DISFIGURED
|
||||
@@ -380,11 +380,11 @@
|
||||
if(istype(tool,/obj/item/surgical/bioregen))
|
||||
user.visible_message(span_danger("[user]'s hand slips, causing \the [tool] to scrape [target]'s body."), \
|
||||
span_danger("Your hand slips, causing \the [tool] to scrape [target]'s body."))
|
||||
user.balloon_alert_visible("slips, scraping [target]'s body", "you slip, scraping the body.") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, scraping [target]'s body", "you slip, scraping the body.")
|
||||
else if(istype(tool,/obj/item/surgical/FixOVein))
|
||||
user.visible_message(span_danger("[user] fails to finish the structure over the gaps in [target]'s flesh, doing more damage than good."), \
|
||||
span_danger("You fail to finish the structure over the gaps in [target]'s flesh, doing more damage than good."))
|
||||
user.balloon_alert_visible("fails to finish the structure in [target]'s flesh, doing more damage", "you fail to finish the structur, doing more damage") // CHOMPEdit
|
||||
user.balloon_alert_visible("fails to finish the structure in [target]'s flesh, doing more damage", "you fail to finish the structur, doing more damage")
|
||||
|
||||
affected.createwound(CUT, 15)
|
||||
affected.createwound(BRUISE, 10)
|
||||
@@ -403,13 +403,13 @@
|
||||
/datum/surgery_step/internal/detoxify/begin_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] begins to pull toxins from, and restore oxygen to [target]'s musculature and organs with \the [tool]."), \
|
||||
span_notice("You begin to pull toxins from, and restore oxygen to [target]'s musculature and organs with \the [tool]."))
|
||||
user.balloon_alert_visible("begins pulling from, and restoring oxygen to [target]'s organs", "pulling toxins from and restoring oxygen to the organs") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins pulling from, and restoring oxygen to [target]'s organs", "pulling toxins from and restoring oxygen to the organs")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/internal/detoxify/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] finishes pulling toxins from, and restoring oxygen to [target]'s musculature and organs with \the [tool]."), \
|
||||
span_notice("You finish pulling toxins from, and restoring oxygen to [target]'s musculature and organs with \the [tool]."))
|
||||
user.balloon_alert_visible("finishes pulling toxins and restoring oxygen to [target]'s organs", "pulled toxins from and restored oxygen to the organs") // CHOMPEdit
|
||||
user.balloon_alert_visible("finishes pulling toxins and restoring oxygen to [target]'s organs", "pulled toxins from and restored oxygen to the organs")
|
||||
if(target.toxloss>25)
|
||||
target.adjustToxLoss(-20)
|
||||
if(target.oxyloss>25)
|
||||
@@ -420,7 +420,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_danger("[user]'s hand slips, failing to finish the surgery, and damaging [target] with \the [tool]."), \
|
||||
span_danger("Your hand slips, failing to finish the surgery, and damaging [target] with \the [tool]."))
|
||||
user.balloon_alert_visible("slips, failing to finish the surgery and damaging [target]", "your hand slips, failing to finish the surgery and damaging [target]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, failing to finish the surgery and damaging [target]", "your hand slips, failing to finish the surgery and damaging [target]")
|
||||
affected.createwound(CUT, 15)
|
||||
affected.createwound(BRUISE, 10)
|
||||
..()
|
||||
|
||||
@@ -52,21 +52,21 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts to unscrew the maintenance hatch on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_filter_notice("You start to unscrew the maintenance hatch on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts to unscrew the maintenance hatch on [target]'s [affected.name]", "unscrewing the maintenance hatch on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to unscrew the maintenance hatch on [target]'s [affected.name]", "unscrewing the maintenance hatch on \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/unscrew_hatch/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has opened the maintenance hatch on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You have opened the maintenance hatch on [target]'s [affected.name] with \the [tool]."),)
|
||||
user.balloon_alert_visible("opens the maintenance hatch on [target]'s [affected.name]", "maintenance hatch opened on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("opens the maintenance hatch on [target]'s [affected.name]", "maintenance hatch opened on \the [affected.name]")
|
||||
affected.open = 1
|
||||
|
||||
/datum/surgery_step/robotics/unscrew_hatch/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s [tool.name] slips, failing to unscrew [target]'s [affected.name]."), \
|
||||
span_warning("Your [tool] slips, failing to unscrew [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("slips, failing to unscrew [target]'s [affected.name]", "your [tool] slips, failing to unscrew \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, failing to unscrew [target]'s [affected.name]", "your [tool] slips, failing to unscrew \the [affected.name]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Open Hatch Surgery
|
||||
@@ -128,21 +128,21 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts to pry open the maintenance hatch on [target]'s [affected.name] with \the [tool]."),
|
||||
span_filter_notice("You start to pry open the maintenance hatch on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("starts to pry open the maintenance hatch on [target]'s [affected.name]", "prying open the maintenance hatch on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to pry open the maintenance hatch on [target]'s [affected.name]", "prying open the maintenance hatch on \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/open_hatch/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] opens the maintenance hatch on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You open the maintenance hatch on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("opens the maintenance hatch on [target]'s [affected.name]", "maintenance hatch on \the [affected.name] open") // CHOMPEdit
|
||||
user.balloon_alert_visible("opens the maintenance hatch on [target]'s [affected.name]", "maintenance hatch on \the [affected.name] open")
|
||||
affected.open = 3
|
||||
|
||||
/datum/surgery_step/robotics/open_hatch/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s [tool.name] slips, failing to open the hatch on [target]'s [affected.name]."),
|
||||
span_warning("Your [tool] slips, failing to open the hatch on [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("slips, failing to open the hatch on [target]'s [affected.name]", "your [tool] slips, fialing to open the hatch on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, failing to open the hatch on [target]'s [affected.name]", "your [tool] slips, fialing to open the hatch on \the [affected.name]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Close Hatch Surgery
|
||||
@@ -169,14 +169,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] begins to close and secure the hatch on [target]'s [affected.name] with \the [tool].") , \
|
||||
span_filter_notice("You begin to close and secure the hatch on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins closing and securing the hatch on [target]'s [affected.name]", "closing and securing the hatch on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins closing and securing the hatch on [target]'s [affected.name]", "closing and securing the hatch on \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/close_hatch/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] closes and secures the hatch on [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You close and secure the hatch on [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("closes and secures the hatch on [target]'s [affected.name]", "closed and secured the hatch on \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("closes and secures the hatch on [target]'s [affected.name]", "closed and secured the hatch on \the [affected.name]")
|
||||
affected.open = 0
|
||||
affected.germ_level = 0
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s [tool.name] slips, failing to close the hatch on [target]'s [affected.name]."),
|
||||
span_warning("Your [tool.name] slips, failing to close the hatch on [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("[tool.name] slips, failing to close the htach on [target]'s [affected.name]", "[tool.name] slips, failing to close the htach on [target]'s [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("[tool.name] slips, failing to close the htach on [target]'s [affected.name]", "[tool.name] slips, failing to close the htach on [target]'s [affected.name]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Brute Repair Surgery
|
||||
@@ -217,14 +217,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] begins to patch damage to [target]'s [affected.name]'s support structure with \the [tool].") , \
|
||||
span_filter_notice("You begin to patch damage to [target]'s [affected.name]'s support structure with \the [tool]."))
|
||||
user.balloon_alert_visible("begins patching damage to [target]'s [affected.name]'s support structure", "beggining to patch damage to \the [affected.name] support structure") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins patching damage to [target]'s [affected.name]'s support structure", "beggining to patch damage to \the [affected.name] support structure")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/repair_brute/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] finishes patching damage to [target]'s [affected.name] with \the [tool]."), \
|
||||
span_notice("You finish patching damage to [target]'s [affected.name] with \the [tool]."))
|
||||
user.balloon_alert_visible("finishes patching damage to [target]'s [affected.name]", "patched samage to \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("finishes patching damage to [target]'s [affected.name]", "patched samage to \the [affected.name]")
|
||||
affected.heal_damage(rand(30,50),0,1,1)
|
||||
affected.disfigured = 0
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user]'s [tool.name] slips, damaging the internal structure of [target]'s [affected.name]."),
|
||||
span_warning("Your [tool.name] slips, damaging the internal structure of [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("slips, damaging the internal structure of [target]'s [affected.name]", "your [tool.name] slips, damaging the internal structure of \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, damaging the internal structure of [target]'s [affected.name]", "your [tool.name] slips, damaging the internal structure of \the [affected.name]")
|
||||
target.apply_damage(rand(5,10), BURN, affected)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -254,13 +254,13 @@
|
||||
if(istype(tool, /obj/item/stack/cable_coil))
|
||||
var/obj/item/stack/cable_coil/C = tool
|
||||
if(affected.burn_dam == 0)
|
||||
user.balloon_alert_visible("there are no burnt wires here!") // CHOMPEdit
|
||||
user.balloon_alert_visible("there are no burnt wires here!")
|
||||
to_chat(user, span_notice("There are no burnt wires here!"))
|
||||
return SURGERY_FAILURE
|
||||
else
|
||||
if(!C.can_use(5))
|
||||
to_chat(user, span_danger("You need at least five cable pieces to repair this part.")) //usage amount made more consistent with regular cable repair
|
||||
user.balloon_alert_visible("You need at least five cable pieces to repair this part.") // CHOMPEdit
|
||||
user.balloon_alert_visible("You need at least five cable pieces to repair this part.")
|
||||
return SURGERY_FAILURE
|
||||
else
|
||||
C.use(5)
|
||||
@@ -271,14 +271,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] begins to splice new cabling into [target]'s [affected.name].") , \
|
||||
span_filter_notice("You begin to splice new cabling into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("begins to splice new cabling into [target]'s [affected.name]", "splcing new cabling into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins to splice new cabling into [target]'s [affected.name]", "splcing new cabling into \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/repair_burn/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] finishes splicing cable into [target]'s [affected.name]."), \
|
||||
span_notice("You finishes splicing new cable into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("finishes splicing cable into [target]'s [affected.name]", "finished splicing new cable into [target]'s [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("finishes splicing cable into [target]'s [affected.name]", "finished splicing new cable into [target]'s [affected.name]")
|
||||
affected.heal_damage(0,rand(30,50),1,1)
|
||||
affected.disfigured = 0
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_warning("[user] causes a short circuit in [target]'s [affected.name]!"),
|
||||
span_warning("You cause a short circuit in [target]'s [affected.name]!"))
|
||||
user.balloon_alert_visible("causes a short circuit in [target]'s [affected.name]", "you cause a short circuit in \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("causes a short circuit in [target]'s [affected.name]", "you cause a short circuit in \the [affected.name]")
|
||||
target.apply_damage(rand(5,10), BURN, affected)
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
@@ -329,7 +329,7 @@
|
||||
if(I.robotic >= ORGAN_ROBOT)
|
||||
user.visible_message(span_filter_notice("[user] starts mending the damage to [target]'s [I.name]'s mechanisms."), \
|
||||
span_filter_notice("You start mending the damage to [target]'s [I.name]'s mechanisms.") )
|
||||
user.balloon_alert_visible("starts mending the damage to [target]'s [I.name]'s mechanisms.", "mending the damage to \the [I.name]'s mechanism") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts mending the damage to [target]'s [I.name]'s mechanisms.", "mending the damage to \the [I.name]'s mechanism")
|
||||
|
||||
target.custom_pain("The pain in your [affected.name] is living hell!",1)
|
||||
..()
|
||||
@@ -344,7 +344,7 @@
|
||||
if(I.robotic >= ORGAN_ROBOT)
|
||||
user.visible_message(span_notice("[user] repairs [target]'s [I.name] with [tool]."), \
|
||||
span_notice("You repair [target]'s [I.name] with [tool].") )
|
||||
user.balloon_alert_visible("repairs [target]'s [I.name]", "repaired \the [I.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("repairs [target]'s [I.name]", "repaired \the [I.name]")
|
||||
I.damage = 0
|
||||
if(I.organ_tag == O_EYES)
|
||||
target.sdisabilities &= ~BLIND
|
||||
@@ -356,7 +356,7 @@
|
||||
|
||||
user.visible_message(span_warning("[user]'s hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!"), \
|
||||
span_warning("Your hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!"))
|
||||
user.balloon_alert_visible("slips, gumming up the mechanisms inside [target]'s [affected.name]", "your hand slips, gumming up the mechanisms inside of \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, gumming up the mechanisms inside [target]'s [affected.name]", "your hand slips, gumming up the mechanisms inside of \the [affected.name]")
|
||||
|
||||
target.adjustToxLoss(5)
|
||||
affected.createwound(CUT, 5)
|
||||
@@ -412,13 +412,13 @@
|
||||
|
||||
user.visible_message(span_filter_notice("[user] starts to decouple [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_filter_notice("You start to decouple [target]'s [target.op_stage.current_organ] with \the [tool].") )
|
||||
user.balloon_alert_visible("starts to decouple [target]'s [target.op_stage.current_organ]", "decoupling \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts to decouple [target]'s [target.op_stage.current_organ]", "decoupling \the [target.op_stage.current_organ]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/detatch_organ_robotic/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has decoupled [target]'s [target.op_stage.current_organ] with \the [tool].") , \
|
||||
span_notice("You have decoupled [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("decoupled [target]'s [target.op_stage.current_organ]", "decouple \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("decoupled [target]'s [target.op_stage.current_organ]", "decouple \the [target.op_stage.current_organ]")
|
||||
|
||||
var/obj/item/organ/internal/I = target.internal_organs_by_name[target.op_stage.current_organ]
|
||||
if(I && istype(I))
|
||||
@@ -428,7 +428,7 @@
|
||||
/datum/surgery_step/robotics/detatch_organ_robotic/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning("[user]'s hand slips, disconnecting \the [tool]."), \
|
||||
span_warning("Your hand slips, disconnecting \the [tool]."))
|
||||
user.balloon_alert_visible("slips, disconnecting \the [tool]", "your hand slips, disconnecting \the [tool]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, disconnecting \the [tool]", "your hand slips, disconnecting \the [tool]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Robot Organ Attaching Surgery
|
||||
@@ -479,13 +479,13 @@
|
||||
|
||||
user.visible_message(span_filter_notice("[user] begins reattaching [target]'s [target.op_stage.current_organ] with \the [tool]."), \
|
||||
span_filter_notice("You start reattaching [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("begins reattaching [target]'s [target.op_stage.current_organ]", "reattaching \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("begins reattaching [target]'s [target.op_stage.current_organ]", "reattaching \the [target.op_stage.current_organ]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/attach_organ_robotic/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_notice("[user] has reattached [target]'s [target.op_stage.current_organ] with \the [tool].") , \
|
||||
span_notice("You have reattached [target]'s [target.op_stage.current_organ] with \the [tool]."))
|
||||
user.balloon_alert_visible("reattaches [target]'s [target.op_stage.current_organ]", "reattached \the [target.op_stage.current_organ]") // CHOMPEdit
|
||||
user.balloon_alert_visible("reattaches [target]'s [target.op_stage.current_organ]", "reattached \the [target.op_stage.current_organ]")
|
||||
|
||||
var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ]
|
||||
if(I && istype(I))
|
||||
@@ -495,7 +495,7 @@
|
||||
/datum/surgery_step/robotics/attach_organ_robotic/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning("[user]'s hand slips, disconnecting \the [tool]."), \
|
||||
span_warning("Your hand slips, disconnecting \the [tool]."))
|
||||
user.balloon_alert_visible("slips, disconnecting \the [tool]", "your hand slips, disonnectng \the [tool]") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips, disconnecting \the [tool]", "your hand slips, disonnectng \the [tool]")
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// MMI Insertion Surgery
|
||||
@@ -530,17 +530,17 @@
|
||||
|
||||
if(!(affected.robotic >= ORGAN_ROBOT))
|
||||
to_chat(user, span_danger("You cannot install a computer brain into a meat skull."))
|
||||
user.balloon_alert(user, "you cannot install a computer brain into a meat skull") // CHOMPEdit
|
||||
user.balloon_alert(user, "you cannot install a computer brain into a meat skull")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!target.should_have_organ(O_BRAIN))
|
||||
to_chat(user, span_danger("You're pretty sure [target.species.name_plural] don't normally have a brain."))
|
||||
user.balloon_alert(user, "you're pertty sure [target.species.name_plural] don't normall have a brain") // CHOMPEdit
|
||||
user.balloon_alert(user, "you're pertty sure [target.species.name_plural] don't normall have a brain")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!isnull(target.internal_organs[O_BRAIN]))
|
||||
to_chat(user, span_danger("Your subject already has a brain."))
|
||||
user.balloon_alert(user, "your subject already has a brain") // CHOMPEdit
|
||||
user.balloon_alert(user, "your subject already has a brain")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
return 1
|
||||
@@ -549,14 +549,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts installing \the [tool] into [target]'s [affected.name]."), \
|
||||
span_filter_notice("You start installing \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("starts installing \the [tool] into [target]'s [affected.name]", "installing \the [tool] into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts installing \the [tool] into [target]'s [affected.name]", "installing \the [tool] into \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/install_mmi/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has installed \the [tool] into [target]'s [affected.name]."), \
|
||||
span_notice("You have installed \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("installed \the [tool] into [target]'s [affected.name]", "installed \the [tool] into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("installed \the [tool] into [target]'s [affected.name]", "installed \the [tool] into \the [affected.name]")
|
||||
|
||||
var/obj/item/mmi/M = tool
|
||||
// VOREstation edit begin - Select the proper mmi holder subtype based on the brain inserted
|
||||
@@ -597,7 +597,7 @@
|
||||
/datum/surgery_step/robotics/install_mmi/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning("[user]'s hand slips."), \
|
||||
span_warning("Your hand slips."))
|
||||
user.balloon_alert_visible("slips", "your hand slips") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips", "your hand slips")
|
||||
|
||||
/*
|
||||
* Install a Diona Nymph into a Nymph Mech
|
||||
@@ -627,27 +627,27 @@
|
||||
|
||||
if(!N.held_mob.client || N.held_mob.stat >= DEAD)
|
||||
to_chat(user, span_danger("That nymph is not viable."))
|
||||
user.balloon_alert(user, "that nymph is not viable") // CHOMPEdit
|
||||
user.balloon_alert(user, "that nymph is not viable")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!(affected.robotic >= ORGAN_ROBOT))
|
||||
to_chat(user, span_danger("You cannot install a nymph into a meat puppet."))
|
||||
user.balloon_alert(user, "you cannot install a nymph into a meat puppet") // CHOMPEdit
|
||||
user.balloon_alert(user, "you cannot install a nymph into a meat puppet")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!(affected.model != "Skrellian Exoskeleton"))
|
||||
to_chat(user, span_danger("You're fairly certain a nymph can't pilot a normal robot."))
|
||||
user.balloon_alert(user, "you're fairly certain a nymph can't pilot a normal robot") // CHOMPEdit
|
||||
user.balloon_alert(user, "you're fairly certain a nymph can't pilot a normal robot")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!target.should_have_organ(O_BRAIN))
|
||||
to_chat(user, span_danger("You're pretty sure [target.species.name_plural] don't normally have a brain."))
|
||||
user.balloon_alert(user, "you're pretty sure [target.species.name_plural] don't normall have a brain") // CHOMPEdit
|
||||
user.balloon_alert(user, "you're pretty sure [target.species.name_plural] don't normall have a brain")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
if(!isnull(target.internal_organs[O_BRAIN]))
|
||||
to_chat(user, span_danger("Your subject already has a cephalon."))
|
||||
user.balloon_alert(user, "your subject already has a cephalon") // CHOMPEdit
|
||||
user.balloon_alert(user, "your subject already has a cephalon")
|
||||
return SURGERY_FAILURE
|
||||
|
||||
return 1
|
||||
@@ -656,14 +656,14 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_filter_notice("[user] starts setting \the [tool] into [target]'s [affected.name]."), \
|
||||
span_filter_notice("You start setting \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("starts setting \the [tool] into [target]'s [affected.name]", "setting \the into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("starts setting \the [tool] into [target]'s [affected.name]", "setting \the into \the [affected.name]")
|
||||
..()
|
||||
|
||||
/datum/surgery_step/robotics/install_nymph/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message(span_notice("[user] has installed \the [tool] into [target]'s [affected.name]."), \
|
||||
span_notice("You have installed \the [tool] into [target]'s [affected.name]."))
|
||||
user.balloon_alert_visible("installed \the [tool] into [target]'s [affected.name]", "installed \the [tool] into \the [affected.name]") // CHOMPEdit
|
||||
user.balloon_alert_visible("installed \the [tool] into [target]'s [affected.name]", "installed \the [tool] into \the [affected.name]")
|
||||
|
||||
var/obj/item/holder/diona/N = tool
|
||||
var/obj/item/organ/internal/brain/cephalon/cephalon = new(target, 1)
|
||||
@@ -699,4 +699,4 @@
|
||||
/datum/surgery_step/robotics/install_nymph/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message(span_warning("[user]'s hand slips."), \
|
||||
span_warning("Your hand slips."))
|
||||
user.balloon_alert_visible("slips", "your hand slips") // CHOMPEdit
|
||||
user.balloon_alert_visible("slips", "your hand slips")
|
||||
|
||||
Reference in New Issue
Block a user