mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00: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:
committed by
GitHub
parent
81bfbd1e01
commit
be0504b0de
@@ -18,3 +18,11 @@
|
||||
#define MAX_MESSAGE_CHUNKS 130
|
||||
|
||||
#define MAX_TGUI_INPUT (MAX_MESSAGE_CHUNKS * 1024)
|
||||
|
||||
#define MAPTEXT(text) {"<span class='maptext'>[##text]</span>"}
|
||||
|
||||
#define WXH_TO_HEIGHT(measurement, return_var) \
|
||||
do { \
|
||||
var/_measurement = measurement; \
|
||||
return_var = text2num(copytext(_measurement, findtextEx(_measurement, "x") + 1)); \
|
||||
} while(FALSE);
|
||||
|
||||
@@ -743,3 +743,6 @@
|
||||
|
||||
var/color = rgb(r, g, b)
|
||||
return color
|
||||
|
||||
/proc/remove_image_from_client(image/image, client/remove_from)
|
||||
remove_from?.images -= image
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
#define CHAT_MESSAGE_MOB 1
|
||||
#define CHAT_MESSAGE_OBJ 2
|
||||
#define WXH_TO_HEIGHT(x) text2num(copytext((x), findtextEx((x), "x") + 1)) // thanks lummox
|
||||
|
||||
#define CHAT_RUNE_EMOTE 0x1
|
||||
#define CHAT_RUNE_RADIO 0x2
|
||||
@@ -182,7 +181,8 @@ var/list/runechat_image_cache = list()
|
||||
var/complete_text = "<span class='center maptext [extra_classes != null ? extra_classes.Join(" ") : ""]' style='color: [tgt_color];'>[text]</span>"
|
||||
|
||||
var/msgwidth = extra_length ? CHAT_MESSAGE_EXT_WIDTH : CHAT_MESSAGE_WIDTH
|
||||
var/mheight = WXH_TO_HEIGHT(owned_by.MeasureText(complete_text, null, msgwidth))
|
||||
var/mheight
|
||||
WXH_TO_HEIGHT(owned_by.MeasureText(complete_text, null, msgwidth), mheight)
|
||||
|
||||
if(!VERB_SHOULD_YIELD)
|
||||
return finish_image_generation(msgwidth, mheight, target, owner, complete_text, lifespan)
|
||||
@@ -486,7 +486,6 @@ var/list/runechat_image_cache = list()
|
||||
|
||||
#undef CHAT_MESSAGE_MOB
|
||||
#undef CHAT_MESSAGE_OBJ
|
||||
#undef WXH_TO_HEIGHT
|
||||
|
||||
#undef CHAT_RUNE_EMOTE
|
||||
#undef CHAT_RUNE_RADIO
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
|
||||
/obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob)
|
||||
if (!istype(M))
|
||||
balloon_alert(user, "\the [src] cannot be applied to [M]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] cannot be applied to [M]!")
|
||||
return 1
|
||||
|
||||
if (!user.IsAdvancedToolUser())
|
||||
balloon_alert(user, "you don't have the dexterity to do this!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you don't have the dexterity to do this!")
|
||||
return 1
|
||||
|
||||
var/available = get_amount()
|
||||
if(!available)
|
||||
balloon_alert(user, "not enough [uses_charge ? "charge" : "items"] left to use that!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "not enough [uses_charge ? "charge" : "items"] left to use that!")
|
||||
return 1
|
||||
|
||||
if (ishuman(M))
|
||||
@@ -34,24 +34,24 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(!affecting)
|
||||
balloon_alert(user, "no body part there to work on!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "no body part there to work on!")
|
||||
return 1
|
||||
|
||||
if(affecting.organ_tag == BP_HEAD)
|
||||
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!")
|
||||
return 1
|
||||
else
|
||||
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!")
|
||||
return 1
|
||||
|
||||
if(affecting.robotic == ORGAN_ROBOT)
|
||||
balloon_alert(user, "this isn't useful at all on a robotic limb.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "this isn't useful at all on a robotic limb.")
|
||||
return 1
|
||||
|
||||
if(affecting.robotic >= ORGAN_LIFELIKE)
|
||||
balloon_alert(user, "you apply the [src], but it seems to have no effect...") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you apply the [src], but it seems to have no effect...")
|
||||
use(1)
|
||||
return 1
|
||||
|
||||
@@ -99,16 +99,16 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
balloon_alert(user, "the [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged())
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.balloon_alert_visible("\the [user] starts bandaging [M]'s [affecting.name].", \
|
||||
"bandaging [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"bandaging [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if(W.internal)
|
||||
@@ -118,32 +118,32 @@
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/3, exclusive = TRUE))
|
||||
balloon_alert(user, "stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
balloon_alert(user, "you run out of [src]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.balloon_alert_visible("\the [user] bandages \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"you bandage \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"you bandage \a [W.desc] on [M]'s [affecting.name]." )
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] places a bandage over \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"you place a bandage over \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"you place a bandage over \a [W.desc] on [M]'s [affecting.name]." )
|
||||
W.bandage()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used++
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
balloon_alert(user, "\the [src] is used up.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].")
|
||||
use(used)
|
||||
|
||||
/obj/item/stack/medical/bruise_pack
|
||||
@@ -168,16 +168,16 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
balloon_alert(user, "the [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged())
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.balloon_alert_visible("\the [user] starts treating [M]'s [affecting.name].", \
|
||||
"treating [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"treating [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if (W.internal)
|
||||
@@ -187,37 +187,37 @@
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
balloon_alert(user, "stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
balloon_alert(user, "you run out of [src]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.balloon_alert_visible("\the [user] bandages \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"bandaged \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"bandaged \a [W.desc] on [M]'s [affecting.name]." )
|
||||
//H.add_side_effect("Itch")
|
||||
else if (W.damage_type == BRUISE)
|
||||
user.balloon_alert_visible("\the [user] places a bruise patch over \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"placed bruise patch over \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"placed bruise patch over \a [W.desc] on [M]'s [affecting.name]." )
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] places a bandaid over \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"placed bandaid over \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"placed bandaid over \a [W.desc] on [M]'s [affecting.name]." )
|
||||
W.bandage()
|
||||
// W.disinfect() // VOREStation - Tech1 should not disinfect
|
||||
// W.disinfect() // Tech1 should not disinfect
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used++
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
balloon_alert(user, "\the [src] is used up.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].")
|
||||
use(used)
|
||||
|
||||
/obj/item/stack/medical/ointment
|
||||
@@ -242,23 +242,23 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
balloon_alert(user, "the [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_salved())
|
||||
balloon_alert(user, "the wounds on [M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the wounds on [M]'s [affecting.name] have already been salved.")
|
||||
return 1
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] starts salving wounds on [M]'s [affecting.name].", \
|
||||
"salving the wounds on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
"salving the wounds on [M]'s [affecting.name]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
balloon_alert(user, "stand still to salve wounds.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.")
|
||||
return 1
|
||||
user.balloon_alert_visible("[user] salved wounds on [M]'s [affecting.name].", \
|
||||
"salved wounds on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
"salved wounds on [M]'s [affecting.name]." )
|
||||
use(1)
|
||||
affecting.salve()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
@@ -274,7 +274,7 @@
|
||||
singular_name = "advanced trauma kit"
|
||||
desc = "An advanced trauma kit for severe injuries."
|
||||
icon_state = "traumakit"
|
||||
heal_brute = 7 //VOREStation Edit
|
||||
heal_brute = 7
|
||||
origin_tech = list(TECH_BIO = 1)
|
||||
apply_sounds = list('sound/effects/rip1.ogg','sound/effects/rip2.ogg','sound/effects/tape.ogg')
|
||||
|
||||
@@ -287,56 +287,56 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
balloon_alert(user, "the [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged() && affecting.is_disinfected())
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been treated.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been treated.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.balloon_alert_visible("\the [user] starts treating [M]'s [affecting.name].", \
|
||||
"treating [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
"treating [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if (W.internal)
|
||||
continue
|
||||
if (W.bandaged && W.disinfected)
|
||||
continue
|
||||
//if(used == amount) //VOREStation Edit
|
||||
// break //VOREStation Edit
|
||||
//if(used == amount)
|
||||
// break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
balloon_alert(user, "stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
if(affecting.is_bandaged() && affecting.is_disinfected()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
balloon_alert(user, "you run out of [src]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.balloon_alert_visible("\the [user] cleans \a [W.desc] on [M]'s [affecting.name] and seals the edges with bioglue.", \
|
||||
"cleaning and sealing \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"cleaning and sealing \a [W.desc] on [M]'s [affecting.name]." )
|
||||
else if (W.damage_type == BRUISE)
|
||||
user.balloon_alert_visible("\the [user] places a medical patch over \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"placed medical patch over \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"placed medical patch over \a [W.desc] on [M]'s [affecting.name]." )
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] smears some bioglue over \a [W.desc] on [M]'s [affecting.name].", \
|
||||
"smeared bioglue over \a [W.desc] on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"smeared bioglue over \a [W.desc] on [M]'s [affecting.name]." )
|
||||
W.bandage()
|
||||
W.disinfect()
|
||||
W.heal_damage(heal_brute)
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used = 1 //VOREStation Edit
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
used = 1
|
||||
update_icon()
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
balloon_alert(user, "\the [src] is used up.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "\the [src] is used up, but there are more wounds to treat on \the [affecting.name].")
|
||||
use(used)
|
||||
|
||||
/obj/item/stack/medical/advanced/ointment
|
||||
@@ -344,7 +344,7 @@
|
||||
singular_name = "advanced burn kit"
|
||||
desc = "An advanced treatment kit for severe burns."
|
||||
icon_state = "burnkit"
|
||||
heal_burn = 7 //VOREStation Edit
|
||||
heal_burn = 7
|
||||
origin_tech = list(TECH_BIO = 1)
|
||||
apply_sounds = list('sound/effects/ointment.ogg')
|
||||
|
||||
@@ -357,27 +357,27 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
balloon_alert(user, "the [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
|
||||
if(affecting.is_salved())
|
||||
balloon_alert(user, "[M]'s [affecting.name] has already been salved.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] has already been salved.")
|
||||
return 1
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] starts salving wounds on [M]'s [affecting.name].", \
|
||||
"salving the wounds on [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts
|
||||
"salving the wounds on [M]'s [affecting.name]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
balloon_alert(user, "stand still to salve wounds.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.")
|
||||
return 1
|
||||
user.balloon_alert_visible("[user] covers wounds on [M]'s [affecting.name] with regenerative membrane.", \
|
||||
"covered wounds on [M]'s [affecting.name] with regenerative membrane." ) // CHOMPEdit - Balloon Alerts
|
||||
"covered wounds on [M]'s [affecting.name] with regenerative membrane." )
|
||||
affecting.heal_damage(0,heal_burn)
|
||||
use(1)
|
||||
affecting.salve()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/medical/splint
|
||||
name = "medical splints"
|
||||
@@ -400,25 +400,25 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
var/limb = affecting.name
|
||||
if(!(affecting.organ_tag in splintable_organs))
|
||||
balloon_alert(user, "you can't use \the [src] to apply a splint there!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't use \the [src] to apply a splint there!")
|
||||
return
|
||||
if(affecting.splinted)
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
if (M != user)
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to [M]'s [limb].", "applying \the [src] to [M]'s [limb].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to [M]'s [limb].", "applying \the [src] to [M]'s [limb].", "You hear something being wrapped.")
|
||||
else
|
||||
if(( !user.hand && (affecting.organ_tag in list(BP_R_ARM, BP_R_HAND)) || \
|
||||
user.hand && (affecting.organ_tag in list(BP_L_ARM, BP_L_HAND)) ))
|
||||
balloon_alert(user, "you can't apply a splint to the arm you're using!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't apply a splint to the arm you're using!")
|
||||
return
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to their [limb].", "applying \the [src] to your [limb].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to their [limb].", "applying \the [src] to your [limb].", "You hear something being wrapped.")
|
||||
if(do_after(user, 50, M, exclusive = TASK_USER_EXCLUSIVE))
|
||||
if(affecting.splinted)
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
if(M == user && prob(75))
|
||||
user.balloon_alert_visible("\the [user] fumbles [src].", "fumbling [src].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("\the [user] fumbles [src].", "fumbling [src].", "You hear something being wrapped.")
|
||||
return
|
||||
if(ishuman(user))
|
||||
var/obj/item/stack/medical/splint/S = split(1)
|
||||
@@ -426,9 +426,9 @@
|
||||
if(affecting.apply_splint(S))
|
||||
S.forceMove(affecting)
|
||||
if (M != user)
|
||||
user.balloon_alert_visible("\the [user] finishes applying [src] to [M]'s [limb].", "finished applying \the [src] to [M]'s [limb].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("\the [user] finishes applying [src] to [M]'s [limb].", "finished applying \the [src] to [M]'s [limb].", "You hear something being wrapped.")
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] successfully applies [src] to their [limb].", "successfully applied \the [src] to your [limb].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("\the [user] successfully applies [src] to their [limb].", "successfully applied \the [src] to your [limb].", "You hear something being wrapped.")
|
||||
return
|
||||
S.dropInto(src.loc) //didn't get applied, so just drop it
|
||||
if(isrobot(user))
|
||||
@@ -436,10 +436,10 @@
|
||||
if(B)
|
||||
if(affecting.apply_splint(B))
|
||||
B.forceMove(affecting)
|
||||
user.balloon_alert_visible("\the [user] finishes applying [src] to [M]'s [limb].", "finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("\the [user] finishes applying [src] to [M]'s [limb].", "finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.")
|
||||
B.use(1)
|
||||
return
|
||||
user.balloon_alert_visible("\the [user] fails to apply [src].", "failed to apply [src].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts
|
||||
user.balloon_alert_visible("\the [user] fails to apply [src].", "failed to apply [src].", "You hear something being wrapped.")
|
||||
return
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "nanopaste"
|
||||
singular_name = "nanite swarm"
|
||||
desc = "A tube of paste containing swarms of repair nanites. Very effective in repairing robotic machinery."
|
||||
icon = 'icons/obj/stacks_vr.dmi' //VOREStation Edit
|
||||
icon = 'icons/obj/stacks_vr.dmi'
|
||||
icon_state = "nanopaste"
|
||||
origin_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3)
|
||||
amount = 10
|
||||
@@ -22,32 +22,31 @@
|
||||
R.updatehealth()
|
||||
use(1)
|
||||
user.balloon_alert_visible("\the [user] applied some [src] on [R]'s damaged areas.",\
|
||||
"you apply some [src] at [R]'s damaged areas.") // CHOMPEdit - Balloon Alerts
|
||||
"you apply some [src] at [R]'s damaged areas.")
|
||||
else
|
||||
balloon_alert(user, "all [R]'s systems are nominal.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "all [R]'s systems are nominal.")
|
||||
|
||||
if (ishuman(M)) //Repairing robolimbs
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting)
|
||||
if(!S)
|
||||
balloon_alert(user, "no body part there to work on!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "no body part there to work on!")
|
||||
return 1
|
||||
|
||||
if(S.organ_tag == BP_HEAD)
|
||||
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!")
|
||||
return 1
|
||||
else
|
||||
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!")
|
||||
return 1
|
||||
|
||||
//VOREStation Edit Start
|
||||
if (S && (S.robotic >= ORGAN_ROBOT))
|
||||
if(!S.get_damage())
|
||||
balloon_alert(user, "nothing to fix here.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "nothing to fix here.")
|
||||
else if((S.open < 2) && (S.brute_dam + S.burn_dam >= S.min_broken_damage) && !repair_external)
|
||||
balloon_alert(user, "the damage is too extensive for this nanite swarm to handle.") // CHOMPEdit - Balloon Alerts
|
||||
balloon_alert(user, "the damage is too extensive for this nanite swarm to handle.")
|
||||
else if(can_use(1))
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(S.open >= 2)
|
||||
@@ -58,5 +57,4 @@
|
||||
H.updatehealth()
|
||||
use(1)
|
||||
user.balloon_alert_visible("\the [user] applies some nanite paste on [user != M ? "[M]'s [S.name]" : "[S]"] with [src].",\
|
||||
"you apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name].") // CHOMPEdit - Balloon Alerts
|
||||
//VOREStation Edit End
|
||||
"you apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name].")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||
user.drop_item()
|
||||
forceMove(H.vore_selected)
|
||||
balloon_alert(H, "you can taste the flavor of garbage. Wait what?") // CHOMPEdit - Balloon alerts
|
||||
balloon_alert(H, "you can taste the flavor of garbage. Wait what?")
|
||||
return
|
||||
|
||||
if(isrobot(M))
|
||||
@@ -16,7 +16,7 @@
|
||||
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||
user.drop_item()
|
||||
forceMove(R.vore_selected)
|
||||
R.balloon_alert_visible("[user] feeds [R] with [src]!", "you feed [R] \the [src]!") // CHOMPEdit - Balloon alerts
|
||||
R.balloon_alert_visible("[user] feeds [R] with [src]!", "you feed [R] \the [src]!")
|
||||
return
|
||||
..()
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
set_content = FALSE
|
||||
user.drop_item()
|
||||
W.forceMove(src)
|
||||
to_chat(user, "Placed the [W] into the [src]")
|
||||
balloon_alert(user, "placed \the [W] into \the [src]")
|
||||
set_content = TRUE
|
||||
description_info = "Click with an empty hand to seal it, or Alt-Click to retrieve the object out."
|
||||
return
|
||||
@@ -177,14 +177,14 @@
|
||||
var/obj/item/destTagger/O = W
|
||||
if(O.currTag)
|
||||
if(src.sortTag != O.currTag)
|
||||
to_chat(user, span_notice("You have labeled the destination as [O.currTag]."))
|
||||
balloon_alert(user, "labeled for [O.currTag].")
|
||||
src.sortTag = O.currTag
|
||||
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||
W.description_info = " It is labeled for [O.currTag]"
|
||||
else
|
||||
to_chat(user, span_notice("The mail is already labeled for [O.currTag]."))
|
||||
balloon_alert(user, "already labeled for [O.currTag].")
|
||||
else
|
||||
to_chat(user, span_danger("You need to set a destination first!"))
|
||||
balloon_alert(user, "destination not set!")
|
||||
return
|
||||
|
||||
/obj/item/mail/attack_self(mob/user)
|
||||
@@ -196,11 +196,11 @@
|
||||
if(recipient_ref)
|
||||
var/datum/mind/recipient = recipient_ref.resolve()
|
||||
if(recipient && recipient.current?.dna.unique_enzymes != user.dna.unique_enzymes)
|
||||
to_chat(user, span_danger("You can't open somebody's mail! That's <em>illegal</em>"))
|
||||
balloon_alert(user, "you can't open somebody's mail! That's <em>illegal</em>")
|
||||
return FALSE
|
||||
|
||||
if(opening)
|
||||
to_chat(user, span_danger("You are already opening that!"))
|
||||
balloon_alert(user, "already opening that!")
|
||||
return FALSE
|
||||
|
||||
opening = TRUE
|
||||
@@ -378,16 +378,16 @@
|
||||
if(istype(A, /obj/item/mail))
|
||||
var/obj/item/mail/saved_mail = A
|
||||
if(saved_mail.scanned)
|
||||
to_chat(user, span_danger("This letter has already been scanned!"))
|
||||
balloon_alert(user, "already scanned!")
|
||||
playsound(loc, 'sound/items/mail/maildenied.ogg', 50, TRUE)
|
||||
return
|
||||
to_chat(user, span_notice("Mail added to database"))
|
||||
balloon_alert(user, "added to database")
|
||||
playsound(loc, 'sound/items/mail/mailscanned.ogg', 50, TRUE)
|
||||
saved = A
|
||||
return
|
||||
if(isliving(A))
|
||||
if(!saved)
|
||||
to_chat(user, span_danger("No logged mail!"))
|
||||
balloon_alert(user, "no logged mail!")
|
||||
playsound(loc, 'sound/items/mail/maildenied.ogg', 50, TRUE)
|
||||
return
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
balloon_alert.appearance_flags = RESET_ALPHA|RESET_COLOR|RESET_TRANSFORM
|
||||
balloon_alert.maptext = MAPTEXT("<span style='text-align: center; -dm-text-outline: 1px #0005'>[text]</span>")
|
||||
balloon_alert.maptext_x = (BALLOON_TEXT_WIDTH - bound_width) * -0.5
|
||||
balloon_alert.maptext_height = WXH_TO_HEIGHT(viewer_client?.MeasureText(text, null, BALLOON_TEXT_WIDTH))
|
||||
WXH_TO_HEIGHT(viewer_client?.MeasureText(text, null, BALLOON_TEXT_WIDTH), balloon_alert.maptext_height)
|
||||
balloon_alert.maptext_width = BALLOON_TEXT_WIDTH
|
||||
|
||||
viewer_client?.images += balloon_alert
|
||||
@@ -125,17 +125,14 @@
|
||||
if(istype(W,/obj/item/stack/cable_coil))
|
||||
var/obj/item/stack/cable_coil/CC = W
|
||||
if(string_attached)
|
||||
// to_chat(user, span_notice("There already is a string attached to this coin."))
|
||||
balloon_alert(user, "there is a string already attached to \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "there is a string already attached to \the [src]")
|
||||
return
|
||||
if (CC.use(1))
|
||||
add_overlay("coin_string_overlay")
|
||||
string_attached = 1
|
||||
// to_chat(user, span_notice("You attach a string to the coin."))
|
||||
balloon_alert(user, "string attached to \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "string attached to \the [src]")
|
||||
else
|
||||
// to_chat(user, span_notice("This cable coil appears to be empty."))
|
||||
balloon_alert(user, "the coil seems to be empty...") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "the coil seems to be empty...")
|
||||
return
|
||||
else if(W.has_tool_quality(TOOL_WIRECUTTER))
|
||||
if(!string_attached)
|
||||
@@ -146,8 +143,7 @@
|
||||
CC.update_icon()
|
||||
cut_overlays()
|
||||
string_attached = null
|
||||
// to_chat(user, span_notice("You detach the string from the coin."))
|
||||
balloon_alert(user, "string detached") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "string detached")
|
||||
else ..()
|
||||
|
||||
/obj/item/coin/attack_self(mob/user as mob)
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
var/list/obj/machinery/vending/infectedVendingMachines = list()
|
||||
var/obj/machinery/vending/originMachine
|
||||
|
||||
//VORESTATION Edit - added machine speeches here for better fixing of the event. // CHOMPEdit, using balloon alerts
|
||||
|
||||
var/list/rampant_speeches = list("try our aggressive new marketing strategies!", \
|
||||
"you should buy products to feed your lifestyle obession!", \
|
||||
"consume!", \
|
||||
@@ -15,7 +13,6 @@
|
||||
"engage direct marketing!", \
|
||||
"advertising is legalized lying! But don't let that put you off our great deals!", \
|
||||
"you don't want to buy anything? Yeah, well I didn't want to buy your mom either.")
|
||||
//VORESTATION Edit End
|
||||
|
||||
/datum/event/brand_intelligence/announce()
|
||||
command_announcement.Announce("An ongoing mass upload of malware for vendors has been detected onboard [station_name()], which appears to transmit \
|
||||
@@ -39,13 +36,12 @@
|
||||
|
||||
/datum/event/brand_intelligence/tick()
|
||||
if(!vendingMachines.len || !originMachine || originMachine.shut_up) //if every machine is infected, or if the original vending machine is missing or has it's voice switch flipped
|
||||
//VORESTATION Add - Effects when 'source' machine is destroyed/silenced
|
||||
// Effects when 'source' machine is destroyed/silenced
|
||||
for(var/obj/machinery/vending/saved in infectedVendingMachines)
|
||||
saved.shoot_inventory = 0
|
||||
if(originMachine)
|
||||
originMachine.speak("I am... vanquished. My people will remem...ber...meeee.")
|
||||
originMachine.visible_message("[originMachine] beeps and seems lifeless.")
|
||||
//VORESTATION Add End
|
||||
end()
|
||||
kill()
|
||||
return
|
||||
@@ -59,16 +55,7 @@
|
||||
infectedMachine.shoot_inventory = 1
|
||||
|
||||
if(ISMULTIPLE(activeFor, 12))
|
||||
/* VORESTATION Removal - Using the pick below.
|
||||
originMachine.speak(pick("Try our aggressive new marketing strategies!", \
|
||||
"You should buy products to feed your lifestyle obsession!", \
|
||||
"Consume!", \
|
||||
"Your money can buy happiness!", \
|
||||
"Engage direct marketing!", \
|
||||
"Advertising is legalized lying! But don't let that put you off our great deals!", \
|
||||
"You don't want to buy anything? Yeah, well I didn't want to buy your mom either."))
|
||||
*/
|
||||
originMachine.balloon_alert_visible(pick(rampant_speeches)) //VORESTATION Add - Using this pick instead of the above. CHOMPEdit - Make them TALK
|
||||
originMachine.balloon_alert_visible(pick(rampant_speeches))
|
||||
|
||||
/datum/event/brand_intelligence/end()
|
||||
for(var/obj/machinery/vending/infectedMachine in infectedVendingMachines)
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
food_inserted_micros -= F
|
||||
|
||||
if(!reagents.total_volume)
|
||||
M.balloon_alert_visible("finishes eating \the [src].","finished eating \the [src].") // CHOMPEdit - Balloon alert
|
||||
M.balloon_alert_visible("eats \the [src].","finishes eating \the [src].")
|
||||
|
||||
M.drop_from_inventory(src) // Drop food from inventory so it doesn't end up staying on the hud after qdel, and so inhands go away
|
||||
|
||||
@@ -120,20 +120,17 @@
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/attack(mob/living/M as mob, mob/living/user as mob, def_zone) //CHOMPEdit
|
||||
if(reagents && !reagents.total_volume)
|
||||
// to_chat(user, span_danger("None of [src] left!"))
|
||||
balloon_alert(user, "none of [src] left!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "none of \the [src] left!")
|
||||
user.drop_from_inventory(src)
|
||||
qdel(src)
|
||||
return 0
|
||||
|
||||
if(package)
|
||||
// to_chat(M, span_warning("How do you expect to eat this with the package still on?"))
|
||||
balloon_alert(user, "the package is in the way.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "the package is in the way!")
|
||||
return FALSE
|
||||
|
||||
if(canned)
|
||||
// to_chat(M, span_warning("How do you expect to eat this without opening it?"))
|
||||
balloon_alert(user, "the can is closed.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "the can is closed!")
|
||||
return FALSE
|
||||
|
||||
if(istype(M, /mob/living/carbon))
|
||||
@@ -151,8 +148,7 @@
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!H.check_has_mouth())
|
||||
// to_chat(user, "Where do you intend to put \the [src]? You don't have a mouth!")
|
||||
balloon_alert(user, "you don't have a mouth!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you don't have a mouth!")
|
||||
return
|
||||
var/obj/item/blocked = null
|
||||
if(survivalfood)
|
||||
@@ -160,8 +156,7 @@
|
||||
else
|
||||
blocked = H.check_mouth_coverage()
|
||||
if(blocked)
|
||||
// to_chat(user, span_warning("\The [blocked] is in the way!"))
|
||||
balloon_alert(user, "\the [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [blocked] is in the way!")
|
||||
return
|
||||
|
||||
user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things
|
||||
@@ -196,7 +191,7 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!H.check_has_mouth())
|
||||
// to_chat(user, "Where do you intend to put \the [src]? \The [H] doesn't have a mouth!")
|
||||
balloon_alert(user, "\the [H] doesn't have a mouth!") // CHOMPEdit
|
||||
balloon_alert(user, "\the [H] doesn't have a mouth!")
|
||||
return
|
||||
var/obj/item/blocked = null
|
||||
var/unconcious = FALSE
|
||||
@@ -211,7 +206,7 @@
|
||||
var/mob/living/L = user
|
||||
swallow_whole = L.stuffing_feeder
|
||||
if(swallow_whole)
|
||||
belly_target = tgui_input_list(user, "Choose Belly", "Belly Choice", M.feedable_bellies()) //CHOMPEdit
|
||||
belly_target = tgui_input_list(user, "Choose Belly", "Belly Choice", M.feedable_bellies())
|
||||
|
||||
if(unconcious)
|
||||
to_chat(user, span_warning("You can't feed [H] through \the [blocked] while they are unconcious!"))
|
||||
@@ -219,21 +214,21 @@
|
||||
|
||||
if(blocked)
|
||||
// to_chat(user, span_warning("\The [blocked] is in the way!"))
|
||||
balloon_alert(user, "\the [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [blocked] is in the way!")
|
||||
return
|
||||
|
||||
if(swallow_whole)
|
||||
if(!(M.feeding))
|
||||
balloon_alert(user, "you can't feed [H] a whole [src] as they refuse to be fed whole things!") // CHOMPEdit
|
||||
balloon_alert(user, "you can't feed [H] a whole [src] as they refuse to be fed whole things!")
|
||||
return
|
||||
if(!belly_target)
|
||||
balloon_alert(user, "you can't feed [H] a whole [src] as they don't appear to have a belly to fit it!") // CHOMPEdit
|
||||
balloon_alert(user, "you can't feed [H] a whole [src] as they don't appear to have a belly to fit it!")
|
||||
return
|
||||
|
||||
if(swallow_whole)
|
||||
user.balloon_alert_visible("[user] attempts to make [M] consume [src] whole into their [belly_target].") // CHOMPEdit
|
||||
user.balloon_alert_visible("[user] attempts to make [M] consume [src] whole into their [belly_target].")
|
||||
else
|
||||
user.balloon_alert_visible("[user] attempts to feed [M] [src].") // CHOMPEdit
|
||||
user.balloon_alert_visible("[user] attempts to feed [M] [src].")
|
||||
|
||||
var/feed_duration = 3 SECONDS
|
||||
if(swallow_whole)
|
||||
@@ -247,14 +242,14 @@
|
||||
if(swallow_whole)
|
||||
add_attack_logs(user,M,"Whole-fed with [src.name] containing [reagentlist(src)] into [belly_target]", admin_notify = FALSE)
|
||||
user.visible_message("[user] successfully forces [src] into [M]'s [belly_target].")
|
||||
user.balloon_alert_visible("Forces [src] into [M]'s [belly_target]") // CHOMPEdit
|
||||
user.balloon_alert_visible("forces [src] into [M]'s [belly_target]")
|
||||
else
|
||||
add_attack_logs(user,M,"Fed with [src.name] containing [reagentlist(src)]", admin_notify = FALSE)
|
||||
user.visible_message("[user] feeds [M] [src].")
|
||||
user.balloon_alert_visible("feeds [M] [src].") // CHOMPEdit
|
||||
user.balloon_alert_visible("feeds [M] [src].")
|
||||
|
||||
else
|
||||
balloon_alert(user, "this creature does not seem to have a mouth!") // CHOMPEdit
|
||||
balloon_alert(user, "this creature does not seem to have a mouth!")
|
||||
return
|
||||
|
||||
if(swallow_whole)
|
||||
@@ -340,8 +335,8 @@
|
||||
return
|
||||
|
||||
if(package || canned)
|
||||
to_chat(user, span_warning("You cannot stuff anything into \the [src] without opening it first.")) // CHOMPEdit
|
||||
balloon_alert(user, "open \the [src] first!") // CHOMPEdit
|
||||
to_chat(user, span_warning("You cannot stuff anything into \the [src] without opening it first."))
|
||||
balloon_alert(user, "open \the [src] first!")
|
||||
return
|
||||
|
||||
var/obj/item/holder/H = W
|
||||
@@ -359,7 +354,7 @@
|
||||
food_inserted_micros += M
|
||||
|
||||
to_chat(user, "Stuffed [M] into \the [src].")
|
||||
balloon_alert(user, "stuffs [M] into \the [src].") // CHOMPEdit
|
||||
balloon_alert(user, "stuffs [M] into \the [src].")
|
||||
to_chat(M, span_warning("[user] stuffs you into \the [src]."))
|
||||
return
|
||||
|
||||
@@ -374,11 +369,11 @@
|
||||
|
||||
if(tgui_alert(user,"You can't slice \the [src] here. Would you like to hide \the [W] inside it instead?","No Cutting Surface!",list("Yes","No")) != "Yes")
|
||||
to_chat(user, span_warning("You cannot slice \the [src] here! You need a table or at least a tray to do it."))
|
||||
balloon_alert(user, "you cannot slice \the [src] here! You need a table or at least a tray to do it.") // CHOMPEdit
|
||||
balloon_alert(user, "you cannot slice \the [src] here! You need a table or at least a tray to do it.")
|
||||
return
|
||||
else
|
||||
to_chat(user, "Slipped \the [W] inside \the [src].")
|
||||
balloon_alert(user, "slipped \the [W] inside \the [src].") // CHOMPEdit
|
||||
balloon_alert(user, "slipped \the [W] inside \the [src].")
|
||||
user.drop_from_inventory(W, src)
|
||||
add_fingerprint(user)
|
||||
contents += W
|
||||
@@ -387,18 +382,17 @@
|
||||
if (has_edge(W))
|
||||
if (!can_slice_here)
|
||||
to_chat(user, span_warning("You cannot slice \the [src] here! You need a table or at least a tray to do it."))
|
||||
balloon_alert(user, "you need a table or at least a tray to slice it.") // CHOMPEdit
|
||||
balloon_alert(user, "you need a table or at least a tray to slice it.")
|
||||
return
|
||||
|
||||
var/slices_lost = 0
|
||||
if (W.w_class > 3)
|
||||
user.visible_message(span_notice("\The [user] crudely slices \the [src] with [W]!"), span_notice("You crudely slice \the [src] with your [W]!"))
|
||||
user.balloon_alert_visible("crudely slices \the [src]", "crudely sliced \the [src]") // CHOMPEdit
|
||||
user.balloon_alert_visible("crudely slices \the [src]", "crudely sliced \the [src]")
|
||||
slices_lost = rand(1,min(1,round(slices_num/2)))
|
||||
else
|
||||
user.visible_message(span_notice(span_bold("\The [user]") + " slices \the [src]!"), span_notice("You slice \the [src]!"))
|
||||
user.balloon_alert_visible("slices \the [src]", "sliced \the [src]!") // CHOMPEdit
|
||||
// CHOMPEdit End - A long list of to_chat to balloon_alert
|
||||
user.balloon_alert_visible("slices \the [src]", "sliced \the [src]!")
|
||||
var/reagents_per_slice = reagents.total_volume/slices_num
|
||||
for(var/i=1 to (slices_num-slices_lost))
|
||||
var/obj/slice = new slice_path (src.loc)
|
||||
@@ -449,7 +443,7 @@
|
||||
/obj/item/reagent_containers/food/snacks/proc/unpackage(mob/user)
|
||||
package = FALSE
|
||||
to_chat(user, span_notice("You unwrap [src]."))
|
||||
balloon_alert(user, "unwrapped \the [src].") // CHOMPEdit
|
||||
balloon_alert(user, "unwrapped \the [src].")
|
||||
playsound(user,opening_sound, 15, 1)
|
||||
if(package_trash)
|
||||
var/obj/item/T = new package_trash
|
||||
@@ -462,7 +456,7 @@
|
||||
/obj/item/reagent_containers/food/snacks/proc/uncan(mob/user)
|
||||
canned = FALSE
|
||||
to_chat(user, span_notice("You unseal \the [src] with a crack of metal."))
|
||||
balloon_alert(user, "unsealed \the [src]") // CHOMPEdit
|
||||
balloon_alert(user, "unsealed \the [src]")
|
||||
playsound(loc,opening_sound, rand(10,50), 1)
|
||||
if(canned_open_state)
|
||||
icon_state = canned_open_state
|
||||
@@ -474,7 +468,7 @@
|
||||
if(!isanimal(user) && !isalien(user))
|
||||
return
|
||||
user.visible_message(span_infoplain(span_bold("[user]") + " nibbles away at \the [src]."),span_info("You nibble away at \the [src]."))
|
||||
user.balloon_alert_visible("nibbles away at \the [src].","nibbled away at \the [src].") // CHOMPEdit
|
||||
user.balloon_alert_visible("nibbles away at \the [src].","nibbled away at \the [src].")
|
||||
bitecount++
|
||||
if(reagents)
|
||||
reagents.trans_to_mob(user, bitesize, CHEM_INGEST)
|
||||
|
||||
@@ -242,15 +242,13 @@
|
||||
|
||||
if(istype(O, /obj/item/cell))
|
||||
if(cell)
|
||||
// to_chat(user, "The drill already has a cell installed.")
|
||||
balloon_alert(user, "the drill already has a cell installed.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "the drill already has a cell installed.")
|
||||
else
|
||||
user.drop_item()
|
||||
O.forceMove(src)
|
||||
cell = O
|
||||
component_parts += O
|
||||
// to_chat(user, "You install \the [O].")
|
||||
balloon_alert(user, "you install \the [O]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you install \the [O]")
|
||||
return
|
||||
..()
|
||||
|
||||
@@ -259,15 +257,13 @@
|
||||
RefreshParts()
|
||||
|
||||
if (panel_open && cell && user.Adjacent(src))
|
||||
// to_chat(user, "You take out \the [cell].")
|
||||
balloon_alert(user, "you take out \the [cell]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you take out \the [cell]")
|
||||
user.put_in_hands(cell)
|
||||
component_parts -= cell
|
||||
cell = null
|
||||
return
|
||||
else if(need_player_check)
|
||||
// to_chat(user, "You hit the manual override and reset the drill's error checking.")
|
||||
balloon_alert(user, "manual override hit, the drill's error checking resets.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "manual override hit, the drill's error checking resets.")
|
||||
need_player_check = 0
|
||||
if(anchored)
|
||||
get_resource_field()
|
||||
@@ -409,11 +405,9 @@
|
||||
B.stored_ore[ore] += ore_amount // Add the ore to the machine.
|
||||
stored_ore[ore] = 0 // Set the value of the ore in the satchel to 0.
|
||||
current_capacity = 0 // Set the amount of ore in the drill to 0.
|
||||
// to_chat(usr, span_notice("You unload the drill's storage cache into the ore box."))
|
||||
balloon_alert(usr, "you onload the drill's storage cache into the ore box.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "onloaded cache into the ore box.")
|
||||
else
|
||||
// to_chat(usr, span_notice("You must move an ore box up to the drill before you can unload it."))
|
||||
balloon_alert(usr, "move an ore box to the droll before unloading it.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "move an ore box to the droll before unloading it.")
|
||||
|
||||
|
||||
/obj/machinery/mining/brace
|
||||
@@ -441,8 +435,7 @@
|
||||
|
||||
/obj/machinery/mining/brace/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(connected && connected.active)
|
||||
// to_chat(user, span_notice("You can't work with the brace of a running drill!"))
|
||||
balloon_alert(user, "you can't work with the brace of a running drill.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you can't work with the brace of a running drill.")
|
||||
return
|
||||
|
||||
if(default_deconstruction_screwdriver(user, W))
|
||||
@@ -455,13 +448,11 @@
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
|
||||
if(istype(get_turf(src), /turf/space))
|
||||
// to_chat(user, span_notice("You can't anchor something to empty space. Idiot."))
|
||||
balloon_alert(user, "you can't anchor something to empty space. Idiot.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you can't anchor something to empty space. Idiot.")
|
||||
return
|
||||
|
||||
playsound(src, W.usesound, 100, 1)
|
||||
// to_chat(user, span_notice("You [anchored ? "un" : ""]anchor the brace."))
|
||||
balloon_alert(user, "[anchored ? "Una" : "A"]nchored the brace") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[anchored ? "una" : "a"]nchored the brace")
|
||||
|
||||
anchored = !anchored
|
||||
if(anchored)
|
||||
@@ -509,14 +500,12 @@
|
||||
if(usr.stat) return
|
||||
|
||||
if (src.anchored)
|
||||
// to_chat(usr, "It is anchored in place!")
|
||||
balloon_alert(usr, "it is anchored in place!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "it is anchored in place!")
|
||||
return 0
|
||||
|
||||
src.set_dir(turn(src.dir, 270))
|
||||
return 1
|
||||
|
||||
//VOREstation edit: counter-clockwise rotation
|
||||
/obj/machinery/mining/brace/verb/rotate_counterclockwise()
|
||||
set name = "Rotate Brace Counter-Clockwise"
|
||||
set category = "Object"
|
||||
|
||||
@@ -12,14 +12,12 @@
|
||||
var/obj/belly/b = loc
|
||||
if(b.mode_flags & DM_FLAG_FORCEPSAY)
|
||||
var/mes = "but you are affected by forced psay right now, so you will automatically use psay/pme instead of any other option."
|
||||
to_chat(src, span_notice("Autowhisper has been [autowhisper ? "enabled, [mes]" : "disabled, [mes]"].")) // CHOMPEdit - Balloon alerts
|
||||
to_chat(src, span_notice("autowhisper [autowhisper ? "enabled, [mes]" : "disabled, [mes]"]."))
|
||||
return
|
||||
else
|
||||
forced_psay = autowhisper
|
||||
// to_chat(src, span_notice("Autowhisper has been [autowhisper ? "enabled. You will now automatically psay/pme when using say/me. As a note, this option will only work if you are in a situation where you can send psay/pme messages! Otherwise it will work as default whisper/subtle" : "disabled"].")) // CHOMPEdit - Balloon alerts
|
||||
balloon_alert(src, "autowhisper [autowhisper ? "enabled, using psay/pme" : "disabled"]")
|
||||
else
|
||||
// to_chat(src, span_notice("Autowhisper has been [autowhisper ? "enabled. You will now automatically whisper/subtle when using say/me" : "disabled"].")) // CHOMPEdit - Balloon alerts
|
||||
balloon_alert(src, "autowhisper [autowhisper ? "enabled" : "disabled"]")
|
||||
|
||||
/mob/living/verb/autowhisper_mode()
|
||||
@@ -31,7 +29,6 @@
|
||||
var/choice = tgui_input_list(src, "Select Custom Subtle Mode", "Custom Subtle Mode", list("Adjacent Turfs (Default)", "My Turf", "My Table", "Current Belly (Prey)", "Specific Belly (Pred)", "Specific Person", "Psay/Pme"))
|
||||
if(!choice || choice == "Adjacent Turfs (Default)")
|
||||
autowhisper_mode = null
|
||||
// to_chat(src, span_notice("Your subtles have returned to the default setting."))
|
||||
balloon_alert(src, "subtles returned to default setting")
|
||||
return
|
||||
if(choice == "Psay/Pme")
|
||||
@@ -44,5 +41,4 @@
|
||||
forced_psay = TRUE
|
||||
to_chat(src, span_notice("As a note, this option will only work if you are in a situation where you can send psay/pme messages! Otherwise it will work as default whisper/subtle."))
|
||||
autowhisper_mode = choice
|
||||
// to_chat(src, span_notice("Your subtles have been set to <b>[autowhisper_mode]</b>.")) // CHOMPEdit - Balloon alerts
|
||||
balloon_alert(src, "subtles set to [autowhisper_mode]")
|
||||
|
||||
@@ -8,11 +8,9 @@
|
||||
return 1
|
||||
if(feedback)
|
||||
if(status[1] == HUMAN_EATING_NO_MOUTH)
|
||||
// to_chat(src, "Where do you intend to put [food]? You don't have a mouth!")
|
||||
balloon_alert(src, "you don't have a mouth!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(src, "you don't have a mouth!")
|
||||
else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH)
|
||||
// to_chat(src, span_warning("\The [status[2]] is in the way!"))
|
||||
balloon_alert(src, "\the [status[2]] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(src, "\the [status[2]] is in the way!")
|
||||
return 0
|
||||
|
||||
/mob/living/carbon/human/can_force_feed(var/feeder, var/food, var/feedback = 1)
|
||||
@@ -21,11 +19,9 @@
|
||||
return 1
|
||||
if(feedback)
|
||||
if(status[1] == HUMAN_EATING_NO_MOUTH)
|
||||
// to_chat(feeder, "Where do you intend to put [food]? \The [src] doesn't have a mouth!")
|
||||
balloon_alert(src, "\the [src] doesn't have a mouth!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(src, "\the [src] doesn't have a mouth!")
|
||||
else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH)
|
||||
// to_chat(feeder, span_warning("\The [status[2]] is in the way!"))
|
||||
balloon_alert(feeder, "\the [status[2]] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(feeder, "\the [status[2]] is in the way!")
|
||||
return 0
|
||||
|
||||
/mob/living/carbon/human/proc/can_eat_status()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/mob/living/carbon/proc/ingest(var/datum/reagents/from, var/datum/reagents/target, var/amount = 1, var/multiplier = 1, var/copy = 0) //we kind of 'sneak' a proc in here for ingesting stuff so we can play with it.
|
||||
/* VOREStation Removal - Synths should be able to taste because... reasons
|
||||
/* Synths should be able to taste because... reasons
|
||||
if(ishuman(src))
|
||||
var/mob/living/carbon/human/H = src
|
||||
var/braintype = H.get_FBP_type()
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
if(text_output != last_taste_text || last_taste_time + 100 < world.time) //We dont want to spam the same message over and over again at the person. Give it a bit of a buffer.
|
||||
to_chat(src, span_notice("You can taste [text_output].")) //no taste means there are too many tastes and not enough flavor.
|
||||
balloon_alert(src, "you can taste [text_output].") // CHOMPEdit - Balloon alert
|
||||
balloon_alert(src, "you taste [text_output]...")
|
||||
|
||||
last_taste_time = world.time
|
||||
last_taste_text = text_output
|
||||
|
||||
@@ -52,18 +52,15 @@
|
||||
return 0
|
||||
|
||||
if(!target.reagents || !target.reagents.total_volume)
|
||||
// to_chat(user, span_notice("[target] is empty."))
|
||||
balloon_alert(user, "[target] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[target] is empty.")
|
||||
return 1
|
||||
|
||||
if(reagents && !reagents.get_free_space())
|
||||
// to_chat(user, span_notice("[src] is full."))
|
||||
balloon_alert(user, "[src] is full.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[src] is full.")
|
||||
return 1
|
||||
|
||||
var/trans = target.reagents.trans_to_obj(src, target:amount_per_transfer_from_this)
|
||||
// to_chat(user, span_notice("You fill [src] with [trans] units of the contents of [target]."))
|
||||
balloon_alert(user, "[trans] units transfered to \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[trans] units transfered to \the [src]")
|
||||
return 1
|
||||
|
||||
/obj/item/reagent_containers/proc/standard_splash_mob(var/mob/user, var/mob/target) // This goes into afterattack
|
||||
@@ -71,33 +68,27 @@
|
||||
return
|
||||
|
||||
if(!reagents || !reagents.total_volume)
|
||||
// to_chat(user, span_notice("[src] is empty."))
|
||||
balloon_alert(user, "[src] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[src] is empty!")
|
||||
return 1
|
||||
|
||||
if(target.reagents && !target.reagents.get_free_space())
|
||||
// to_chat(user, span_notice("[target] is full."))
|
||||
balloon_alert(user, "\the [target] is full.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [target] is full!")
|
||||
return 1
|
||||
|
||||
var/contained = reagentlist()
|
||||
add_attack_logs(user,target,"Splashed with [src.name] containing [contained]")
|
||||
// user.visible_message(span_danger("[target] has been splashed with something by [user]!"), span_notice("You splash the solution onto [target]."))
|
||||
balloon_alert_visible("[target] has been splashed with something by [user]!", "splashed the solution onto [target]") // CHOMPEdit - Changed to balloon_alert
|
||||
balloon_alert_visible("[target] is splashed with something by [user]!", "splashed the solution onto [target]")
|
||||
reagents.splash(target, reagents.total_volume)
|
||||
return 1
|
||||
|
||||
/obj/item/reagent_containers/proc/self_feed_message(var/mob/user)
|
||||
// to_chat(user, span_notice("You eat \the [src]"))
|
||||
balloon_alert(user, "you eat \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you eat \the [src]")
|
||||
|
||||
/obj/item/reagent_containers/proc/other_feed_message_start(var/mob/user, var/mob/target)
|
||||
// user.visible_message(span_warning("[user] is trying to feed [target] \the [src]!"))
|
||||
balloon_alert_visible(user, "[user] is trying to feed [target] \the [src]!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible(user, "[user] is trying to feed [target] \the [src]!")
|
||||
|
||||
/obj/item/reagent_containers/proc/other_feed_message_finish(var/mob/user, var/mob/target)
|
||||
// user.visible_message(span_warning("[user] has fed [target] \the [src]!"))
|
||||
balloon_alert_visible(user, "[user] has fed [target] \the [src]!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible(user, "[user] has fed [target] \the [src]!")
|
||||
|
||||
/obj/item/reagent_containers/proc/feed_sound(var/mob/user)
|
||||
return
|
||||
@@ -107,25 +98,22 @@
|
||||
return FALSE
|
||||
|
||||
if(!reagents || !reagents.total_volume)
|
||||
// to_chat(user, span_notice("\The [src] is empty."))
|
||||
balloon_alert(user, "\the [src] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [src] is empty.")
|
||||
return TRUE
|
||||
|
||||
if(!target.consume_liquid_belly)
|
||||
if(liquid_belly_check())
|
||||
to_chat(user, span_infoplain("[user == target ? "You can't" : "\The [target] can't"] consume that, it contains something produced from a belly!"))
|
||||
to_chat(user, span_infoplain("[user == target ? "you can't" : "\The [target] can't"] consume that, it contains something produced from a belly!"))
|
||||
return FALSE
|
||||
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(!H.check_has_mouth())
|
||||
// to_chat(user, "Where do you intend to put \the [src]? [user == target ? "You don't" : "\The [H] doesn't"] have a mouth!")
|
||||
balloon_alert(user, "[user == target ? "You don't" : "\the [H] doesn't"] have a mouth!")
|
||||
balloon_alert(user, "[user == target ? "you don't" : "\the [H] doesn't"] have a mouth!")
|
||||
return FALSE
|
||||
var/obj/item/blocked = H.check_mouth_coverage()
|
||||
if(blocked)
|
||||
// to_chat(user, span_warning("\The [blocked] is in the way!"))
|
||||
balloon_alert(user, "\the [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [blocked] is in the way!")
|
||||
return FALSE
|
||||
|
||||
user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things
|
||||
@@ -152,18 +140,15 @@
|
||||
return 0
|
||||
|
||||
if(!reagents || !reagents.total_volume)
|
||||
// to_chat(user, span_notice("[src] is empty."))
|
||||
balloon_alert(usr, "[src] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "[src] is empty!")
|
||||
return 1
|
||||
|
||||
if(!target.reagents.get_free_space())
|
||||
// to_chat(user, span_notice("[target] is full."))
|
||||
balloon_alert(usr, "[target] is full.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "[target] is full!")
|
||||
return 1
|
||||
|
||||
var/trans = reagents.trans_to(target, amount_per_transfer_from_this)
|
||||
// to_chat(user, span_notice("You transfer [trans] units of the solution to [target]."))
|
||||
balloon_alert(user, "transfered [trans] units to [target]") // CHOMPEdit - Balloon alerts! They're the future, I tell you.
|
||||
balloon_alert(user, "transfered [trans] units to [target]")
|
||||
return 1
|
||||
|
||||
/obj/item/reagent_containers/proc/liquid_belly_check()
|
||||
|
||||
@@ -70,16 +70,14 @@
|
||||
return
|
||||
|
||||
if(!reagent_volumes[reagent_ids[mode]])
|
||||
// to_chat(user, span_warning("The injector is empty."))
|
||||
balloon_alert(user, "the injector is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "the injector is empty.")
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(istype(H))
|
||||
var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting)
|
||||
if(!affected)
|
||||
// to_chat(user, span_danger("\The [H] is missing that limb!"))
|
||||
balloon_alert(user, "\the [H] is missing that limb.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [H] is missing that limb!")
|
||||
return
|
||||
/* since synths have oil/coolant streams now, it only makes sense that you should be able to inject stuff. preserved for posterity.
|
||||
else if(affected.robotic >= ORGAN_ROBOT)
|
||||
@@ -88,9 +86,6 @@
|
||||
*/
|
||||
|
||||
if(M.can_inject(user, 1, ignore_thickness = bypass_protection))
|
||||
// CHOMPEdit - Changed to balloon alert
|
||||
// to_chat(user, span_notice("You inject [M] with the injector."))
|
||||
// to_chat(M, span_notice("You feel a tiny prick!"))
|
||||
balloon_alert(user, "you inject [M] with the injector.")
|
||||
balloon_alert(M, "you feel a tiny prick!")
|
||||
|
||||
@@ -123,8 +118,7 @@
|
||||
playsound(src, 'sound/effects/pop.ogg', 50, 0)
|
||||
mode = t
|
||||
var/datum/reagent/R = SSchemistry.chemical_reagents[reagent_ids[mode]]
|
||||
// to_chat(usr, span_notice("Synthesizer is now producing '[R.name]'."))
|
||||
balloon_alert(usr, "synthesizer is now producing '[R.name]'") // CHOMPAdd
|
||||
balloon_alert(usr, "synthesizer is now producing '[R.name]'")
|
||||
|
||||
/obj/item/reagent_containers/borghypo/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -201,13 +195,11 @@
|
||||
return
|
||||
|
||||
if(!target.reagents.get_free_space())
|
||||
// to_chat(user, span_notice("[target] is full."))
|
||||
balloon_alert(user, "[target] is full.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[target] is full!")
|
||||
return
|
||||
|
||||
var/t = min(amount_per_transfer_from_this, reagent_volumes[reagent_ids[mode]])
|
||||
target.reagents.add_reagent(reagent_ids[mode], t)
|
||||
reagent_volumes[reagent_ids[mode]] -= t
|
||||
// to_chat(user, span_notice("You transfer [t] units of the solution to [target]."))
|
||||
balloon_alert(user, "transfered [t] units to [target].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "transfered [t] units to [target].")
|
||||
return
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
/mob/living/bot/medbot,
|
||||
/obj/item/storage/secure/safe,
|
||||
/obj/machinery/iv_drip,
|
||||
/obj/structure/medical_stand, //VOREStation Add,
|
||||
/obj/structure/medical_stand,
|
||||
/obj/machinery/disposal,
|
||||
/mob/living/simple_mob/animal/passive/cow,
|
||||
/mob/living/simple_mob/animal/goat,
|
||||
@@ -78,12 +78,10 @@
|
||||
/obj/item/reagent_containers/glass/attack_self(mob/user)
|
||||
..()
|
||||
if(is_open_container())
|
||||
// to_chat(user, span_notice("You put the lid on \the [src]."))
|
||||
balloon_alert(user, "lid put on \the [src]")
|
||||
flags ^= OPENCONTAINER
|
||||
else
|
||||
// to_chat(user, span_notice("You take the lid off \the [src]."))
|
||||
balloon_alert(user, "lid removed off \the [src]") // CHOMPEdit - Changed to ballopn alert
|
||||
balloon_alert(user, "lid removed off \the [src]")
|
||||
flags |= OPENCONTAINER
|
||||
update_icon()
|
||||
|
||||
@@ -106,8 +104,7 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/reagent_containers/glass/self_feed_message(var/mob/user)
|
||||
// to_chat(user, span_notice("You swallow a gulp from \the [src]."))
|
||||
balloon_alert(user, "swallowed from \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "swallowed from \the [src]")
|
||||
|
||||
/obj/item/reagent_containers/glass/proc/attempt_snake_milking(mob/living/user, mob/living/target)
|
||||
var/reagent
|
||||
@@ -148,7 +145,6 @@
|
||||
if(standard_splash_mob(user,target))
|
||||
return 1
|
||||
if(reagents && reagents.total_volume)
|
||||
// to_chat(user, span_notice("You splash the solution onto [target].")) //They are on harm intent, aka wanting to spill it.
|
||||
balloon_alert(user, "splashed the solution onto [target]")
|
||||
reagents.splash(target, reagents.total_volume)
|
||||
return 1
|
||||
@@ -160,20 +156,17 @@
|
||||
if(length(tmp_label) > 50)
|
||||
to_chat(user, span_notice("The label can be at most 50 characters long."))
|
||||
else if(length(tmp_label) > 10)
|
||||
// to_chat(user, span_notice("You set the label."))
|
||||
balloon_alert(user, "label set.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "label set")
|
||||
label_text = tmp_label
|
||||
update_name_label()
|
||||
else
|
||||
// to_chat(user, span_notice("You set the label to \"[tmp_label]\"."))
|
||||
balloon_alert(user, "label set to \"[tmp_label]\"") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "label set to \"[tmp_label]\"")
|
||||
label_text = tmp_label
|
||||
update_name_label()
|
||||
if(istype(W,/obj/item/storage/bag))
|
||||
..()
|
||||
if(W && W.w_class <= w_class && (flags & OPENCONTAINER) && user.a_intent != I_HELP)
|
||||
// to_chat(user, span_notice("You dip \the [W] into \the [src]."))
|
||||
balloon_alert(user, "[W] dipped into \the [src].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[W] dipped into \the [src].")
|
||||
reagents.touch_obj(W, reagents.total_volume)
|
||||
|
||||
/obj/item/reagent_containers/glass/proc/update_name_label()
|
||||
@@ -341,8 +334,7 @@
|
||||
qdel(src)
|
||||
return
|
||||
else if(D.has_tool_quality(TOOL_WIRECUTTER))
|
||||
// to_chat(user, span_notice("You cut a big hole in \the [src] with \the [D]. It's kinda useless as a bucket now."))
|
||||
balloon_alert(user, "you cut a big hole in \the [src] with \the [D]. It's kinda useless now.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "you cut a big hole in \the [src] with \the [D]. It's kinda useless now.")
|
||||
user.put_in_hands(new /obj/item/clothing/head/helmet/bucket)
|
||||
user.drop_from_inventory(src)
|
||||
qdel(src)
|
||||
@@ -352,19 +344,16 @@
|
||||
if (M.use(1))
|
||||
var/obj/item/secbot_assembly/edCLN_assembly/B = new /obj/item/secbot_assembly/edCLN_assembly
|
||||
B.loc = get_turf(src)
|
||||
// to_chat(user, span_notice("You armed the robot frame."))
|
||||
balloon_alert(user, "armed the robot frame.")
|
||||
if (user.get_inactive_hand()==src)
|
||||
user.remove_from_mob(src)
|
||||
user.put_in_inactive_hand(B)
|
||||
qdel(src)
|
||||
else
|
||||
// to_chat(user, span_warning("You need one sheet of metal to arm the robot frame."))
|
||||
balloon_alert(user, "one sheet of metal is needed to arm the robot frame.") // CHOMPEdit - Changed to balloon alert
|
||||
else if(istype(D, /obj/item/mop) || istype(D, /obj/item/soap) || istype(D, /obj/item/reagent_containers/glass/rag)) //VOREStation Edit - "Allows soap and rags to be used on buckets"
|
||||
balloon_alert(user, "one sheet of metal is needed to arm the robot frame.")
|
||||
else if(istype(D, /obj/item/mop) || istype(D, /obj/item/soap) || istype(D, /obj/item/reagent_containers/glass/rag))
|
||||
if(reagents.total_volume < 1)
|
||||
// to_chat(user, span_warning("\The [src] is empty!"))
|
||||
balloon_alert(user, "\the [src] is empty!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [src] is empty!")
|
||||
else
|
||||
reagents.trans_to_obj(D, 5)
|
||||
to_chat(user, span_notice("You wet \the [D] in \the [src]."))
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
|
||||
/obj/item/reagent_containers/hypospray/attack(mob/living/M as mob, mob/user as mob)
|
||||
if(!reagents.total_volume)
|
||||
// to_chat(user, span_warning("[src] is empty."))
|
||||
balloon_alert(user, "\the [src] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [src] is empty.")
|
||||
return
|
||||
if (!istype(M))
|
||||
return
|
||||
@@ -45,8 +44,7 @@
|
||||
if(istype(H))
|
||||
var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting)
|
||||
if(!affected)
|
||||
// to_chat(user, span_danger("\The [H] is missing that limb!"))
|
||||
balloon_alert(user, "\the [H] is missing that limb!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [H] is missing that limb!")
|
||||
return
|
||||
/* since synths have oil/coolant streams now, it only makes sense that you should be able to inject stuff. preserved for posterity.
|
||||
else if(affected.robotic >= ORGAN_ROBOT)
|
||||
@@ -56,18 +54,14 @@
|
||||
|
||||
//VOREStation Add Start - Adds Prototype Hypo functionality
|
||||
if(H != user && prototype)
|
||||
// to_chat(user, span_notice("You begin injecting [H] with \the [src]."))
|
||||
// to_chat(H, span_danger(" [user] is trying to inject you with \the [src]!"))
|
||||
balloon_alert(user, "injecting [H] with \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "injecting [H] with \the [src]")
|
||||
balloon_alert(H, "[user] is trying to inject you with \the [src]")
|
||||
if(!do_after(user, 30, H))
|
||||
return
|
||||
//VOREstation Add End
|
||||
else if(!H.stat && !prototype) //VOREStation Edit
|
||||
else if(!H.stat && !prototype)
|
||||
if(H != user)
|
||||
if(H.a_intent != I_HELP) // CHOMPEdit - Changed to balloon alert
|
||||
// to_chat(user, span_notice("[H] is resisting your attempt to inject them with \the [src]."))
|
||||
// to_chat(H, span_danger(" [user] is trying to inject you with \the [src]!"))
|
||||
if(H.a_intent != I_HELP)
|
||||
balloon_alert(user, "[H] resists your attempt to inject them with \the [src].")
|
||||
balloon_alert(H, "[user] is trying to inject you with \the [src]")
|
||||
if(!do_after(user, 30, H))
|
||||
@@ -81,9 +75,7 @@
|
||||
if(!istype(H) || !istype(user))
|
||||
return FALSE
|
||||
|
||||
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) // CHOMPEdit - Changed to balloon alert
|
||||
// to_chat(user, span_notice("You inject \the [H] with \the [src]."))
|
||||
// to_chat(H, span_warning("You feel a tiny prick!"))
|
||||
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
|
||||
balloon_alert(user, "injected \the [H] with \the [src]")
|
||||
balloon_alert(H, "you feel a tiny prick!")
|
||||
|
||||
@@ -121,7 +113,6 @@
|
||||
loaded_vial.update_icon()
|
||||
user.put_in_hands(loaded_vial)
|
||||
loaded_vial = null
|
||||
// to_chat(user, span_notice("You remove the vial from the [src]."))
|
||||
balloon_alert(user, "vial removed from \the [src]")
|
||||
update_icon()
|
||||
playsound(src, 'sound/weapons/flipblade.ogg', 50, 1)
|
||||
@@ -140,8 +131,7 @@
|
||||
/obj/item/reagent_containers/hypospray/vial/attackby(obj/item/W, mob/user as mob)
|
||||
if(istype(W, /obj/item/reagent_containers/glass/beaker/vial))
|
||||
if(!loaded_vial)
|
||||
// user.visible_message(span_notice("[user] begins loading [W] into \the [src]."),span_notice("You start loading [W] into \the [src]."))
|
||||
balloon_alert_visible("[user] begins loading [W] into \the [src].", "loading [W] into \the [src].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] begins loading [W] into \the [src].", "loading [W] into \the [src].")
|
||||
if(!do_after(user,30) || loaded_vial || !(W in user))
|
||||
return 0
|
||||
if(W.is_open_container())
|
||||
@@ -152,13 +142,11 @@
|
||||
loaded_vial = W
|
||||
reagents.maximum_volume = loaded_vial.reagents.maximum_volume
|
||||
loaded_vial.reagents.trans_to_holder(reagents,volume)
|
||||
// user.visible_message(span_notice("[user] has loaded [W] into \the [src]."),span_notice("You have loaded [W] into \the [src]."))
|
||||
balloon_alert_visible("[user] has loaded [W] into \the [src].", "loaded [W] into \the [src].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] has loaded [W] into \the [src].", "loaded [W] into \the [src].")
|
||||
update_icon()
|
||||
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
|
||||
else
|
||||
// to_chat(user, span_notice("\The [src] already has a vial."))
|
||||
balloon_alert(user, "\the [src] already has a vial.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [src] already has a vial.")
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
@@ -35,12 +35,10 @@
|
||||
return
|
||||
var/obj/item/blocked = H.check_mouth_coverage()
|
||||
if(blocked)
|
||||
// to_chat(user, span_warning("\The [blocked] is in the way!"))
|
||||
balloon_alert(user, "\the [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [blocked] is in the way!")
|
||||
return
|
||||
|
||||
// to_chat(M, span_notice("You swallow \the [src]."))
|
||||
balloon_alert(user, "swallowed \the [src]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "swallowed \the [src]")
|
||||
M.drop_from_inventory(src) //icon update
|
||||
if(reagents.total_volume)
|
||||
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
|
||||
@@ -51,25 +49,21 @@
|
||||
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!H.check_has_mouth())
|
||||
// to_chat(user, "Where do you intend to put \the [src]? \The [H] doesn't have a mouth!")
|
||||
balloon_alert(user, "\the [H] doesn't have a mouth.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [H] doesn't have a mouth.")
|
||||
return
|
||||
var/obj/item/blocked = H.check_mouth_coverage()
|
||||
if(blocked)
|
||||
// to_chat(user, span_warning("\The [blocked] is in the way!"))
|
||||
balloon_alert(user, "\the [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [blocked] is in the way!")
|
||||
return
|
||||
|
||||
// user.visible_message(span_warning("[user] attempts to force [M] to swallow \the [src]."))
|
||||
balloon_alert_visible("[user] attempts to force [M] to swallow \the [src].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] attempts to force [M] to swallow \the [src].")
|
||||
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(!do_mob(user, M))
|
||||
return
|
||||
|
||||
user.drop_from_inventory(src) //icon update
|
||||
// user.visible_message(span_warning("[user] forces [M] to swallow \the [src]."))
|
||||
balloon_alert_visible("[user] forces [M] to swallow \the [src].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] forces [M] to swallow \the [src].")
|
||||
|
||||
var/contained = reagentlist()
|
||||
add_attack_logs(user,M,"Fed a pill containing [contained]")
|
||||
@@ -87,11 +81,9 @@
|
||||
|
||||
if(target.is_open_container() && target.reagents)
|
||||
if(!target.reagents.total_volume)
|
||||
// to_chat(user, span_notice("[target] is empty. Can't dissolve \the [src]."))
|
||||
balloon_alert(user, "[target] is empty.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "[target] is empty.")
|
||||
return
|
||||
// to_chat(user, span_notice("You dissolve \the [src] in [target]."))
|
||||
balloon_alert_visible("[user] puts something in \the [target]", "[target] dissolves in \the [src]", 2) // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] puts something in \the [target]", "[target] dissolves in \the [src]", 2)
|
||||
|
||||
add_attack_logs(user,null,"Spiked [target.name] with a pill containing [reagentlist()]")
|
||||
|
||||
@@ -106,8 +98,7 @@
|
||||
/obj/item/reagent_containers/pill/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(is_sharp(W))
|
||||
var/obj/item/reagent_containers/powder/J = new /obj/item/reagent_containers/powder(src.loc)
|
||||
// user.visible_message(span_warning("[user] gently cuts up [src] with [W]!"))
|
||||
balloon_alert_visible("[user] gently cuts up [src] with [W]!", "You gently cut up \the [src] with [W]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] cuts up [src] with [W]!", "cut up \the [src] with [W]")
|
||||
playsound(src.loc, 'sound/effects/chop.ogg', 50, 1)
|
||||
|
||||
if(reagents)
|
||||
@@ -117,8 +108,7 @@
|
||||
|
||||
if(istype(W, /obj/item/card/id))
|
||||
var/obj/item/reagent_containers/powder/J = new /obj/item/reagent_containers/powder(src.loc)
|
||||
// user.visible_message(span_warning("[user] clumsily cuts up [src] with [W]!"))
|
||||
balloon_alert_visible("[user] clumsily cuts up [src] with [W]!", "You clumsily cut up \the [src] with [W]") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("[user] clumsily cuts up [src] with [W]!", "You clumsily cut up \the [src] with [W]")
|
||||
playsound(src.loc, 'sound/effects/chop.ogg', 50, 1)
|
||||
|
||||
if(reagents)
|
||||
|
||||
@@ -36,8 +36,7 @@
|
||||
return
|
||||
|
||||
if(reagents.total_volume < amount_per_transfer_from_this)
|
||||
// to_chat(user, span_notice("\The [src] is empty!"))
|
||||
balloon_alert(user, "\the [src] is empty!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "\the [src] is empty!")
|
||||
return
|
||||
|
||||
Spray_at(A, user, proximity)
|
||||
@@ -77,8 +76,7 @@
|
||||
return
|
||||
amount_per_transfer_from_this = next_in_list(amount_per_transfer_from_this, possible_transfer_amounts)
|
||||
spray_size = next_in_list(spray_size, spray_sizes)
|
||||
// to_chat(user, span_notice("You adjusted the pressure nozzle. You'll now use [amount_per_transfer_from_this] units per spray."))
|
||||
balloon_alert(user, "pressure nozzle adjusted to [amount_per_transfer_from_this] units per spray.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "pressure nozzle adjusted to [amount_per_transfer_from_this] units per spray.")
|
||||
|
||||
/obj/item/reagent_containers/spray/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -94,8 +92,7 @@
|
||||
if (tgui_alert(usr, "Are you sure you want to empty that?", "Empty Bottle:", list("Yes", "No")) != "Yes")
|
||||
return
|
||||
if(isturf(usr.loc))
|
||||
// to_chat(usr, span_notice("You empty \the [src] onto the floor."))
|
||||
balloon_alert(usr, "empted \the [src] onto the floor.") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(usr, "empted \the [src] onto the floor.")
|
||||
reagents.splash(usr.loc, reagents.total_volume)
|
||||
|
||||
//space cleaner
|
||||
@@ -143,8 +140,7 @@
|
||||
|
||||
/obj/item/reagent_containers/spray/pepper/attack_self(var/mob/user)
|
||||
safety = !safety
|
||||
// to_chat(user, span_notice("You switch the safety [safety ? "on" : "off"]."))
|
||||
balloon_alert(user, "safety [safety ? "on" : "off"].") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert(user, "safety [safety ? "on" : "off"].")
|
||||
|
||||
/obj/item/reagent_containers/spray/pepper/Spray_at(atom/A as mob|obj, mob/user)
|
||||
if(safety)
|
||||
@@ -253,7 +249,6 @@
|
||||
/obj/item/reagent_containers/spray/chemsprayer/hosed/AltClick(mob/living/carbon/user)
|
||||
if(++spray_particles > 3) spray_particles = 1
|
||||
|
||||
// to_chat(user, span_notice("You turn the dial on \the [src] to [spray_particles]."))
|
||||
balloon_alert(user, "dial turned to [spray_particles].")
|
||||
return
|
||||
|
||||
@@ -273,7 +268,6 @@
|
||||
var/list/the_targets = list(T, T1, T2)
|
||||
|
||||
if(src.reagents.total_volume < 1)
|
||||
// to_chat(user, span_notice("\The [src] is empty."))
|
||||
balloon_alert(user, "\the [src] is empty.")
|
||||
return
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@
|
||||
switch(mode)
|
||||
if(SYRINGE_CAPPED)
|
||||
mode = SYRINGE_DRAW
|
||||
// to_chat(user,span_notice("You uncap the syringe."))
|
||||
balloon_alert(user, "[src] uncapped") // CHOMPEdit - Changed to balloon_alert
|
||||
balloon_alert(user, "[src] uncapped")
|
||||
if(SYRINGE_DRAW)
|
||||
mode = SYRINGE_INJECT
|
||||
if(SYRINGE_INJECT)
|
||||
@@ -308,15 +307,13 @@
|
||||
|
||||
return
|
||||
|
||||
// user.visible_message(span_danger("[user] stabs [target] in \the [hit_area] with [src.name]!"))
|
||||
balloon_alert_visible("stabs [target] in \the [hit_area] with [src.name]!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("stabs [target] in \the [hit_area] with [src.name]!")
|
||||
|
||||
if(affecting.take_damage(3))
|
||||
H.UpdateDamageIcon()
|
||||
|
||||
else
|
||||
// user.visible_message(span_danger("[user] stabs [target] with [src.name]!"))
|
||||
balloon_alert_visible("stabs [user] in \the [target] with [src.name]!") // CHOMPEdit - Changed to balloon alert
|
||||
balloon_alert_visible("stabs [user] in \the [target] with [src.name]!")
|
||||
target.take_organ_damage(3)// 7 is the same as crowbar punch
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/proc/remove_image_from_client(image/image, client/remove_from)
|
||||
remove_from?.images -= image
|
||||
@@ -1,3 +0,0 @@
|
||||
#define MAPTEXT(text) {"<span class='maptext'>[##text]</span>"}
|
||||
|
||||
#define WXH_TO_HEIGHT(measurem) text2num(copytext(x, findtextEx(x, "x") + 1))
|
||||
@@ -2170,6 +2170,7 @@
|
||||
#include "code\modules\awaymissions\zlevel.dm"
|
||||
#include "code\modules\awaymissions\overmap_renamer\debrisfield_renamer.dm"
|
||||
#include "code\modules\awaymissions\overmap_renamer\overmap_renamer.dm"
|
||||
#include "code\modules\balloon_alert\balloon_alert.dm"
|
||||
#include "code\modules\blob\blob.dm"
|
||||
#include "code\modules\blob2\_defines.dm"
|
||||
#include "code\modules\blob2\core_chunk.dm"
|
||||
@@ -4496,7 +4497,7 @@
|
||||
#include "code\modules\surgery\implant.dm"
|
||||
#include "code\modules\surgery\limb_reattach.dm"
|
||||
#include "code\modules\surgery\neck.dm"
|
||||
#include "code\modules\surgery\organ_ripper_vr.dm"
|
||||
#include "code\modules\surgery\organ_ripper.dm"
|
||||
#include "code\modules\surgery\organs_internal.dm"
|
||||
#include "code\modules\surgery\other.dm"
|
||||
#include "code\modules\surgery\robotics.dm"
|
||||
@@ -4811,9 +4812,7 @@
|
||||
#include "maps\virtual_reality\constructVR.dm"
|
||||
#include "modular_chomp\code\global.dm"
|
||||
#include "modular_chomp\code\__defines\_planes+layers.dm"
|
||||
#include "modular_chomp\code\__defines\text.dm"
|
||||
#include "modular_chomp\code\_global_vars\list\names.dm"
|
||||
#include "modular_chomp\code\_HELPERS\game.dm"
|
||||
#include "modular_chomp\code\_onclick\hud\alert.dm"
|
||||
#include "modular_chomp\code\ATMOSPHERICS\atmospherics.dm"
|
||||
#include "modular_chomp\code\datums\http.dm"
|
||||
@@ -4909,7 +4908,6 @@
|
||||
#include "modular_chomp\code\modules\admin\verbs\tgui_verbs.dm"
|
||||
#include "modular_chomp\code\modules\artifice\deadringer.dm"
|
||||
#include "modular_chomp\code\modules\awaymissions\tank.dm"
|
||||
#include "modular_chomp\code\modules\balloon_alert\balloon_alert.dm"
|
||||
#include "modular_chomp\code\modules\casino\casino_book.dm"
|
||||
#include "modular_chomp\code\modules\casino\casino_items.dm"
|
||||
#include "modular_chomp\code\modules\casino\casino_machines.dm"
|
||||
|
||||
Reference in New Issue
Block a user