diff --git a/code/game/objects/items/mail_ch.dm b/code/game/objects/items/mail_ch.dm index c297a7b892..dfdcede56d 100644 --- a/code/game/objects/items/mail_ch.dm +++ b/code/game/objects/items/mail_ch.dm @@ -91,14 +91,14 @@ var/obj/item/device/destTagger/O = W if(O.currTag) if(src.sortTag != O.currTag) - to_chat(user, "You have labeled the destination as [O.currTag].") + balloon_alert(user, "You have labeled the destination as [O.currTag].") if(!src.sortTag) src.sortTag = O.currTag playsound(src, 'sound/machines/twobeep.ogg', 50, 1) else - to_chat(user, "The mail is already labeled for [O.currTag].") + balloon_alert(user, "The mail is already labeled for [O.currTag].") else - to_chat(user, "You need to set a destination first!") + balloon_alert(user, "You need to set a destination first!") return /obj/item/mail/attack_self(mob/user) @@ -108,14 +108,15 @@ /obj/item/mail/proc/unwrap(mob/user) if(recipient && user != recipient) - to_chat(user, "You can't open somebody's mail! That's illegal") + balloon_alert(user, "You can't open somebody's mail! That's illegal") return FALSE if(opening) - to_chat(user, "You are already opening that!") + balloon_alert(user, "You are already opening that!") return FALSE opening = TRUE + balloon_alert(user, "Unwrapping...") if(!do_after(user, 1.5 SECONDS, target = user)) opening = FALSE return FALSE diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index 5b4a5c9d5f..81a8e34c27 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -17,16 +17,16 @@ /obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob) if (!istype(M)) - to_chat(user, "\The [src] cannot be applied to [M]!") + balloon_alert(user, "\The [src] cannot be applied to [M]!") // CHOMPEdit - Balloon Alerts return 1 if (!user.IsAdvancedToolUser()) - to_chat(user, "You don't have the dexterity to do this!") + balloon_alert(user, "You don't have the dexterity to do this!") // CHOMPEdit - Balloon Alerts return 1 var/available = get_amount() if(!available) - to_chat(user, "There's not enough [uses_charge ? "charge" : "items"] left to use that!") + balloon_alert(user, "Not enough [uses_charge ? "charge" : "items"] left to use that!") // CHOMPEdit - Balloon Alerts return 1 if (istype(M, /mob/living/carbon/human)) @@ -34,24 +34,24 @@ var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting) if(!affecting) - to_chat(user, "No body part there to work on!") + balloon_alert(user, "No body part there to work on!") // CHOMPEdit - Balloon Alerts return 1 if(affecting.organ_tag == BP_HEAD) if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space)) - to_chat(user, "You can't apply [src] through [H.head]!") + balloon_alert(user, "You can't apply [src] through [H.head]!") // CHOMPEdit - Balloon Alerts return 1 else if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space)) - to_chat(user, "You can't apply [src] through [H.wear_suit]!") + balloon_alert(user, "You can't apply [src] through [H.wear_suit]!") // CHOMPEdit - Balloon Alerts return 1 if(affecting.robotic == ORGAN_ROBOT) - to_chat(user, "This isn't useful at all on a robotic limb.") + balloon_alert(user, "This isn't useful at all on a robotic limb.") // CHOMPEdit - Balloon Alerts return 1 if(affecting.robotic >= ORGAN_LIFELIKE) - to_chat(user, "You apply the [src], but it seems to have no effect...") + balloon_alert(user, "You apply the [src], but it seems to have no effect...") // CHOMPEdit - Balloon Alerts use(1) return 1 @@ -60,9 +60,9 @@ else M.heal_organ_damage((src.heal_brute/2), (src.heal_burn/2)) - user.visible_message( \ - "[M] has been applied with [src] by [user].", \ - "You apply \the [src] to [M]." \ + user.balloon_alert_visible( \ + "[M] has been applied with [src] by [user].", \ + "You apply \the [src] to [M]." \ ) use(1) @@ -99,16 +99,16 @@ var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting) if(affecting.open) - to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") + balloon_alert(user, "The [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts return if(affecting.is_bandaged()) - to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.") + balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts return 1 else var/available = get_amount() - user.visible_message("\The [user] starts bandaging [M]'s [affecting.name].", \ - "You start bandaging [M]'s [affecting.name]." ) + user.balloon_alert_visible("\The [user] starts bandaging [M]'s [affecting.name].", \ + "Bandaging [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts 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)) - to_chat(user, "You must stand still to bandage wounds.") + balloon_alert(user, "Stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts break if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check. - to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.") + balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts return 1 if(used >= available) - to_chat(user, "You run out of [src]!") + balloon_alert(user, "You run out of [src]!") // CHOMPEdit - Balloon Alerts break if (W.current_stage <= W.max_bleeding_stage) - user.visible_message("\The [user] bandages \a [W.desc] on [M]'s [affecting.name].", \ - "You bandage \a [W.desc] on [M]'s [affecting.name]." ) + 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 else - user.visible_message("\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]." ) + 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 W.bandage() playsound(src, pick(apply_sounds), 25) used++ affecting.update_damages() if(used == amount) if(affecting.is_bandaged()) - to_chat(user, "\The [src] is used up.") + balloon_alert(user, "\The [src] is used up.") // CHOMPEdit - Balloon Alerts else - to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") + balloon_alert(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts 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) - to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") + balloon_alert(user, "The [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts return if(affecting.is_bandaged()) - to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.") + balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts return 1 else var/available = get_amount() - user.visible_message("\The [user] starts treating [M]'s [affecting.name].", \ - "You start treating [M]'s [affecting.name]." ) + user.balloon_alert_visible("\The [user] starts treating [M]'s [affecting.name].", \ + "Treating [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts var/used = 0 for (var/datum/wound/W in affecting.wounds) if (W.internal) @@ -187,27 +187,27 @@ if(used == amount) break if(!do_mob(user, M, W.damage/5, exclusive = TRUE)) - to_chat(user, "You must stand still to bandage wounds.") + balloon_alert(user, "Stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts break if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check. - to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.") + balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts return 1 if(used >= available) - to_chat(user, "You run out of [src]!") + balloon_alert(user, "You run out of [src]!") // CHOMPEdit - Balloon Alerts break if (W.current_stage <= W.max_bleeding_stage) - user.visible_message("\The [user] bandages \a [W.desc] on [M]'s [affecting.name].", \ - "You bandage \a [W.desc] on [M]'s [affecting.name]." ) + 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 //H.add_side_effect("Itch") else if (W.damage_type == BRUISE) - user.visible_message("\The [user] places a bruise patch over \a [W.desc] on [M]'s [affecting.name].", \ - "You place a bruise patch over \a [W.desc] on [M]'s [affecting.name]." ) + 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 else - user.visible_message("\The [user] places a bandaid over \a [W.desc] on [M]'s [affecting.name].", \ - "You place a bandaid over \a [W.desc] on [M]'s [affecting.name]." ) + 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 W.bandage() // W.disinfect() // VOREStation - Tech1 should not disinfect playsound(src, pick(apply_sounds), 25) @@ -215,9 +215,9 @@ affecting.update_damages() if(used == amount) if(affecting.is_bandaged()) - to_chat(user, "\The [src] is used up.") + balloon_alert(user, "\The [src] is used up.") // CHOMPEdit - Balloon Alerts else - to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") + balloon_alert(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts 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) - to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") + balloon_alert(user, "The [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return if(affecting.is_salved()) - to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.") + balloon_alert(user, "The wounds on [M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return 1 else - user.visible_message("\The [user] starts salving wounds on [M]'s [affecting.name].", \ - "You start salving the wounds on [M]'s [affecting.name]." ) + 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 if(!do_mob(user, M, 10, exclusive = TRUE)) - to_chat(user, "You must stand still to salve wounds.") + balloon_alert(user, "Stand still to salve wounds.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return 1 if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check. - to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.") + balloon_alert(user, "[M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return 1 - user.visible_message("[user] salved wounds on [M]'s [affecting.name].", \ - "You salved wounds on [M]'s [affecting.name]." ) + 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 use(1) affecting.salve() playsound(src, pick(apply_sounds), 25) @@ -287,16 +287,16 @@ var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting) if(affecting.open) - to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") + balloon_alert(user, "The [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return if(affecting.is_bandaged() && affecting.is_disinfected()) - to_chat(user, "The wounds on [M]'s [affecting.name] have already been treated.") + balloon_alert(user, "[M]'s [affecting.name] have already been treated.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return 1 else var/available = get_amount() - user.visible_message("\The [user] starts treating [M]'s [affecting.name].", \ - "You start treating [M]'s [affecting.name]." ) + user.balloon_alert_visible("\The [user] starts treating [M]'s [affecting.name].", \ + "Treating [M]'s [affecting.name]." ) // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts var/used = 0 for (var/datum/wound/W in affecting.wounds) if (W.internal) @@ -306,25 +306,25 @@ //if(used == amount) //VOREStation Edit // break //VOREStation Edit if(!do_mob(user, M, W.damage/5, exclusive = TRUE)) - to_chat(user, "You must stand still to bandage wounds.") + balloon_alert(user, "Stand still to bandage wounds.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts 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. - to_chat(user, "The wounds on [M]'s [affecting.name] have already been bandaged.") + balloon_alert(user, "[M]'s [affecting.name] is already bandaged.") // CHOMPEdit - Balloon Alerts // CHOMPEdit - Balloon Alerts return 1 if(used >= available) - to_chat(user, "You run out of [src]!") + balloon_alert(user, "You run out of [src]!") // CHOMPEdit - Balloon Alerts break if (W.current_stage <= W.max_bleeding_stage) - user.visible_message("\The [user] cleans \a [W.desc] on [M]'s [affecting.name] and seals the edges with bioglue.", \ - "You clean and seal \a [W.desc] on [M]'s [affecting.name]." ) + 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 else if (W.damage_type == BRUISE) - user.visible_message("\The [user] places a medical patch over \a [W.desc] on [M]'s [affecting.name].", \ - "You place a medical patch over \a [W.desc] on [M]'s [affecting.name]." ) + 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 else - user.visible_message("\The [user] smears some bioglue over \a [W.desc] on [M]'s [affecting.name].", \ - "You smear some bioglue over \a [W.desc] on [M]'s [affecting.name]." ) + 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 W.bandage() W.disinfect() W.heal_damage(heal_brute) @@ -334,9 +334,9 @@ affecting.update_damages() if(used == amount) if(affecting.is_bandaged()) - to_chat(user, "\The [src] is used up.") + balloon_alert(user, "\The [src] is used up.") // CHOMPEdit - Balloon Alerts else - to_chat(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") + balloon_alert(user, "\The [src] is used up, but there are more wounds to treat on \the [affecting.name].") // CHOMPEdit - Balloon Alerts use(used) /obj/item/stack/medical/advanced/ointment @@ -357,22 +357,22 @@ var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting) if(affecting.open) - to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!") + balloon_alert(user, "The [affecting.name] is cut open!") // CHOMPEdit - Balloon Alerts if(affecting.is_salved()) - to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.") + balloon_alert(user, "[M]'s [affecting.name] has already been salved.") // CHOMPEdit - Balloon Alerts return 1 else - user.visible_message("\The [user] starts salving wounds on [M]'s [affecting.name].", \ - "You start salving the wounds on [M]'s [affecting.name]." ) + 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 if(!do_mob(user, M, 10, exclusive = TRUE)) - to_chat(user, "You must stand still to salve wounds.") + balloon_alert(user, "Stand still to salve wounds.") // CHOMPEdit - Balloon Alerts return 1 if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check. - to_chat(user, "The wounds on [M]'s [affecting.name] have already been salved.") + balloon_alert(user, "[M]'s [affecting.name] have already been salved.") // CHOMPEdit - Balloon Alerts return 1 - user.visible_message( "[user] covers wounds on [M]'s [affecting.name] with regenerative membrane.", \ - "You cover wounds on [M]'s [affecting.name] with regenerative membrane." ) + 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 affecting.heal_damage(0,heal_burn) use(1) affecting.salve() @@ -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)) - to_chat(user, "You can't use \the [src] to apply a splint there!") + balloon_alert(user, "You can't use \the [src] to apply a splint there!") // CHOMPEdit - Balloon Alerts return if(affecting.splinted) - to_chat(user, "[M]'s [limb] is already splinted!") + balloon_alert(user, "[M]'s [limb] is already splinted!") // CHOMPEdit - Balloon Alerts return if (M != user) - user.visible_message("[user] starts to apply \the [src] to [M]'s [limb].", "You start to apply \the [src] to [M]'s [limb].", "You hear something being wrapped.") + 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 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)) )) - to_chat(user, "You can't apply a splint to the arm you're using!") + balloon_alert(user, "You can't apply a splint to the arm you're using!") // CHOMPEdit - Balloon Alerts return - user.visible_message("[user] starts to apply \the [src] to their [limb].", "You start to apply \the [src] to your [limb].", "You hear something being wrapped.") + 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 if(do_after(user, 50, M, exclusive = TASK_USER_EXCLUSIVE)) if(affecting.splinted) - to_chat(user, "[M]'s [limb] is already splinted!") + balloon_alert(user, "[M]'s [limb] is already splinted!") // CHOMPEdit - Balloon Alerts return if(M == user && prob(75)) - user.visible_message("\The [user] fumbles [src].", "You fumble [src].", "You hear something being wrapped.") + user.balloon_alert_visible("\The [user] fumbles [src].", "Fumbling [src].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts 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.visible_message("\The [user] finishes applying [src] to [M]'s [limb].", "You finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.") + 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 else - user.visible_message("\The [user] successfully applies [src] to their [limb].", "You successfully apply \the [src] to your [limb].", "You hear something being wrapped.") + 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 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.visible_message("\The [user] finishes applying [src] to [M]'s [limb].", "You finish applying \the [src] to [M]'s [limb].", "You hear something being wrapped.") + 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 B.use(1) return - user.visible_message("\The [user] fails to apply [src].", "You fail to apply [src].", "You hear something being wrapped.") + user.balloon_alert_visible("\The [user] fails to apply [src].", "Failed to apply [src].", "You hear something being wrapped.") // CHOMPEdit - Balloon Alerts return diff --git a/code/game/objects/items/stacks/nanopaste.dm b/code/game/objects/items/stacks/nanopaste.dm index ba5db2b33b..a297d43eb4 100644 --- a/code/game/objects/items/stacks/nanopaste.dm +++ b/code/game/objects/items/stacks/nanopaste.dm @@ -21,33 +21,33 @@ R.adjustFireLoss(-15) R.updatehealth() use(1) - user.visible_message("\The [user] applied some [src] on [R]'s damaged areas.",\ - "You apply some [src] at [R]'s damaged areas.") + 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 else - to_chat(user, "All [R]'s systems are nominal.") + balloon_alert(user, "All [R]'s systems are nominal.") // CHOMPEdit - Balloon Alerts if (istype(M,/mob/living/carbon/human)) //Repairing robolimbs var/mob/living/carbon/human/H = M var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting) if(!S) - to_chat(user, "No body part there to work on!") + balloon_alert(user, "No body part there to work on!") // CHOMPEdit - Balloon Alerts return 1 if(S.organ_tag == BP_HEAD) if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space)) - to_chat(user, "You can't apply [src] through [H.head]!") + balloon_alert(user, "You can't apply [src] through [H.head]!") // CHOMPEdit - Balloon Alerts return 1 else if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space)) - to_chat(user, "You can't apply [src] through [H.wear_suit]!") + balloon_alert(user, "You can't apply [src] through [H.wear_suit]!") // CHOMPEdit - Balloon Alerts return 1 //VOREStation Edit Start if (S && (S.robotic >= ORGAN_ROBOT)) if(!S.get_damage()) - to_chat(user, "Nothing to fix here.") + balloon_alert(user, "Nothing to fix here.") // CHOMPEdit - Balloon Alerts else if((S.open < 2) && (S.brute_dam + S.burn_dam >= S.min_broken_damage) && !repair_external) - to_chat(user, "The damage is too extensive for this nanite swarm to handle.") + balloon_alert(user, "The damage is too extensive for this nanite swarm to handle.") // CHOMPEdit - Balloon Alerts else if(can_use(1)) user.setClickCooldown(user.get_attack_speed(src)) if(S.open >= 2) @@ -57,6 +57,6 @@ S.heal_damage(restoration_external,restoration_external, robo_repair =1) H.updatehealth() use(1) - user.visible_message("\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].") + 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 diff --git a/code/game/objects/items/trash_vr.dm b/code/game/objects/items/trash_vr.dm index 4a50236a62..e5adc3dec8 100644 --- a/code/game/objects/items/trash_vr.dm +++ b/code/game/objects/items/trash_vr.dm @@ -7,7 +7,7 @@ playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) user.drop_item() forceMove(H.vore_selected) - to_chat(H, "You can taste the flavor of garbage. Wait what?") + balloon_alert(H, "You can taste the flavor of garbage. Wait what?") // CHOMPEdit - Balloon alerts 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.visible_message("[user] feeds [R] with [src]!") + R.balloon_alert_visible("[user] feeds [R] with [src]!", "You feed [R] \the [src]!") // CHOMPEdit - Balloon alerts return ..() @@ -105,4 +105,4 @@ /obj/item/trash/ratpackmeat name = "\improper Prepackaged Meal Tray" icon = 'icons/obj/trash_vr.dmi' - icon_state = "altevian_pack_meat-trash" \ No newline at end of file + icon_state = "altevian_pack_meat-trash" diff --git a/code/modules/economy/coins.dm b/code/modules/economy/coins.dm index 87056deecd..e59f4fb69a 100644 --- a/code/modules/economy/coins.dm +++ b/code/modules/economy/coins.dm @@ -72,14 +72,17 @@ if(istype(W,/obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if(string_attached) - to_chat(user, "There already is a string attached to this coin.") + // to_chat(user, "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 return if (CC.use(1)) add_overlay("coin_string_overlay") string_attached = 1 - to_chat(user, "You attach a string to the coin.") + // to_chat(user, "You attach a string to the coin.") + balloon_alert(user, "String attached to \the [src]") // CHOMPEdit - Changed to balloon alert else - to_chat(user, "This cable coil appears to be empty.") + // to_chat(user, "This cable coil appears to be empty.") + balloon_alert(user, "The coil seems to be empty...") // CHOMPEdit - Changed to balloon alert return else if(W.has_tool_quality(TOOL_WIRECUTTER)) if(!string_attached) @@ -90,7 +93,8 @@ CC.update_icon() cut_overlays() string_attached = null - to_chat(user, "You detach the string from the coin.") + // to_chat(user, "You detach the string from the coin.") + balloon_alert(user, "String detached") // CHOMPEdit - Changed to balloon alert else ..() /obj/item/weapon/coin/attack_self(mob/user as mob) @@ -102,3 +106,4 @@ comment = "heads" user.visible_message("[user] has thrown \the [src]. It lands on [comment]! ", \ "You throw \the [src]. It lands on [comment]! ") + balloon_alert_visible("\the [src] lands on [comment]!", "\the [src] lands on [comment]!") diff --git a/code/modules/events/brand_intelligence.dm b/code/modules/events/brand_intelligence.dm index 061159ff48..4fcf45e334 100644 --- a/code/modules/events/brand_intelligence.dm +++ b/code/modules/events/brand_intelligence.dm @@ -68,7 +68,7 @@ "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.speak(pick(rampant_speeches)) //VORESTATION Add - Using this pick instead of the above. + originMachine.balloon_alert_visible(pick(rampant_speeches)) //VORESTATION Add - Using this pick instead of the above. CHOMPEdit - Make them TALK /datum/event/brand_intelligence/end() for(var/obj/machinery/vending/infectedMachine in infectedVendingMachines) diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 697d2db4d2..ec4afb2878 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -80,7 +80,7 @@ food_inserted_micros -= F if(!reagents.total_volume) - M.visible_message("[M] finishes eating \the [src].","You finish eating \the [src].") + M.balloon_alert_visible("Finishes eating \the [src].","Finished eating \the [src].") // CHOMPEdit - Balloon alert usr.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 @@ -98,17 +98,20 @@ /obj/item/weapon/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, "None of [src] left!") + // to_chat(user, "None of [src] left!") + balloon_alert(user, "None of [src] left!") // CHOMPEdit - Changed to balloon alert user.drop_from_inventory(src) qdel(src) return 0 if(package) - to_chat(M, "How do you expect to eat this with the package still on?") + // to_chat(M, "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 return FALSE if(canned) - to_chat(M, "How do you expect to eat this without opening it?") + // to_chat(M, "How do you expect to eat this without opening it?") + balloon_alert(user, "The can is closed.") // CHOMPEdit - Changed to balloon alert return FALSE if(istype(M, /mob/living/carbon)) @@ -121,7 +124,8 @@ if(istype(M,/mob/living/carbon/human)) 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!") + // 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 return var/obj/item/blocked = null if(survivalfood) @@ -129,10 +133,12 @@ else blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + // to_chat(user, "\The [blocked] is in the way!") + balloon_alert(user, "\The [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert return user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things + // CHOMPEdit Start - Changing a lot of the to_chat ahead if (fullness <= 50) to_chat(M, "You hungrily chew out a piece of [src] and gobble it!") if (fullness > 50 && fullness <= 150) @@ -162,7 +168,8 @@ if(istype(M,/mob/living/carbon/human)) 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!") + // 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 return var/obj/item/blocked = null var/unconcious = FALSE @@ -184,21 +191,22 @@ return if(blocked) - to_chat(user, "\The [blocked] is in the way!") + // to_chat(user, "\The [blocked] is in the way!") + balloon_alert(user, "\The [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert return if(swallow_whole) if(!(M.feeding)) - to_chat(user, "You can't feed [H] a whole [src] as they refuse to be fed whole things!") + balloon_alert(user, "You can't feed [H] a whole [src] as they refuse to be fed whole things!") // CHOMPEdit return if(!belly_target) - to_chat(user, "You can't feed [H] a whole [src] as they don't appear to have a belly to fit it!") + balloon_alert(user, "You can't feed [H] a whole [src] as they don't appear to have a belly to fit it!") // CHOMPEdit return if(swallow_whole) - user.visible_message("[user] attempts to make [M] consume [src] whole into their [belly_target].") + user.balloon_alert_visible("[user] attempts to make [M] consume [src] whole into their [belly_target].") // CHOMPEdit else - user.visible_message("[user] attempts to feed [M] [src].") + user.balloon_alert_visible("[user] attempts to feed [M] [src].") // CHOMPEdit var/feed_duration = 3 SECONDS if(swallow_whole) @@ -211,13 +219,15 @@ 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.visible_message("[user] successfully forces [src] into [M]'s [belly_target].") + user.balloon_alert_visible("Forces [src] into [M]'s [belly_target]") // CHOMPEdit else add_attack_logs(user,M,"Fed with [src.name] containing [reagentlist(src)]", admin_notify = FALSE) - user.visible_message("[user] feeds [M] [src].") + user.visible_message("[user] feeds [M] [src].") + user.balloon_alert_visible("Feeds [M] [src].") // CHOMPEdit else - to_chat(user, "This creature does not seem to have a mouth!") + balloon_alert(user, "This creature does not seem to have a mouth!") // CHOMPEdit return if(swallow_whole) @@ -246,12 +256,15 @@ if(swallow_whole) belly_target = tgui_input_list(user, "Choose Belly", "Belly Choice", M.feedable_bellies()) if(!(M.feeding)) - to_chat(user, "You can't feed [M] a whole [src] as they refuse to be fed whole things!") + to_chat(user, "You can't feed [M] a whole [src] as they refuse to be fed whole things!") + balloon_alert("They refuse to be fed whole things!") // CHOMPEdit return if(!belly_target) - to_chat(user, "You can't feed [M] a whole [src] as they don't appear to have a belly to fit it!") + to_chat(user, "You can't feed [M] a whole [src] as they don't appear to have a belly to fit it!") + balloon_alert("They don't have a belly to fit it!")// CHOMPEdit return - user.visible_message("[user] attempts to make [M] consume [src] whole into their [belly_target].") + user.visible_message("[user] attempts to make [M] consume [src] whole into their [belly_target].") + user.balloon_alert_visible("Attempts to make [M] consume [src] whole into their [belly_target].")// CHOMPEdit var/feed_duration = 3 SECONDS user.setClickCooldown(user.get_attack_speed(src)) if(!do_mob(user, M, feed_duration)) @@ -259,7 +272,8 @@ if(!belly_target) return 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.visible_message("[user] successfully forces [src] into [M]'s [belly_target].") // CHOMPEdit + user.balloon_alert_visible("Forces [src] into [M]'s [belly_target].") // CHOMPEdit user.drop_item() forceMove(belly_target) return 1 //CHOMPAdd End @@ -299,7 +313,8 @@ return if(package || canned) - to_chat(user, "You cannot stuff anything into \the [src] without opening it first.") + to_chat(user, "You cannot stuff anything into \the [src] without opening it first.") // CHOMPEdit + balloon_alert(user, "Open \the [src] first!") // CHOMPEdit return var/obj/item/weapon/holder/H = W @@ -316,7 +331,8 @@ food_inserted_micros += M - to_chat(user, "You stuff [M] into \the [src].") + to_chat(user, "Stuffed [M] into \the [src].") + balloon_alert(user, "Stuffs [M] into \the [src].") // CHOMPEdit to_chat(M, "[user] stuffs you into \the [src].") return @@ -330,10 +346,12 @@ return 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")) == "No") - to_chat(user, "You cannot slice \the [src] here! You need a table or at least a tray to do it.") + to_chat(user, "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 return else - to_chat(user, "You slip \the [W] inside \the [src].") + to_chat(user, "Slipped \the [W] inside \the [src].") + balloon_alert(user, "Slipped \the [W] inside \the [src].") // CHOMPEdit user.drop_from_inventory(W, src) add_fingerprint(user) contents += W @@ -341,16 +359,19 @@ if (has_edge(W)) if (!can_slice_here) - to_chat(user, "You cannot slice \the [src] here! You need a table or at least a tray to do it.") + to_chat(user, "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 return var/slices_lost = 0 if (W.w_class > 3) - user.visible_message("\The [user] crudely slices \the [src] with [W]!", "You crudely slice \the [src] with your [W]!") + user.visible_message("\The [user] crudely slices \the [src] with [W]!", "You crudely slice \the [src] with your [W]!") + user.balloon_alert_visible("Crudely slices \the [src]", "Crudely sliced \the [src]") // CHOMPEdit slices_lost = rand(1,min(1,round(slices_num/2))) else - user.visible_message("\The [user] slices \the [src]!", "You slice \the [src]!") - + user.visible_message("\The [user] slices \the [src]!", "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 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) @@ -396,7 +417,8 @@ /obj/item/weapon/reagent_containers/food/snacks/proc/unpackage(mob/user) package = FALSE - to_chat(user, "You unwrap [src].") + to_chat(user, "You unwrap [src].") + balloon_alert(user, "Unwrapped \the [src].") // CHOMPEdit playsound(user,opening_sound, 15, 1) if(package_trash) var/obj/item/T = new package_trash @@ -408,7 +430,8 @@ /obj/item/weapon/reagent_containers/food/snacks/proc/uncan(mob/user) canned = FALSE - to_chat(user, "You unseal \the [src] with a crack of metal.") + to_chat(user, "You unseal \the [src] with a crack of metal.") + balloon_alert(user, "Unsealed \the [src]") // CHOMPEdit playsound(loc,opening_sound, rand(10,50), 1) if(canned_open_state) icon_state = canned_open_state @@ -419,7 +442,8 @@ /obj/item/weapon/reagent_containers/food/snacks/attack_generic(var/mob/living/user) if(!isanimal(user) && !isalien(user)) return - user.visible_message("[user] nibbles away at \the [src].","You nibble away at \the [src].") + user.visible_message("[user] nibbles away at \the [src].","You nibble away at \the [src].") + user.balloon_alert_visible("Nibbles away at \the [src].","Nibbled away at \the [src].") // CHOMPEdit bitecount++ if(reagents) reagents.trans_to_mob(user, bitesize, CHEM_INGEST) diff --git a/code/modules/mining/drilling/drill.dm b/code/modules/mining/drilling/drill.dm index b413ac8ee5..99a8e8b1ab 100644 --- a/code/modules/mining/drilling/drill.dm +++ b/code/modules/mining/drilling/drill.dm @@ -242,13 +242,15 @@ if(istype(O, /obj/item/weapon/cell)) if(cell) - to_chat(user, "The drill already has a cell installed.") + // 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 else user.drop_item() O.forceMove(src) cell = O component_parts += O - to_chat(user, "You install \the [O].") + // to_chat(user, "You install \the [O].") + balloon_alert(user, "You install \the [O]") // CHOMPEdit - Changed to balloon alert return ..() @@ -257,13 +259,15 @@ RefreshParts() if (panel_open && cell && user.Adjacent(src)) - to_chat(user, "You take out \the [cell].") + // to_chat(user, "You take out \the [cell].") + balloon_alert(user, "You take out \the [cell]") // CHOMPEdit - Changed to balloon alert 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.") + // 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 need_player_check = 0 if(anchored) get_resource_field() @@ -405,9 +409,11 @@ 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, "You unload the drill's storage cache into the ore box.") + // to_chat(usr, "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 else - to_chat(usr, "You must move an ore box up to the drill before you can unload it.") + // to_chat(usr, "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 /obj/machinery/mining/brace @@ -435,7 +441,8 @@ /obj/machinery/mining/brace/attackby(obj/item/weapon/W as obj, mob/user as mob) if(connected && connected.active) - to_chat(user, "You can't work with the brace of a running drill!") + // to_chat(user, "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 return if(default_deconstruction_screwdriver(user, W)) @@ -448,11 +455,13 @@ if(W.has_tool_quality(TOOL_WRENCH)) if(istype(get_turf(src), /turf/space)) - to_chat(user, "You can't anchor something to empty space. Idiot.") + // to_chat(user, "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 return playsound(src, W.usesound, 100, 1) - to_chat(user, "You [anchored ? "un" : ""]anchor the brace.") + // to_chat(user, "You [anchored ? "un" : ""]anchor the brace.") + balloon_alert(user, "[anchored ? "Una" : "A"]nchored the brace") // CHOMPEdit - Changed to balloon alert anchored = !anchored if(anchored) @@ -500,7 +509,8 @@ if(usr.stat) return if (src.anchored) - to_chat(usr, "It is anchored in place!") + // to_chat(usr, "It is anchored in place!") + balloon_alert(usr, "It is anchored in place!") // CHOMPEdit - Changed to balloon alert return 0 src.set_dir(turn(src.dir, 270)) diff --git a/code/modules/mob/autowhisper.dm b/code/modules/mob/autowhisper.dm index 88e07df7a4..f1b1ffdde6 100644 --- a/code/modules/mob/autowhisper.dm +++ b/code/modules/mob/autowhisper.dm @@ -12,14 +12,15 @@ 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, "Autowhisper has been [autowhisper ? "enabled, [mes]" : "disabled, [mes]"].") + to_chat(src, "Autowhisper has been [autowhisper ? "enabled, [mes]" : "disabled, [mes]"].") // CHOMPEdit - Balloon alerts return else forced_psay = autowhisper - to_chat(src, "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"].") - + // to_chat(src, "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, "Autowhisper has been [autowhisper ? "enabled. You will now automatically whisper/subtle when using say/me" : "disabled"].") + // to_chat(src, "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() set name = "Autowhisper Mode" @@ -30,7 +31,8 @@ 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, "Your subtles have returned to the default setting.") + // to_chat(src, "Your subtles have returned to the default setting.") + balloon_alert(src, "Subtles returned to default setting") return if(choice == "Psay/Pme") if(autowhisper) @@ -42,4 +44,5 @@ forced_psay = TRUE to_chat(src, "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, "Your subtles have been set to [autowhisper_mode].") + // to_chat(src, "Your subtles have been set to [autowhisper_mode].") // CHOMPEdit - Balloon alerts + balloon_alert(src, "Subtles set to [autowhisper_mode]") diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm index 692f121ba8..c423df1ef2 100644 --- a/code/modules/mob/living/carbon/human/human_helpers.dm +++ b/code/modules/mob/living/carbon/human/human_helpers.dm @@ -8,9 +8,11 @@ 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!") + // 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 else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH) - to_chat(src, "\The [status[2]] is in the way!") + // to_chat(src, "\The [status[2]] is in the way!") + balloon_alert(src, "\The [status[2]] is in the way!") // CHOMPEdit - Changed to balloon alert return 0 /mob/living/carbon/human/can_force_feed(var/feeder, var/food, var/feedback = 1) @@ -19,9 +21,11 @@ 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!") + // 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 else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH) - to_chat(feeder, "\The [status[2]] is in the way!") + // to_chat(feeder, "\The [status[2]] is in the way!") + balloon_alert(feeder, "\The [status[2]] is in the way!") // CHOMPEdit - Changed to balloon alert return 0 /mob/living/carbon/human/proc/can_eat_status() diff --git a/code/modules/mob/living/carbon/taste.dm b/code/modules/mob/living/carbon/taste.dm index 150f67d955..a48846cab7 100644 --- a/code/modules/mob/living/carbon/taste.dm +++ b/code/modules/mob/living/carbon/taste.dm @@ -15,7 +15,7 @@ text_output = "nothing" 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, "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].")//no taste means there are too many tastes and not enough flavor. CHOMPEdit - Balloon alert last_taste_time = world.time last_taste_text = text_output @@ -67,4 +67,4 @@ calculate text size per text. intensity_desc = "the strong flavor of" out += "[intensity_desc] [taste_desc]" - return english_list(out, "something indescribable") \ No newline at end of file + return english_list(out, "something indescribable") diff --git a/code/modules/reagents/reagent_containers/_reagent_containers.dm b/code/modules/reagents/reagent_containers/_reagent_containers.dm index dba86fba0c..8d257b4600 100644 --- a/code/modules/reagents/reagent_containers/_reagent_containers.dm +++ b/code/modules/reagents/reagent_containers/_reagent_containers.dm @@ -22,7 +22,7 @@ if(!possible_transfer_amounts) src.verbs -= /obj/item/weapon/reagent_containers/verb/set_APTFT create_reagents(volume) - + if(starts_with) var/total_so_far = 0 for(var/string in starts_with) @@ -49,15 +49,18 @@ return 0 if(!target.reagents || !target.reagents.total_volume) - to_chat(user, "[target] is empty.") + // to_chat(user, "[target] is empty.") + balloon_alert(user, "[target] is empty.") // CHOMPEdit - Changed to balloon alert return 1 if(reagents && !reagents.get_free_space()) - to_chat(user, "[src] is full.") + // to_chat(user, "[src] is full.") + balloon_alert(user, "[src] is full.") // CHOMPEdit - Changed to balloon alert return 1 var/trans = target.reagents.trans_to_obj(src, target:amount_per_transfer_from_this) - to_chat(user, "You fill [src] with [trans] units of the contents of [target].") + // to_chat(user, "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 return 1 /obj/item/weapon/reagent_containers/proc/standard_splash_mob(var/mob/user, var/mob/target) // This goes into afterattack @@ -65,27 +68,33 @@ return if(!reagents || !reagents.total_volume) - to_chat(user, "[src] is empty.") + // to_chat(user, "[src] is empty.") + balloon_alert(user, "[src] is empty.") // CHOMPEdit - Changed to balloon alert return 1 if(target.reagents && !target.reagents.get_free_space()) - to_chat(user, "[target] is full.") + // to_chat(user, "[target] is full.") + balloon_alert(user, "\the [target] is full.") // CHOMPEdit - Changed to balloon alert return 1 var/contained = reagentlist() add_attack_logs(user,target,"Splashed with [src.name] containing [contained]") - user.visible_message("[target] has been splashed with something by [user]!", "You splash the solution onto [target].") + // user.visible_message("[target] has been splashed with something by [user]!", "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 reagents.splash(target, reagents.total_volume) return 1 /obj/item/weapon/reagent_containers/proc/self_feed_message(var/mob/user) - to_chat(user, "You eat \the [src]") + // to_chat(user, "You eat \the [src]") + balloon_alert(user, "You eat \the [src]") // CHOMPEdit - Changed to balloon alert /obj/item/weapon/reagent_containers/proc/other_feed_message_start(var/mob/user, var/mob/target) - user.visible_message("[user] is trying to feed [target] \the [src]!") + // user.visible_message("[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 /obj/item/weapon/reagent_containers/proc/other_feed_message_finish(var/mob/user, var/mob/target) - user.visible_message("[user] has fed [target] \the [src]!") + // user.visible_message("[user] has fed [target] \the [src]!") + balloon_alert_visible(user, "[user] has fed [target] \the [src]!") // CHOMPEdit - Changed to balloon alert /obj/item/weapon/reagent_containers/proc/feed_sound(var/mob/user) return @@ -95,26 +104,29 @@ return FALSE if(!reagents || !reagents.total_volume) - to_chat(user, "\The [src] is empty.") + // to_chat(user, "\The [src] is empty.") + balloon_alert(user, "\The [src] is empty.") // CHOMPEdit - Changed to balloon alert return TRUE 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!") + // 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!") return FALSE var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + // to_chat(user, "\The [blocked] is in the way!") + balloon_alert(user, "\The [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert return FALSE user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things - if(user == target) + if(user == target) self_feed_message(user) reagents.trans_to_mob(user, issmall(user) ? CEILING(amount_per_transfer_from_this/2, 1) : amount_per_transfer_from_this, CHEM_INGEST) feed_sound(user) return TRUE - + else other_feed_message_start(user, target) if(!do_mob(user, target)) @@ -132,13 +144,16 @@ return 0 if(!reagents || !reagents.total_volume) - to_chat(user, "[src] is empty.") + // to_chat(user, "[src] is empty.") + balloon_alert(usr, "[src] is empty.") // CHOMPEdit - Changed to balloon alert return 1 if(!target.reagents.get_free_space()) - to_chat(user, "[target] is full.") + // to_chat(user, "[target] is full.") + balloon_alert(usr, "[target] is full.") // CHOMPEdit - Changed to balloon alert return 1 var/trans = reagents.trans_to(target, amount_per_transfer_from_this) - to_chat(user, "You transfer [trans] units of the solution to [target].") + // to_chat(user, "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. return 1 diff --git a/code/modules/reagents/reagent_containers/borghypo.dm b/code/modules/reagents/reagent_containers/borghypo.dm index 98374ef7e1..ebe5e0a837 100644 --- a/code/modules/reagents/reagent_containers/borghypo.dm +++ b/code/modules/reagents/reagent_containers/borghypo.dm @@ -70,14 +70,16 @@ return if(!reagent_volumes[reagent_ids[mode]]) - to_chat(user, "The injector is empty.") + // to_chat(user, "The injector is empty.") + balloon_alert(user, "The injector is empty.") // CHOMPEdit - Changed to balloon alert 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, "\The [H] is missing that limb!") + // to_chat(user, "\The [H] is missing that limb!") + balloon_alert("\The [H] is missing that limb.") // CHOMPEdit - Changed to balloon alert 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) @@ -86,8 +88,11 @@ */ if(M.can_inject(user, 1, ignore_thickness = bypass_protection)) - to_chat(user, "You inject [M] with the injector.") - to_chat(M, "You feel a tiny prick!") + // CHOMPEdit - Changed to balloon alert + // to_chat(user, "You inject [M] with the injector.") + // to_chat(M, "You feel a tiny prick!") + balloon_alert(user, "You inject [M] with the injector.") + balloon_alert(user, "You feel a tiny prick!") if(M.reagents) var/t = min(amount_per_transfer_from_this, reagent_volumes[reagent_ids[mode]]) @@ -118,7 +123,8 @@ playsound(src, 'sound/effects/pop.ogg', 50, 0) mode = t var/datum/reagent/R = SSchemistry.chemical_reagents[reagent_ids[mode]] - to_chat(usr, "Synthesizer is now producing '[R.name]'.") + // to_chat(usr, "Synthesizer is now producing '[R.name]'.") + balloon_alert(usr, "Synthesizer producing is now producing '[R.name]'") /obj/item/weapon/reagent_containers/borghypo/examine(mob/user) . = ..() @@ -195,11 +201,13 @@ return if(!target.reagents.get_free_space()) - to_chat(user, "[target] is full.") + // to_chat(user, "[target] is full.") + balloon_alert(user, "[target] is full.") // CHOMPEdit - Changed to balloon alert 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, "You transfer [t] units of the solution to [target].") + // to_chat(user, "You transfer [t] units of the solution to [target].") + balloon_alert(user, "Transfered [t] units to [target].") // CHOMPEdit - Changed to balloon alert return diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index c7427a97f5..98ea23c688 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -77,10 +77,12 @@ /obj/item/weapon/reagent_containers/glass/attack_self() ..() if(is_open_container()) - to_chat(usr, "You put the lid on \the [src].") + // to_chat(usr, "You put the lid on \the [src].") + balloon_alert(usr, "Lid put on \the [src]") flags ^= OPENCONTAINER else - to_chat(usr, "You take the lid off \the [src].") + // to_chat(usr, "You take the lid off \the [src].") + balloon_alert(usr, "Lid removed off \the [src]") // CHOMPEdit - Changed to ballopn alert flags |= OPENCONTAINER update_icon() @@ -102,7 +104,8 @@ return ..() /obj/item/weapon/reagent_containers/glass/self_feed_message(var/mob/user) - to_chat(user, "You swallow a gulp from \the [src].") + // to_chat(user, "You swallow a gulp from \the [src].") + balloon_alert(user, "Swallowed from \the [src]") // CHOMPEdit - Changed to balloon alert /obj/item/weapon/reagent_containers/glass/afterattack(var/obj/target, var/mob/user, var/proximity) if(!is_open_container() || !proximity) //Is the container open & are they next to whatever they're clicking? @@ -118,7 +121,8 @@ if(standard_splash_mob(user,target)) return 1 if(reagents && reagents.total_volume) - to_chat(user, "You splash the solution onto [target].") //They are on harm intent, aka wanting to spill it. + // to_chat(user, "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 ..() @@ -129,17 +133,20 @@ if(length(tmp_label) > 50) to_chat(user, "The label can be at most 50 characters long.") else if(length(tmp_label) > 10) - to_chat(user, "You set the label.") + // to_chat(user, "You set the label.") + balloon_alert(user, "Label set.") // CHOMPEdit - Changed to balloon alert label_text = tmp_label update_name_label() else - to_chat(user, "You set the label to \"[tmp_label]\".") + // to_chat(user, "You set the label to \"[tmp_label]\".") + balloon_alert(user, "Label set to \"[tmp_label]\"") // CHOMPEdit - Changed to balloon alert label_text = tmp_label update_name_label() if(istype(W,/obj/item/weapon/storage/bag)) ..() if(W && W.w_class <= w_class && (flags & OPENCONTAINER) && user.a_intent != I_HELP) - to_chat(user, "You dip \the [W] into \the [src].") + // to_chat(user, "You dip \the [W] into \the [src].") + balloon_alert(user, "[W] dipped into \the [src].") // CHOMPEdit - Changed to balloon alert reagents.touch_obj(W, reagents.total_volume) /obj/item/weapon/reagent_containers/glass/proc/update_name_label() @@ -300,7 +307,8 @@ qdel(src) return else if(D.has_tool_quality(TOOL_WIRECUTTER)) - to_chat(user, "You cut a big hole in \the [src] with \the [D]. It's kinda useless as a bucket now.") + // to_chat(user, "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 user.put_in_hands(new /obj/item/clothing/head/helmet/bucket) user.drop_from_inventory(src) qdel(src) @@ -310,16 +318,19 @@ if (M.use(1)) var/obj/item/weapon/secbot_assembly/edCLN_assembly/B = new /obj/item/weapon/secbot_assembly/edCLN_assembly B.loc = get_turf(src) - to_chat(user, "You armed the robot frame.") + // to_chat(user, "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, "You need one sheet of metal to arm the robot frame.") + // to_chat(user, "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/weapon/mop) || istype(D, /obj/item/weapon/soap) || istype(D, /obj/item/weapon/reagent_containers/glass/rag)) //VOREStation Edit - "Allows soap and rags to be used on buckets" if(reagents.total_volume < 1) - to_chat(user, "\The [src] is empty!") + // to_chat(user, "\The [src] is empty!") + balloon_alert(user, "\The [src] is empty!") // CHOMPEdit - Changed to balloon alert else reagents.trans_to_obj(D, 5) to_chat(user, "You wet \the [D] in \the [src].") diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index 70cb84d44d..bd215ada8c 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -31,7 +31,8 @@ /obj/item/weapon/reagent_containers/hypospray/attack(mob/living/M as mob, mob/user as mob) if(!reagents.total_volume) - to_chat(user, "[src] is empty.") + // to_chat(user, "[src] is empty.") + balloon_alert(user, "\The [src] is empty.") // CHOMPEdit - Changed to balloon alert return if (!istype(M)) return @@ -40,7 +41,8 @@ if(istype(H)) var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting) if(!affected) - to_chat(user, "\The [H] is missing that limb!") + // to_chat(user, "\The [H] is missing that limb!") + balloon_alert(user, "\The [H] is missing that limb!") // CHOMPEdit - Changed to balloon alert 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) @@ -50,16 +52,20 @@ //VOREStation Add Start - Adds Prototype Hypo functionality if(H != user && prototype) - to_chat(user, "You begin injecting [H] with \the [src].") - to_chat(H, " [user] is trying to inject you with \the [src]!") + // to_chat(user, "You begin injecting [H] with \the [src].") + // to_chat(H, " [user] is trying to inject you with \the [src]!") + balloon_alert(user, "Injecting [H] with \the [src]") // CHOMPEdit - Changed to balloon alert + 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 if(H != user) - if(H.a_intent != I_HELP) - to_chat(user, "[H] is resisting your attempt to inject them with \the [src].") - to_chat(H, " [user] is trying to inject you with \the [src]!") + if(H.a_intent != I_HELP) // CHOMPEdit - Changed to balloon alert + // to_chat(user, "[H] is resisting your attempt to inject them with \the [src].") + // to_chat(H, " [user] is trying to inject you with \the [src]!") + 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)) return @@ -71,9 +77,11 @@ if(!istype(H) || !istype(user)) return FALSE - user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) - 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) // 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!")) + balloon_alert(user, "Injected \the [H] with \the [src]") + balloon_alert(H, "You feel a tiny prick!") if(hyposound) playsound(src, hyposound, 25) @@ -109,7 +117,8 @@ loaded_vial.update_icon() user.put_in_hands(loaded_vial) loaded_vial = null - to_chat(user, "You remove the vial from the [src].") + // to_chat(user, "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) return @@ -127,7 +136,8 @@ /obj/item/weapon/reagent_containers/hypospray/vial/attackby(obj/item/weapon/W, mob/user as mob) if(istype(W, /obj/item/weapon/reagent_containers/glass/beaker/vial)) if(!loaded_vial) - user.visible_message("[user] begins loading [W] into \the [src].","You start loading [W] into \the [src].") + // user.visible_message("[user] begins loading [W] into \the [src].","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 if(!do_after(user,30) || loaded_vial || !(W in user)) return 0 if(W.is_open_container()) @@ -138,11 +148,13 @@ loaded_vial = W reagents.maximum_volume = loaded_vial.reagents.maximum_volume loaded_vial.reagents.trans_to_holder(reagents,volume) - user.visible_message("[user] has loaded [W] into \the [src].","You have loaded [W] into \the [src].") + // user.visible_message("[user] has loaded [W] into \the [src].","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 update_icon() playsound(src, 'sound/weapons/empty.ogg', 50, 1) else - to_chat(user, "\The [src] already has a vial.") + // to_chat(user, "\The [src] already has a vial.") + balloon_alert("\The [src] already has a vial.") // CHOMPEdit - Changed to balloon alert else ..() diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index 7f4eb74629..f0bb2fb47f 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -31,10 +31,12 @@ return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + // to_chat(user, "\The [blocked] is in the way!") + balloon_alert(user, "\The [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert return - to_chat(M, "You swallow \the [src].") + // to_chat(M, "You swallow \the [src].") + balloon_alert(user, "Swallowed \the [src]") // CHOMPEdit - Changed to balloon alert M.drop_from_inventory(src) //icon update if(reagents.total_volume) reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST) @@ -45,21 +47,25 @@ 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!") + // 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 return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + // to_chat(user, "\The [blocked] is in the way!") + balloon_alert(user, "\The [blocked] is in the way!") // CHOMPEdit - Changed to balloon alert return - user.visible_message("[user] attempts to force [M] to swallow \the [src].") + // user.visible_message("[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 user.setClickCooldown(user.get_attack_speed(src)) if(!do_mob(user, M)) return user.drop_from_inventory(src) //icon update - user.visible_message("[user] forces [M] to swallow \the [src].") + // user.visible_message("[user] forces [M] to swallow \the [src].") + balloon_alert_visible("[user] forces [M] to swallow \the [src].") // CHOMPEdit - Changed to balloon alert var/contained = reagentlist() add_attack_logs(user,M,"Fed a pill containing [contained]") @@ -77,16 +83,18 @@ if(target.is_open_container() && target.reagents) if(!target.reagents.total_volume) - to_chat(user, "[target] is empty. Can't dissolve \the [src].") + // to_chat(user, "[target] is empty. Can't dissolve \the [src].") + balloon_alert(user, "[target] is empty.") // CHOMPEdit - Changed to balloon alert return - to_chat(user, "You dissolve \the [src] in [target].") + // to_chat(user, "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 add_attack_logs(user,null,"Spiked [target.name] with a pill containing [reagentlist()]") reagents.trans_to(target, reagents.total_volume) - for(var/mob/O in viewers(2, user)) + /* for(var/mob/O in viewers(2, user)) // CHOMPEdit - balloon_alert_visible handles this O.show_message("[user] puts something in \the [target].", 1) - + */ qdel(src) return @@ -94,7 +102,8 @@ /obj/item/weapon/reagent_containers/pill/attackby(obj/item/weapon/W as obj, mob/user as mob) if(is_sharp(W)) var/obj/item/weapon/reagent_containers/powder/J = new /obj/item/weapon/reagent_containers/powder(src.loc) - user.visible_message("[user] gently cuts up [src] with [W]!") + // user.visible_message("[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 playsound(src.loc, 'sound/effects/chop.ogg', 50, 1) if(reagents) @@ -104,7 +113,8 @@ if(istype(W, /obj/item/weapon/card/id)) var/obj/item/weapon/reagent_containers/powder/J = new /obj/item/weapon/reagent_containers/powder(src.loc) - user.visible_message("[user] clumsily chops up [src] with [W]!") + // user.visible_message("[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 playsound(src.loc, 'sound/effects/chop.ogg', 50, 1) if(reagents) diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 4d8720ed9e..e4c371f165 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -35,7 +35,8 @@ return if(reagents.total_volume < amount_per_transfer_from_this) - to_chat(user, "\The [src] is empty!") + // to_chat(user, "\The [src] is empty!") + balloon_alert(user, "\The [src] is empty!") // CHOMPEdit - Changed to balloon alert return Spray_at(A, user, proximity) @@ -75,7 +76,8 @@ 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, "You adjusted the pressure nozzle. You'll now use [amount_per_transfer_from_this] units per spray.") + // to_chat(user, "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 /obj/item/weapon/reagent_containers/spray/examine(mob/user) . = ..() @@ -91,7 +93,8 @@ 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, "You empty \the [src] onto the floor.") + // to_chat(usr, "You empty \the [src] onto the floor.") + balloon_alert(usr, "Empted \the [src] onto the floor.") // CHOMPEdit - Changed to balloon alert reagents.splash(usr.loc, reagents.total_volume) //space cleaner @@ -138,7 +141,8 @@ /obj/item/weapon/reagent_containers/spray/pepper/attack_self(var/mob/user) safety = !safety - to_chat(usr, "You switch the safety [safety ? "on" : "off"].") + // to_chat(usr, "You switch the safety [safety ? "on" : "off"].") + balloon_alert(usr, "Safety [safety ? "on" : "off"].") // CHOMPEdit - Changed to balloon alert /obj/item/weapon/reagent_containers/spray/pepper/Spray_at(atom/A as mob|obj) if(safety) @@ -245,7 +249,8 @@ /obj/item/weapon/reagent_containers/spray/chemsprayer/hosed/AltClick(mob/living/carbon/user) if(++spray_particles > 3) spray_particles = 1 - to_chat(user, "You turn the dial on \the [src] to [spray_particles].") + // to_chat(user, "You turn the dial on \the [src] to [spray_particles].") + balloon_alert(user, "Dial turned to [spray_particles].") return /obj/item/weapon/reagent_containers/spray/chemsprayer/hosed/CtrlClick(var/mob/user) @@ -264,7 +269,8 @@ var/list/the_targets = list(T, T1, T2) if(src.reagents.total_volume < 1) - to_chat(usr, "\The [src] is empty.") + // to_chat(usr, "\The [src] is empty.") + balloon_alert(usr, "\The [src] is empty.") return if(!heavy_spray) diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm index 28b4f7813f..16d78b3564 100644 --- a/code/modules/reagents/reagent_containers/syringes.dm +++ b/code/modules/reagents/reagent_containers/syringes.dm @@ -268,7 +268,7 @@ var/obj/item/organ/external/affecting = H.get_organ(target_zone) if (!affecting || affecting.is_stump()) - to_chat(user, "They are missing that limb!") + balloon_alert(user, "They are missing that limb!") // CHOMPEdit - Changed to balloon_alert return var/hit_area = affecting.name @@ -286,13 +286,15 @@ return - user.visible_message("[user] stabs [target] in \the [hit_area] with [src.name]!") + // user.visible_message("[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 if(affecting.take_damage(3)) H.UpdateDamageIcon() else - user.visible_message("[user] stabs [target] with [src.name]!") + // user.visible_message("[user] stabs [target] with [src.name]!") + balloon_alert_visible("Stabs [user] in \the [target] with [src.name]!") // CHOMPEdit - Changed to balloon alert target.take_organ_damage(3)// 7 is the same as crowbar punch diff --git a/code/modules/reagents/reagent_containers/syringes_vr.dm b/code/modules/reagents/reagent_containers/syringes_vr.dm index 1e69c63322..91289269f3 100644 --- a/code/modules/reagents/reagent_containers/syringes_vr.dm +++ b/code/modules/reagents/reagent_containers/syringes_vr.dm @@ -74,7 +74,8 @@ switch(mode) if(SYRINGE_CAPPED) mode = SYRINGE_DRAW - to_chat(user,"You uncap the syringe.") + // to_chat(user,"You uncap the syringe.") + balloon_alert(user, "[src] uncapped") // CHOMPEdit - Changed to balloon_alert if(SYRINGE_DRAW) mode = SYRINGE_INJECT if(SYRINGE_INJECT) diff --git a/code/modules/surgery/bones.dm b/code/modules/surgery/bones.dm index e3cdbc52a1..db8af8e8f1 100644 --- a/code/modules/surgery/bones.dm +++ b/code/modules/surgery/bones.dm @@ -34,6 +34,7 @@ if (affected.stage == 0) user.visible_message("[user] starts applying medication to the damaged bones in [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50) ..() @@ -41,12 +42,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] applies some [tool] to [target]'s bone in [affected.name]", \ "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 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("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!" , \ "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 /////////////////////////////////////////////////////////////// // Bone Setting Surgery @@ -75,6 +78,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] is beginning to set the bone in [target]'s [affected.name] in place with \the [tool]." , \ "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 target.custom_pain("The pain in your [affected.name] is going to make you pass out!", 50) ..() @@ -83,16 +87,19 @@ if (affected.status & ORGAN_BROKEN) user.visible_message("[user] sets the bone in [target]'s [affected.name] in place with \the [tool].", \ "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 affected.stage = 2 else user.visible_message("[user] sets the bone in [target]'s [affected.name] in the WRONG place with \the [tool].", \ "You set the bone in [target]'s [affected.name] 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 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("[user]'s hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!" , \ "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 affected.createwound(BRUISE, 5) /////////////////////////////////////////////////////////////// @@ -121,18 +128,21 @@ /datum/surgery_step/mend_skull/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] is beginning to piece together [target]'s skull with \the [tool]." , \ "You are beginning to piece together [target]'s skull with \the [tool].") + user.balloon_alert_visible("Pieces the skull together", "Piecing skull together.") // CHOMPEdit ..() /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("[user] sets [target]'s skull with \the [tool]." , \ "You set [target]'s skull with \the [tool].") + user.balloon_alert_visible("Sets the skull back.", "Skull set back.") // CHOMPEdit 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("[user]'s hand slips, damaging [target]'s face with \the [tool]!" , \ "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 var/obj/item/organ/external/head/h = affected h.createwound(BRUISE, 10) h.disfigured = 1 @@ -167,12 +177,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts to finish mending the damaged bones in [target]'s [affected.name] with \the [tool].", \ "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 ..() /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("[user] has mended the damaged bones in [target]'s [affected.name] with \the [tool]." , \ "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 affected.status &= ~ORGAN_BROKEN affected.stage = 0 @@ -180,6 +192,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!" , \ "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 /////////////////////////////////////////////////////////////// // Bone Clamp Surgery @@ -210,6 +223,7 @@ if (affected.stage == 0) user.visible_message("[user] starts repairing the damaged bones in [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50) ..() @@ -217,10 +231,12 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] sets the bone in [target]'s [affected.name] with \the [tool].", \ "You sets [target]'s bone in [affected.name] with \the [tool].") + user.balloon_alert_visible("Sets the bone back in.", "Bone set in.") // CHOMPEdit 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("[user]'s hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!" , \ "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 affected.createwound(BRUISE, 5) diff --git a/code/modules/surgery/encased.dm b/code/modules/surgery/encased.dm index 356f3471c7..642fb71e9a 100644 --- a/code/modules/surgery/encased.dm +++ b/code/modules/surgery/encased.dm @@ -44,6 +44,7 @@ user.visible_message("[user] begins to cut through [target]'s [affected.encased] with \the [tool].", \ "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 60) ..() @@ -54,6 +55,7 @@ user.visible_message("[user] has cut [target]'s [affected.encased] open with \the [tool].", \ "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 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) @@ -63,6 +65,7 @@ user.visible_message("[user]'s hand slips, cracking [target]'s [affected.encased] with \the [tool]!" , \ "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 affected.createwound(CUT, 20) affected.fracture() @@ -96,6 +99,7 @@ var/msg = "[user] starts to force open the [affected.encased] in [target]'s [affected.name] with \the [tool]." var/self_msg = "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 40) ..() @@ -106,6 +110,7 @@ var/msg = "[user] forces open [target]'s [affected.encased] with \the [tool]." var/self_msg = "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 affected.open = 3 @@ -117,6 +122,7 @@ var/msg = "[user]'s hand slips, cracking [target]'s [affected.encased]!" var/self_msg = "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 affected.createwound(BRUISE, 20) affected.fracture() @@ -150,6 +156,7 @@ var/msg = "[user] starts bending [target]'s [affected.encased] back into place with \the [tool]." var/self_msg = "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 100) ..() @@ -161,6 +168,7 @@ var/msg = "[user] bends [target]'s [affected.encased] back into place with \the [tool]." var/self_msg = "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 affected.open = 2.5 @@ -172,6 +180,7 @@ var/msg = "[user]'s hand slips, bending [target]'s [affected.encased] the wrong way!" var/self_msg = "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 affected.createwound(BRUISE, 20) affected.fracture() @@ -209,6 +218,7 @@ var/msg = "[user] starts applying \the [tool] to [target]'s [affected.encased]." var/self_msg = "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 100) ..() @@ -220,6 +230,7 @@ var/msg = "[user] applied \the [tool] to [target]'s [affected.encased]." var/self_msg = "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 affected.open = 2 @@ -251,6 +262,7 @@ user.visible_message("[user] begins to open [target]'s [affected.encased] with \the [tool].", \ "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 60) ..() @@ -261,6 +273,7 @@ user.visible_message("[user] has cut [target]'s [affected.encased] wide open with \the [tool].", \ "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 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) @@ -270,6 +283,7 @@ user.visible_message("[user]'s hand slips, searing [target]'s [affected.encased] with \the [tool]!" , \ "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 affected.createwound(CUT, 20) affected.createwound(BURN, 15) @@ -302,6 +316,7 @@ var/msg = "[user] starts sealing \the [target]'s [affected.encased] with \the [tool]." var/self_msg = "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 target.custom_pain("Something hurts horribly in your [affected.name]!", 100) ..() @@ -313,5 +328,6 @@ var/msg = "[user] sealed \the [target]'s [affected.encased] with \the [tool]." var/self_msg = "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 affected.open = 2 diff --git a/code/modules/surgery/external_repair.dm b/code/modules/surgery/external_repair.dm index db010b5db1..fe93cfc0cf 100644 --- a/code/modules/surgery/external_repair.dm +++ b/code/modules/surgery/external_repair.dm @@ -62,12 +62,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] begins scanning [target]'s [affected] with \the [tool].", \ "You begin scanning [target]'s [affected] with \the [tool].") + user.balloon_alert_visible("Begins scanning [target]'s [affected]", "Scaning \the [affected]") // CHOMPEdit ..() /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("[user] finishes scanning [target]'s [affected].", \ "You finish scanning [target]'s [affected].") + user.balloon_alert_visible("Finishes scanning [target]'s [affected]", "Finished scanning \the [affected]") // CHOMPEdit if(affected.brute_dam) to_chat(user, "The muscle in [target]'s [affected] is notably bruised.") if(affected.status & ORGAN_BROKEN) @@ -81,6 +83,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, dropping \the [tool] onto [target]'s [affected]!" , \ "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 affected.createwound(BRUISE, 10) ////////////////////////////////////////////////////////////////// @@ -114,13 +117,16 @@ if(istype(tool, /obj/item/weapon/tape_roll) || istype(tool, /obj/item/taperoll)) user.visible_message("[user] begins taping up [target]'s [affected] with \the [tool].", \ "You begin taping up [target]'s [affected] with \the [tool].") + user.balloon_alert_visible("Begins taping up \the [target]", "Taping up \the [affected]") // CHOMPEdit affected.jostle_bone(10) else if(istype(tool, /obj/item/weapon/surgical/hemostat) || istype(tool, /obj/item/weapon/surgical/FixOVein)) user.visible_message("[user] begins mending the charred blood vessels in [target]'s [affected] with \the [tool].", \ "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 else user.visible_message("[user] begins coating the charred tissue in [target]'s [affected] with \the [tool].", \ "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 ..() /datum/surgery_step/repairflesh/repair_burns/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) @@ -128,6 +134,7 @@ if(istype(tool, /obj/item/weapon/tape_roll) || istype(tool, /obj/item/taperoll)) user.visible_message("[user] finishes taping up [target]'s [affected] with \the [tool].", \ "You finish taping up [target]'s [affected] with \the [tool].") + user.balloon_alert_visible("Tapes up \the [affected]", "Taped up \the [affected]") // CHOMPEdit affected.createwound(BRUISE, 10) affected.heal_damage(0, 25, 0, 0) if(!(affected.burn_dam)) @@ -141,6 +148,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, tearing up [target]'s [affected] with \the [tool].", \ "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 affected.createwound(BRUISE, 10) affected.createwound(CUT, 5) if(istype(tool, /obj/item/stack) && prob(30)) @@ -179,13 +187,16 @@ if(istype(tool, /obj/item/weapon/tape_roll) || istype(tool, /obj/item/taperoll)) user.visible_message("[user] begins taping up [target]'s [affected] with \the [tool].", \ "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 affected.jostle_bone(10) else if(istype(tool, /obj/item/weapon/surgical/FixOVein) || istype(tool, /obj/item/weapon/surgical/bonesetter)) user.visible_message("[user] begins mending the torn tissue in [target]'s [affected] with \the [tool].", \ "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 else user.visible_message("[user] begins coating the tissue in [target]'s [affected] with \the [tool].", \ "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 ..() /datum/surgery_step/repairflesh/repair_brute/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) @@ -193,6 +204,7 @@ if(istype(tool, /obj/item/weapon/tape_roll) || istype(tool, /obj/item/taperoll)) user.visible_message("[user] finishes taping up [target]'s [affected] with \the [tool].", \ "You finish taping up [target]'s [affected] with \the [tool].") + user.balloon_alert_visible("Tapes up \the [affected]", "Taped up \the [affected]") // CHOMPEdit affected.createwound(BRUISE, 10) affected.heal_damage(25, 0, 0, 0) if(!(affected.brute_dam)) @@ -206,6 +218,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, tearing up [target]'s [affected] with \the [tool].", \ "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 affected.createwound(BRUISE, 10) affected.createwound(CUT, 5) if(istype(tool, /obj/item/stack) && prob(30)) diff --git a/code/modules/surgery/face.dm b/code/modules/surgery/face.dm index 318b058208..a6b186c76f 100644 --- a/code/modules/surgery/face.dm +++ b/code/modules/surgery/face.dm @@ -40,17 +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("[user] starts to cut open [target]'s face and neck with \the [tool].", \ "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 ..() /datum/surgery_step/generic/cut_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has cut open [target]'s face and neck with \the [tool]." , \ " 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 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("[user]'s hand slips, slicing [target]'s throat wth \the [tool]!" , \ + user.visible_message("[user]'s hand slips, slicing [target]'s throat with \the [tool]!" , \ "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 affected.createwound(CUT, 60) target.AdjustLosebreath(10) @@ -75,16 +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("[user] starts mending [target]'s vocal cords with \the [tool].", \ "You start mending [target]'s vocal cords with \the [tool].") + user.balloon_alert_visible("Starts mending [target]'s vocal cords.", "Mending vocal cords.") // CHOMPEdit ..() /datum/surgery_step/face/mend_vocal/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] mends [target]'s vocal cords with \the [tool].", \ "You mend [target]'s vocal cords with \the [tool].") + user.balloon_alert_visible("[target]'s vocal cords mended", "Vocal cords mended") // CHOMPEdit 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("[user]'s hand slips, clamping [target]'s trachea shut for a moment with \the [tool]!", \ - "Your hand slips, clamping [user]'s trachea shut for a moment with \the [tool]!") + "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 target.AdjustLosebreath(10) /////////////////////////////////////////////////////////////// @@ -109,17 +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("[user] starts pulling the skin on [target]'s face back in place with \the [tool].", \ "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 ..() /datum/surgery_step/face/fix_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] pulls the skin on [target]'s face back in place with \the [tool].", \ "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 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("[user]'s hand slips, tearing skin on [target]'s face with \the [tool]!", \ "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 target.apply_damage(10, BRUTE, affected, sharp = TRUE, sharp = TRUE) /////////////////////////////////////////////////////////////// @@ -144,12 +153,14 @@ /datum/surgery_step/face/cauterize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] is beginning to cauterize the incision on [target]'s face and neck with \the [tool]." , \ "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 ..() /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("[user] cauterizes the incision on [target]'s face and neck with \the [tool].", \ "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 affected.open = 0 affected.status &= ~ORGAN_BLEEDING if (target.op_stage.face == 3) @@ -161,4 +172,5 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, leaving a small burn on [target]'s face with \the [tool]!", \ "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 target.apply_damage(4, BURN, affected) diff --git a/code/modules/surgery/generic.dm b/code/modules/surgery/generic.dm index 35e101dcbb..be728ace6d 100644 --- a/code/modules/surgery/generic.dm +++ b/code/modules/surgery/generic.dm @@ -50,12 +50,14 @@ user.visible_message("[user] starts the incision on [target]'s [affected.name] with \the [tool].", \ "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 ..() /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("[user] has made an incision on [target]'s [affected.name] with \the [tool].", \ "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 affected.open = 1 if(istype(target) && target.should_have_organ(O_HEART)) @@ -67,6 +69,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, slicing open [target]'s [affected.name] in the wrong place with \the [tool]!", \ "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 affected.createwound(CUT, 10) /////////////////////////////////////////////////////////////// @@ -96,6 +99,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts the bloodless incision on [target]'s [affected.name] with \the [tool].", \ "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 target.custom_pain("You feel a horrible, searing pain in your [affected.name]!", 50) ..() @@ -115,9 +119,11 @@ affected.organ_clamp() user.visible_message("[user] has made a bloodless incision on [target]'s [affected.name] with \the [tool].", \ "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 else user.visible_message("[user] has made an incision on [target]'s [affected.name] with \the [tool], but blood is still escaping from the wound.", \ "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 //Could be cleaner ... spread_germs_to_organ(affected, user) @@ -126,6 +132,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips as the blade sputters, searing a long gash in [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 7.5) affected.createwound(BURN, 12.5) @@ -154,6 +161,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts to construct a prepared incision on and within [target]'s [affected.name] with \the [tool].", \ "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 target.custom_pain("You feel a horrible, searing pain in your [affected.name] as it is pushed apart!", 50) ..() @@ -161,6 +169,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] has constructed a prepared incision on and within [target]'s [affected.name] with \the [tool].", \ "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 affected.open = 1 if(istype(target) && target.should_have_organ(O_HEART)) @@ -174,6 +183,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand jolts as the system sparks, ripping a gruesome hole in [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 20) affected.createwound(BURN, 15) @@ -201,6 +211,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts clamping bleeders in [target]'s [affected.name] with \the [tool].", \ "You start clamping bleeders in [target]'s [affected.name] with \the [tool].") + user.balloon_alert_visible("Starts clamping bleeders", "Clamping bleders") // CHOMPEdit target.custom_pain("The pain in your [affected.name] is maddening!", 40) ..() @@ -208,13 +219,15 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] clamps bleeders in [target]'s [affected.name] with \the [tool].", \ "You clamp bleeders in [target]'s [affected.name] with \the [tool].") + user.balloon_alert_visible("Clamps bleeders", "Clamped bleeders") // CHOMPEdit affected.organ_clamp() spread_germs_to_organ(affected, user) /datum/surgery_step/generic/clamp_bleeders/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("[user]'s hand slips, tearing blood vessals and causing massive bleeding in [target]'s [affected.name] with \the [tool]!", \ + user.visible_message("[user]'s hand slips, tearing blood vessels and causing massive bleeding in [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 10) /////////////////////////////////////////////////////////////// @@ -242,13 +255,19 @@ 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 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]." + msgBall = "Starts to separate the ribcage and rearrange the organs in [target]'s torso." + 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" user.visible_message("[msg]", "[self_msg]") + user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit target.custom_pain("It feels like the skin on your [affected.name] is on fire!", 40) ..() @@ -256,26 +275,40 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) var/msg = "[user] keeps the incision open on [target]'s [affected.name] with \the [tool]." var/self_msg = "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]" if (target_zone == BP_TORSO) msg = "[user] keeps the ribcage open on [target]'s torso with \the [tool]." self_msg = "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." if (target_zone == BP_GROIN) msg = "[user] keeps the incision open on [target]'s lower abdomen with \the [tool]." self_msg = "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." user.visible_message(msg, self_msg) + user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit 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 = "[user]'s hand slips, tearing the edges of the incision on [target]'s [affected.name] with \the [tool]!" var/self_msg = "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." if (target_zone == BP_TORSO) msg = "[user]'s hand slips, damaging several organs in [target]'s torso with \the [tool]!" self_msg = "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." if (target_zone == BP_GROIN) msg = "[user]'s hand slips, damaging several organs in [target]'s lower abdomen with \the [tool]!" self_msg = "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." user.visible_message(msg, self_msg) + user.balloon_alert_visible(msgBall, self_msgBall) // CHOMPEdit target.apply_damage(12, BRUTE, affected, sharp = TRUE) /////////////////////////////////////////////////////////////// @@ -303,6 +336,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] is beginning to cauterize the incision on [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("Your [affected.name] is being burned!", 40) ..() @@ -310,6 +344,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] cauterizes the incision on [target]'s [affected.name] with \the [tool].", \ "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 affected.open = 0 affected.germ_level = 0 affected.status &= ~ORGAN_BLEEDING @@ -318,6 +353,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, leaving a small burn on [target]'s [affected.name] with \the [tool]!", \ "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 target.apply_damage(3, BURN, affected) /////////////////////////////////////////////////////////////// @@ -349,6 +385,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] is beginning to amputate [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("Your [affected.amputation_point] is being ripped apart!", 100) ..() @@ -356,11 +393,13 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] amputates [target]'s [affected.name] at the [affected.amputation_point] with \the [tool].", \ "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 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("[user]'s hand slips, sawing through the bone in [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 30) affected.fracture() diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 4a50e04a69..b20c8a1ffb 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -40,6 +40,7 @@ var/obj/item/organ/external/chest/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, scraping around inside [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 20) /////////////////////////////////////////////////////////////// @@ -66,6 +67,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts making some space inside [target]'s [get_cavity(affected)] cavity with \the [tool].", \ "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 target.custom_pain("The pain in your chest is living hell!",1) affected.cavity = 1 ..() @@ -74,6 +76,7 @@ var/obj/item/organ/external/chest/affected = target.get_organ(target_zone) user.visible_message("[user] makes some space inside [target]'s [get_cavity(affected)] cavity with \the [tool].", \ "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 /////////////////////////////////////////////////////////////// // Cavity Closing Surgery @@ -101,6 +104,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts mending [target]'s [get_cavity(affected)] cavity wall with \the [tool].", \ "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 target.custom_pain("The pain in your chest is living hell!",1) affected.cavity = 0 ..() @@ -108,7 +112,8 @@ /datum/surgery_step/cavity/close_space/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/obj/item/organ/external/chest/affected = target.get_organ(target_zone) user.visible_message("[user] mends [target]'s [get_cavity(affected)] cavity walls with \the [tool].", \ - " You mend[target]'s [get_cavity(affected)] cavity walls with \the [tool]." ) + " 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 /////////////////////////////////////////////////////////////// // Item Implantation Surgery @@ -151,6 +156,7 @@ tool = G.wrapped user.visible_message("[user] starts putting \the [tool] inside [target]'s [get_cavity(affected)] cavity.", \ "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 target.custom_pain("The pain in your chest is living hell!",1) ..() @@ -164,6 +170,7 @@ user.drop_item() user.visible_message("[user] puts \the [tool] inside [target]'s [get_cavity(affected)] cavity.", \ "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 if (tool.w_class > get_max_wclass(affected)/2 && prob(50) && (affected.robotic < ORGAN_ROBOT)) to_chat(user, " You tear some blood vessels trying to fit such a big object in this cavity.") var/datum/wound/internal_bleeding/I = new (10) @@ -202,6 +209,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts poking around inside [target]'s [affected.name] with \the [tool].", \ "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 target.custom_pain("The pain in your [affected.name] is living hell!",1) ..() @@ -214,11 +222,13 @@ if(isnull(obj)) //They clicked cancel. user.visible_message("[user] takes \the [tool] out of [target]'s [affected.name].", \ "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 return if(!do_mob(user, target, 1)) //They moved away to_chat(user, "You must remain close to and keep focused on your patient to conduct surgery.") user.visible_message("[user] fails to remove anything from [target]'s [affected.name] with \the [tool]!", \ "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 return if(istype(obj,/obj/item/weapon/implant)) @@ -226,14 +236,17 @@ if (!imp.islegal()) //ILLEGAL IMPLANT ALERT!!!!!!!!!! user.visible_message("[user] seems to be intently working on something within [target]'s [affected.name] with \the [tool]!", \ "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 if(!do_after(user, min_duration, target)) user.visible_message("[user] fails to remove anything from [target]'s [affected.name] with \the [tool]!", \ "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 return user.visible_message("[user] takes something out of the incision on [target]'s [affected.name] with \the [tool]!", \ "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 affected.implants -= obj if(!target.has_embedded_objects()) target.clear_alert("embeddedobject") @@ -259,6 +272,7 @@ else user.visible_message("[user] could not find anything inside [target]'s [affected.name], and pulls \the [tool] out.", \ "You could not find anything inside [target]'s [affected.name]." ) + user.balloon_alert_visible("Could not find anything inside", "Nothing found inside") // CHOMPEdit /datum/surgery_step/cavity/implant_removal/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) ..() diff --git a/code/modules/surgery/limb_reattach.dm b/code/modules/surgery/limb_reattach.dm index 68bc31d594..6ce373554c 100644 --- a/code/modules/surgery/limb_reattach.dm +++ b/code/modules/surgery/limb_reattach.dm @@ -37,15 +37,19 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) if (affected) to_chat(user, "Something is in the way! You can't attach [E] here!") + user.balloon_alert("Something is in the way!") // CHOMPEdit return 0 if(!P) to_chat(user, "There's nothing to attach [E] to!") + user.balloon_alert("There's nothing to attach [E] to!") // CHOMPEdit return 0 else if((P.robotic >= ORGAN_ROBOT) && (E.robotic < ORGAN_ROBOT)) to_chat(user, "Attaching [E] to [P] wouldn't work well.") + user.balloon_alert("Attaching [E] to [P] wouldn't work well") // CHOMPEdit return 0 else if(istype(E, /obj/item/organ/external/head) && E.robotic >= ORGAN_ROBOT && P.robotic < ORGAN_ROBOT) to_chat(user, "Attaching [E] to [P] might break [E].") + user.balloon_alert("Attaching [E] to [P] might break [E]") // CHOMPEdit return 0 else return 1 @@ -54,11 +58,13 @@ var/obj/item/organ/external/E = tool user.visible_message("[user] starts attaching [E.name] to [target]'s [E.amputation_point].", \ "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 /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("[user] has attached [target]'s [E.name] to the [E.amputation_point].", \ "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.drop_from_inventory(E) E.replaced(target) @@ -76,6 +82,7 @@ var/obj/item/organ/external/E = tool user.visible_message(" [user]'s hand slips, damaging [target]'s [E.amputation_point]!", \ " 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 target.apply_damage(10, BRUTE, null, sharp = TRUE) /////////////////////////////////////////////////////////////// @@ -102,11 +109,13 @@ var/obj/item/organ/external/E = target.get_organ(target_zone) user.visible_message("[user] starts connecting tendons and muscles in [target]'s [E.amputation_point] with [tool].", \ "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 /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("[user] has connected tendons and muscles in [target]'s [E.amputation_point] with [tool].", \ "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 E.status &= ~ORGAN_CUT_AWAY target.update_icons_body() target.updatehealth() @@ -116,6 +125,7 @@ var/obj/item/organ/external/E = tool user.visible_message(" [user]'s hand slips, damaging [target]'s [E.amputation_point]!", \ " 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 target.apply_damage(10, BRUTE, null, sharp = TRUE) /////////////////////////////////////////////////////////////// @@ -140,11 +150,13 @@ /datum/surgery_step/limb/mechanize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] starts attaching \the [tool] to [target].", \ "You start attaching \the [tool] to [target].") + user.balloon_alert_visible("Starts attaching \the [tool] to [target]", "Attachng \the [tool]") // CHOMPEdit /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("[user] has attached \the [tool] to [target].", \ "You have attached \the [tool] to [target].") + user.balloon_alert_visible("Attaches \the [tool] to [target]", "Attached \the [tool]") // CHOMPEdit if(L.part) for(var/part_name in L.part) @@ -168,4 +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(" [user]'s hand slips, damaging [target]'s flesh!", \ " Your hand slips, damaging [target]'s flesh!") + user.balloon_alert_visible("Slips, damaging [target]'s flesh", "Your hand slips, damaging the flesh") // CHOMPEdit target.apply_damage(10, BRUTE, null, sharp = TRUE) diff --git a/code/modules/surgery/neck.dm b/code/modules/surgery/neck.dm index 4bb76df327..98765b13f5 100644 --- a/code/modules/surgery/neck.dm +++ b/code/modules/surgery/neck.dm @@ -40,17 +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("[user] starts to mend the blood vessels on [target]'s brainstem with \the [tool].", \ "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 ..() /datum/surgery_step/brainstem/mend_vessels/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has mended the blood vessels on [target]'s brainstem with \the [tool]." , \ " 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 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("[user]'s hand slips, tearing at [target]'s brainstem with \the [tool]!" , \ "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 affected.createwound(PIERCE, 10) target.AdjustParalysis(10) @@ -78,12 +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("[user] starts to drill around [target]'s brainstem with \the [tool].", \ "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 ..() /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("[user] has drilled around [target]'s brainstem with \the [tool]." , \ " You have drilled around [target]'s brainstem with \the [tool].",) + user.balloon_alert_visible("Drilled around [target]'s brainstem", "Drilled around the brainstem") // CHOMPEdit 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. @@ -92,6 +97,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, shredding [target]'s brainstem with \the [tool]!" , \ "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 affected.createwound(PIERCE, 10) target.AdjustParalysis(15) spawn() @@ -120,11 +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("[user] starts to pick around [target]'s brainstem for bone chips with \the [tool].", \ "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 ..() /datum/surgery_step/brainstem/clean_chips/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has cleaned around [target]'s brainstem with \the [tool]." , \ " You have cleaned around [target]'s brainstem with \the [tool].",) + user.balloon_alert_visible("Cleaned around [target]'s brainstem") // CHOMPEdit target.AdjustParalysis(10) //Still invasive. target.op_stage.brainstem = 3 @@ -132,6 +140,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, gouging [target]'s brainstem with \the [tool]!" , \ "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 affected.createwound(CUT, 5) target.AdjustParalysis(10) spawn() @@ -160,11 +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("[user] starts to fuse [target]'s spinal cord with \the [tool].", \ "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 ..() /datum/surgery_step/brainstem/mend_cord/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has fused [target]'s spinal cord with \the [tool]." , \ " You have fused [target]'s spinal cord with \the [tool].",) + user.balloon_alert_visible("Fused [target]'s spinal cord", "Fused the spinal cord") // CHOMPEdit target.op_stage.brainstem = 4 target.AdjustParalysis(5) target.add_modifier(/datum/modifier/franken_sickness, 20 MINUTES) @@ -173,6 +184,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, tearing at [target]'s spinal cord with \the [tool]!" , \ "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 affected.createwound(PIERCE, 5) target.AdjustParalysis(20) spawn() @@ -200,11 +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("[user] starts to mend [target]'s opened vertebrae with \the [tool].", \ "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 ..() /datum/surgery_step/brainstem/mend_vertebrae/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has mended [target]'s vertebrae with \the [tool]." , \ " You have mended [target]'s vertebrae with \the [tool].",) + user.balloon_alert_visible("Mended [target]'s vertebrae", "Mended the vertebrae") // CHOMPEdit target.can_defib = 1 target.op_stage.brainstem = 5 @@ -212,6 +226,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, tearing at [target]'s spinal cord with \the [tool]!" , \ "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 affected.createwound(PIERCE, 5) target.AdjustParalysis(15) spawn() @@ -240,18 +255,21 @@ /datum/surgery_step/brainstem/realign_tissue/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] starts to realign the tissues in [target]'s skull with \the [tool].", \ "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 ..() /datum/surgery_step/brainstem/realign_tissue/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] has realigned the tissues in [target]'s skull back into place with \the [tool]." , \ " 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 target.AdjustParalysis(5) //I n v a s i v e target.op_stage.brainstem = 0 //The cycle begins anew. /datum/surgery_step/brainstem/realign_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("[user]'s hand slips, gouging [target]'s brainstem with \the [tool]!" , \ - "Your hand slips, gouging [target]'s brainstem with \the [tool]!" ) + "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 affected.createwound(CUT, 5) target.AdjustParalysis(30) spawn() diff --git a/code/modules/surgery/organ_ripper_vr.dm b/code/modules/surgery/organ_ripper_vr.dm index 9225f3e20c..e913be7ba3 100644 --- a/code/modules/surgery/organ_ripper_vr.dm +++ b/code/modules/surgery/organ_ripper_vr.dm @@ -36,6 +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 target.custom_pain("[user] is ripping into your [target.op_stage.current_organ]!", 100) ..() @@ -43,6 +44,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] has ripped [target]'s [affected] \the [tool], blood and viscera spraying everywhere!", \ "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 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) @@ -54,6 +56,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, damaging [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(BRUISE, 20) //Only bruised...Sad. @@ -68,6 +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 target.custom_pain("[user] is ripping into your [target.op_stage.current_organ]!", 100) ..() diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm index 82baa8648a..a58a0bf0d2 100644 --- a/code/modules/surgery/organs_internal.dm +++ b/code/modules/surgery/organs_internal.dm @@ -60,6 +60,7 @@ if(!(I.robotic >= ORGAN_ROBOT)) user.visible_message("[user] starts treating damage to [target]'s [I.name] with [tool_name].", \ "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 target.custom_pain("The pain in your [affected.name] is living hell!", 100) ..() @@ -80,8 +81,10 @@ if(!(I.robotic >= ORGAN_ROBOT)) user.visible_message("[user] treats damage to [target]'s [I.name] with [tool_name].", \ "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 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, "You fix their [I] but the neurological structure is still heavily damaged and in need of repair.") + user.balloon_alert("Fixed \the [I], neurological structure still in neeed of repair.") // CHOMPEdit I.damage = 0 I.status = 0 if(I.organ_tag == O_EYES) @@ -96,6 +99,7 @@ user.visible_message("[user]'s hand slips, getting mess and tearing the inside of [target]'s [affected.name] with \the [tool]!", \ "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 var/dam_amt = 2 if (istype(tool, /obj/item/stack/medical/advanced/bruise_pack)) @@ -150,6 +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 target.custom_pain("The pain in your [affected.name] is living hell!",1) ..() @@ -164,6 +169,7 @@ if(I.robotic >= ORGAN_ROBOT) user.visible_message("[user] repairs [target]'s [I.name] with [tool].", \ "You repair [target]'s [I.name] with [tool]." ) + user.balloon_alert_visible("Repairs [target]'s [I.name]", "Repaired \the [I.name]") // CHOMPEdit I.damage = 0 if(I.organ_tag == O_EYES) target.sdisabilities &= ~BLIND @@ -175,6 +181,7 @@ user.visible_message("[user]'s hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!", \ "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 target.adjustBruteLoss(5) @@ -235,12 +242,14 @@ user.visible_message("[user] starts to separate [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 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("[user] has separated [target]'s [target.op_stage.current_organ] with \the [tool]." , \ "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 var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ] if(I && istype(I)) @@ -250,6 +259,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, rand(30,50), 1) /////////////////////////////////////////////////////////////// @@ -300,11 +310,13 @@ to_chat(user, "You decide against preparing any organs for removal.") user.visible_message("[user] starts pulling \the [tool] from [target]'s [affected].", \ "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 target.op_stage.current_organ = organ_to_remove user.visible_message("[user] starts removing [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 target.custom_pain("Someone's ripping out your [target.op_stage.current_organ]!", 100) ..() @@ -313,11 +325,13 @@ if(!target.op_stage.current_organ) //They chose to remove their tool instead. user.visible_message("[user] has removed \the [tool] from [target]'s [affected].", \ "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 // Extract the organ! if(target.op_stage.current_organ) user.visible_message("[user] has removed [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 var/obj/item/organ/O = target.internal_organs_by_name[target.op_stage.current_organ] if(O && istype(O)) O.removed(user) @@ -327,6 +341,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, damaging [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(BRUISE, 20) /////////////////////////////////////////////////////////////// @@ -357,6 +372,7 @@ if((affected.robotic >= ORGAN_ROBOT) && !(O.robotic >= ORGAN_ROBOT)) to_chat(user, "You cannot install a naked organ into a robotic body.") + user.balloon_alert("You cannot install a naked organ into a robotic body.") // CHOMPEdit return SURGERY_FAILURE if(!target.species) @@ -376,6 +392,7 @@ organ_missing = 1 else to_chat(user, "\The [target] already has [o_a][O.organ_tag].") + user.balloon_alert("There is a [o_a][O.organ_tag] already!") // CHOMPEdit return SURGERY_FAILURE if(O && affected.organ_tag == O.parent_organ) @@ -383,6 +400,7 @@ else to_chat(user, "\The [O.organ_tag] [o_do] normally go in \the [affected.name].") + user.balloon_alert("\The [O.organ_tag] [o_do] normally go in \the [affected.name]") // CHOMPEdit return SURGERY_FAILURE return ..() && organ_missing && organ_compatible @@ -391,6 +409,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts transplanting \the [tool] into [target]'s [affected.name].", \ "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 target.custom_pain("Someone's rooting around in your [affected.name]!", 100) ..() @@ -398,6 +417,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] has transplanted \the [tool] into [target]'s [affected.name].", \ "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 var/obj/item/organ/O = tool if(istype(O)) user.remove_from_mob(O) @@ -406,6 +426,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("[user]'s hand slips, damaging \the [tool]!", \ "Your hand slips, damaging \the [tool]!") + user.balloon_alert_visible("Slips, damaging \the [tool]", "Your hand slips, damaging \the [tool]") // CHOMPEdit var/obj/item/organ/I = tool if(istype(I)) I.take_damage(rand(3,5),0) @@ -449,12 +470,14 @@ /datum/surgery_step/internal/attach_organ/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] begins reattaching [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 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("[user] has reattached [target]'s [target.op_stage.current_organ] with \the [tool]." , \ "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 var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ] if(I && istype(I)) @@ -464,4 +487,5 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, damaging the flesh in [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(BRUISE, 20) diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index 90daa7214e..3e86080b6a 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -39,6 +39,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts patching the damaged vein in [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("The pain in [affected.name] is unbearable!", 100) ..() @@ -46,6 +47,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] has patched the damaged vein in [target]'s [affected.name] with \the [tool].", \ "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 for(var/datum/wound/W in affected.wounds) if(W.internal) affected.wounds -= W @@ -56,6 +58,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!" , \ "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 affected.take_damage(5, 0) /////////////////////////////////////////////////////////////// @@ -93,6 +96,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts cutting away necrotic tissue in [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("The pain in [affected.name] is unbearable!", 100) ..() @@ -100,12 +104,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] has cut away necrotic tissue in [target]'s [affected.name] with \the [tool].", \ "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 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("[user]'s hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!", \ "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 affected.createwound(CUT, 20, 1) /////////////////////////////////////////////////////////////// @@ -151,6 +157,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts applying medication to the affected tissue in [target]'s [affected.name] with \the [tool]." , \ "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 target.custom_pain("Something in your [affected.name] is causing you a lot of pain!", 50) ..() @@ -169,6 +176,7 @@ user.visible_message("[user] applies [trans] units of the solution to affected tissue in [target]'s [affected.name].", \ "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 /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) @@ -182,6 +190,8 @@ user.visible_message("[user]'s hand slips, applying [trans] units of the solution to the wrong place in [target]'s [affected.name] with the [tool]!" , \ "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 //no damage or anything, just wastes medicine @@ -221,6 +231,7 @@ return user.visible_message("[user] starts cutting through the support systems of \the [rig] on [target] with \the [tool]." , \ "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 ..() /datum/surgery_step/hardsuit/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) @@ -232,10 +243,12 @@ rig.cut_suit() user.visible_message("[user] has cut through the support systems of \the [rig] on [target] with \the [tool].", \ "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 /datum/surgery_step/hardsuit/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user]'s [tool] can't quite seem to get through the metal...", \ "\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 /////////////////////////////////////////// // De-Husking Surgery // @@ -274,11 +287,13 @@ /datum/surgery_step/dehusk/structinitial/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] begins to create a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool].", \ "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 ..() /datum/surgery_step/dehusk/structinitial/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] creates a fleshy but rigid looking mesh over gaps in [target]'s flesh with \the [tool].", \ "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 target.op_stage.dehusk = 1 ..() @@ -286,6 +301,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, and the mesh falls, with \the [tool] scraping [target]'s body.", \ "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 affected.createwound(CUT, 15) affected.createwound(BRUISE, 10) ..() @@ -306,11 +322,13 @@ /datum/surgery_step/dehusk/relocateflesh/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] begins to relocate some of [target]'s flesh with \the [tool], using it to fill in gaps.", \ "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 ..() /datum/surgery_step/dehusk/relocateflesh/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] relocates some of [target]'s flesh with \the [tool], using it to fill in gaps.", \ "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 target.op_stage.dehusk = 2 ..() @@ -318,6 +336,8 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] accidentally rips a massive chunk out of [target]'s flesh with \the [tool], causing massive damage.", \ "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 affected.createwound(CUT, 25) affected.createwound(BRUISE, 10) ..() @@ -338,14 +358,17 @@ if(istype(tool,/obj/item/weapon/surgical/bioregen)) user.visible_message("[user] begins to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool].", \ "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 else if(istype(tool,/obj/item/weapon/surgical/FixOVein)) user.visible_message("[user] attempts to recreate blood vessels and fill in the gaps in [target]'s flesh with \the [tool].", \ "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 ..() /datum/surgery_step/dehusk/structfinish/end_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] finishes recreating the missing biological structures and filling in gaps in [target]'s flesh with \the [tool].", \ "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 target.op_stage.dehusk = 0 target.mutations.Remove(HUSK) target.status_flags &= ~DISFIGURED @@ -357,9 +380,12 @@ if(istype(tool,/obj/item/weapon/surgical/bioregen)) user.visible_message("[user]'s hand slips, causing \the [tool] to scrape [target]'s body.", \ "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 else if(istype(tool,/obj/item/weapon/surgical/FixOVein)) user.visible_message("[user] fails to finish the structure over the gaps in [target]'s flesh, doing more damage than good.", \ "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 + affected.createwound(CUT, 15) affected.createwound(BRUISE, 10) ..() @@ -377,11 +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("[user] begins to pull toxins from, and restore oxygen to [target]'s musculature and organs with \the [tool].", \ "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 ..() /datum/surgery_step/internal/detoxify/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] finishes pulling toxins from, and restoring oxygen to [target]'s musculature and organs with \the [tool].", \ "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 if(target.toxloss>25) target.adjustToxLoss(-20) if(target.oxyloss>25) @@ -392,6 +420,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s hand slips, failing to finish the surgery, and damaging [target] with \the [tool].", \ "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 affected.createwound(CUT, 15) affected.createwound(BRUISE, 10) ..() diff --git a/code/modules/surgery/robotics.dm b/code/modules/surgery/robotics.dm index e098a6c457..d73f9d6592 100644 --- a/code/modules/surgery/robotics.dm +++ b/code/modules/surgery/robotics.dm @@ -52,18 +52,21 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts to unscrew the maintenance hatch on [target]'s [affected.name] with \the [tool].", \ "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 ..() /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("[user] has opened the maintenance hatch on [target]'s [affected.name] with \the [tool].", \ "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 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("[user]'s [tool.name] slips, failing to unscrew [target]'s [affected.name].", \ "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 /////////////////////////////////////////////////////////////// // Open Hatch Surgery @@ -90,18 +93,21 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts to pry open the maintenance hatch on [target]'s [affected.name] with \the [tool].", "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 ..() /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("[user] opens the maintenance hatch on [target]'s [affected.name] with \the [tool].", \ "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 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("[user]'s [tool.name] slips, failing to open the hatch on [target]'s [affected.name].", "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 /////////////////////////////////////////////////////////////// // Close Hatch Surgery @@ -128,12 +134,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] begins to close and secure the hatch on [target]'s [affected.name] with \the [tool]." , \ "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 ..() /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("[user] closes and secures the hatch on [target]'s [affected.name] with \the [tool].", \ "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 affected.open = 0 affected.germ_level = 0 @@ -141,6 +149,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s [tool.name] slips, failing to close the hatch on [target]'s [affected.name].", "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 /////////////////////////////////////////////////////////////// // Brute Repair Surgery @@ -173,12 +182,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] begins to patch damage to [target]'s [affected.name]'s support structure with \the [tool]." , \ "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 ..() /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("[user] finishes patching damage to [target]'s [affected.name] with \the [tool].", \ "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 affected.heal_damage(rand(30,50),0,1,1) affected.disfigured = 0 @@ -186,6 +197,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user]'s [tool.name] slips, damaging the internal structure of [target]'s [affected.name].", "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 target.apply_damage(rand(5,10), BURN, affected) /////////////////////////////////////////////////////////////// @@ -207,11 +219,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 to_chat(user, "There are no burnt wires here!") return SURGERY_FAILURE else if(!C.can_use(5)) to_chat(user, "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 return SURGERY_FAILURE else C.use(5) @@ -222,12 +236,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] begins to splice new cabling into [target]'s [affected.name]." , \ "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 ..() /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("[user] finishes splicing cable into [target]'s [affected.name].", \ "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 affected.heal_damage(0,rand(30,50),1,1) affected.disfigured = 0 @@ -235,6 +251,7 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] causes a short circuit in [target]'s [affected.name]!", "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 target.apply_damage(rand(5,10), BURN, affected) /////////////////////////////////////////////////////////////// @@ -275,6 +292,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("Starts mending the damage to [target]'s [I.name]'s mechanisms.", "Mending the damage to \the [I.name]'s mechanism") // CHOMPEdit target.custom_pain("The pain in your [affected.name] is living hell!",1) ..() @@ -289,6 +307,7 @@ if(I.robotic >= ORGAN_ROBOT) user.visible_message("[user] repairs [target]'s [I.name] with [tool].", \ "You repair [target]'s [I.name] with [tool]." ) + user.balloon_alert_visible("Repairs [target]'s [I.name]", "Repaired \the [I.name]") // CHOMPEdit I.damage = 0 if(I.organ_tag == O_EYES) target.sdisabilities &= ~BLIND @@ -300,6 +319,7 @@ user.visible_message("[user]'s hand slips, gumming up the mechanisms inside of [target]'s [affected.name] with \the [tool]!", \ "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 target.adjustToxLoss(5) affected.createwound(CUT, 5) @@ -355,11 +375,13 @@ user.visible_message("[user] starts to decouple [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 ..() /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("[user] has decoupled [target]'s [target.op_stage.current_organ] with \the [tool]." , \ "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 var/obj/item/organ/internal/I = target.internal_organs_by_name[target.op_stage.current_organ] if(I && istype(I)) @@ -369,6 +391,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("[user]'s hand slips, disconnecting \the [tool].", \ "Your hand slips, disconnecting \the [tool].") + user.balloon_alert_visible("Slips, disconnecting \the [tool]", "Your hand slips, disconnecting \the [tool]") // CHOMPEdit /////////////////////////////////////////////////////////////// // Robot Organ Attaching Surgery @@ -417,11 +440,13 @@ user.visible_message("[user] begins reattaching [target]'s [target.op_stage.current_organ] with \the [tool].", \ "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 ..() /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("[user] has reattached [target]'s [target.op_stage.current_organ] with \the [tool]." , \ "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 var/obj/item/organ/I = target.internal_organs_by_name[target.op_stage.current_organ] if(I && istype(I)) @@ -431,6 +456,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("[user]'s hand slips, disconnecting \the [tool].", \ "Your hand slips, disconnecting \the [tool].") + user.balloon_alert_visible("Slips, disconnecting \the [tool]", "Your hand slips, disonnectng \the [tool]") // CHOMPEdit /////////////////////////////////////////////////////////////// // MMI Insertion Surgery @@ -465,14 +491,17 @@ if(!(affected.robotic >= ORGAN_ROBOT)) to_chat(user, "You cannot install a computer brain into a meat skull.") + user.balloon_alert("You cannot install a computer brain into a meat skull") // CHOMPEdit return SURGERY_FAILURE if(!target.should_have_organ("brain")) to_chat(user, "You're pretty sure [target.species.name_plural] don't normally have a brain.") + user.balloon_alert("You're pertty sure [target.species.name_plural] don't normall have a brain") // CHOMPEdit return SURGERY_FAILURE if(!isnull(target.internal_organs["brain"])) to_chat(user, "Your subject already has a brain.") + user.balloon_alert("Your subject already has a brain") // CHOMPEdit return SURGERY_FAILURE return 1 @@ -481,12 +510,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts installing \the [tool] into [target]'s [affected.name].", \ "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 ..() /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("[user] has installed \the [tool] into [target]'s [affected.name].", \ "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 var/obj/item/device/mmi/M = tool var/obj/item/organ/internal/mmi_holder/holder = new(target, 1) @@ -519,6 +550,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("[user]'s hand slips.", \ "Your hand slips.") + user.balloon_alert_visible("Slips", "Your hand slips") // CHOMPEdit /* * Install a Diona Nymph into a Nymph Mech @@ -548,22 +580,27 @@ if(!N.held_mob.client || N.held_mob.stat >= DEAD) to_chat(user, "That nymph is not viable.") + user.balloon_alert("That nymph is not viable") // CHOMPEdit return SURGERY_FAILURE if(!(affected.robotic >= ORGAN_ROBOT)) to_chat(user, "You cannot install a nymph into a meat puppet.") + user.balloon_alert("You cannot install a nymph into a meat puppet") // CHOMPEdit return SURGERY_FAILURE if(!(affected.model != "Skrellian Exoskeleton")) to_chat(user, "You're fairly certain a nymph can't pilot a normal robot.") + user.balloon_alert("You're fairly certain a nymph can't pilot a normal robot") // CHOMPEdit return SURGERY_FAILURE if(!target.should_have_organ("brain")) to_chat(user, "You're pretty sure [target.species.name_plural] don't normally have a brain.") + user.balloon_alert("You're pretty sure [target.species.name_plural] don't normall have a brain") // CHOMPEdit return SURGERY_FAILURE if(!isnull(target.internal_organs["brain"])) to_chat(user, "Your subject already has a cephalon.") + user.balloon_alert("Your subject already has a cephalon") // CHOMPEdit return SURGERY_FAILURE return 1 @@ -572,12 +609,14 @@ var/obj/item/organ/external/affected = target.get_organ(target_zone) user.visible_message("[user] starts setting \the [tool] into [target]'s [affected.name].", \ "You start setting \the [tool] into [target]'s [affected.name].") + user.balloon_alert_visible("Stars setting \the [tool] into [target]'s [affected.name]", "Setting \the into \the [affected.name]") // CHOMPEdit ..() /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("[user] has installed \the [tool] into [target]'s [affected.name].", \ "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 var/obj/item/weapon/holder/diona/N = tool var/obj/item/organ/internal/brain/cephalon/cephalon = new(target, 1) @@ -613,3 +652,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("[user]'s hand slips.", \ "Your hand slips.") + user.balloon_alert_visible("Slips", "Your hand slips") // CHOMPEdit diff --git a/code/modules/surgery/surgery.dm b/code/modules/surgery/surgery.dm index a7df129617..1532e207f4 100644 --- a/code/modules/surgery/surgery.dm +++ b/code/modules/surgery/surgery.dm @@ -211,6 +211,7 @@ if(!do_mob(user, M, calc_duration * toolspeed, zone, exclusive = TRUE)) success = FALSE to_chat(user, "You must remain close to and keep focused on your patient to conduct surgery.") + user.balloon_alert("You must remain close to and keep focused on your patent to conduct surgery") // CHOMPEdit if(success) selected_surgery.end_step(user, M, zone, src) diff --git a/code/modules/telesci/bscyrstal.dm b/code/modules/telesci/bscyrstal.dm index f60a40ce63..901506096d 100644 --- a/code/modules/telesci/bscyrstal.dm +++ b/code/modules/telesci/bscyrstal.dm @@ -15,7 +15,7 @@ pixel_y = rand(-5, 5) /obj/item/weapon/bluespace_crystal/attack_self(mob/user) - user.visible_message("[user] crushes [src]!", "You crush [src]!") + user.balloon_alert_visible("[user] crushes [src]!", "Crushed [src]!") // CHOMPEdit - Balloon alert var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread() s.set_up(5, 1, get_turf(src)) s.start() @@ -28,7 +28,7 @@ /obj/item/weapon/bluespace_crystal/throw_impact(atom/hit_atom) if(!..()) // not caught in mid-air - visible_message("[src] fizzles and disappears upon impact!") + balloon_alert_visible("[src] fizzles and disappears upon impact!") // CHOMPEdit - Balloon alert var/turf/T = get_turf(hit_atom) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread() s.set_up(5, 1, T) diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index eb133db479..b5fff24caa 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -404,9 +404,12 @@ setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(tasted == src) //CHOMPEdit Start - visible_message("[src] licks themself!","You lick yourself. You taste rather like [tasted.get_taste_message()].","Slurp!") + visible_message("[src] licks themself!","You lick yourself. You taste rather like [tasted.get_taste_message()].") + balloon_alert_visible("Licks themself!", "Tastes like [tasted.get_taste_message()]") else - visible_message("[src] licks [tasted]!","You lick [tasted]. They taste rather like [tasted.get_taste_message()].","Slurp!") //CHOMPEdit End + to_chat("[src] licks [tasted]!","You lick [tasted]. They taste rather like [tasted.get_taste_message()].") + balloon_alert_visible("Licks [tasted]!", "Tastes like [tasted.get_taste_message()]") + //CHOMPEdit End /mob/living/proc/get_taste_message(allow_generic = 1) @@ -447,8 +450,11 @@ setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(smelled == src) //CHOMPEdit Start visible_message("[src] smells themself!","You smell yourself. You smell like [smelled.get_smell_message()].","Sniff!") + balloon_alert_visible("Smells themself!", "Smells like [smelled.get_smell_message()]") else - visible_message("[src] smells [smelled]!","You smell [smelled]. They smell like [smelled.get_smell_message()].","Sniff!") //CHOMPEdit End + visible_message("[src] smells [smelled]!","You smell [smelled]. They smell like [smelled.get_smell_message()].","Sniff!") + balloon_alert_visible("Smells [smelled]!", "Smells like [smelled.get_smell_message()]") + //CHOMPEdit End /mob/living/proc/get_smell_message(allow_generic = 1) if(!vore_smell && !allow_generic) diff --git a/modular_chomp/code/_HELPERS/game.dm b/modular_chomp/code/_HELPERS/game.dm new file mode 100644 index 0000000000..1aa1562082 --- /dev/null +++ b/modular_chomp/code/_HELPERS/game.dm @@ -0,0 +1,2 @@ +/proc/remove_image_from_client(image/image, client/remove_from) + remove_from?.images -= image diff --git a/modular_chomp/code/__defines/_planes+layers.dm b/modular_chomp/code/__defines/_planes+layers.dm new file mode 100644 index 0000000000..001c13c264 --- /dev/null +++ b/modular_chomp/code/__defines/_planes+layers.dm @@ -0,0 +1 @@ +#define BALLOON_CHAT_PLANE 251 diff --git a/modular_chomp/code/__defines/text.dm b/modular_chomp/code/__defines/text.dm new file mode 100644 index 0000000000..a79f35d3a4 --- /dev/null +++ b/modular_chomp/code/__defines/text.dm @@ -0,0 +1,3 @@ +#define MAPTEXT(text) {"[##text]"} + +#define WXH_TO_HEIGHT(measurem) text2num(copytext(x, findtextEx(x, "x") + 1)) diff --git a/modular_chomp/code/game/atoms/atoms.dm b/modular_chomp/code/game/atoms/atoms.dm index 1822d1c5a2..67e258b629 100644 --- a/modular_chomp/code/game/atoms/atoms.dm +++ b/modular_chomp/code/game/atoms/atoms.dm @@ -7,6 +7,10 @@ */ var/list/atom_colours + /// Lazylist of all images to update when we change z levels + /// You will need to manage adding/removing from this yourself, but I'll do the updating for you + var/list/image/update_on_z + //! ## Atom Colour Priority System /** * A System that gives finer control over which atom colour to colour the atom with. @@ -52,4 +56,4 @@ return else if(C) color = C - return \ No newline at end of file + return diff --git a/modular_chomp/code/modules/balloon_alert/balloon_alert.dm b/modular_chomp/code/modules/balloon_alert/balloon_alert.dm new file mode 100644 index 0000000000..0d05097807 --- /dev/null +++ b/modular_chomp/code/modules/balloon_alert/balloon_alert.dm @@ -0,0 +1,95 @@ +#define BALLOON_TEXT_WIDTH 200 +#define BALLOON_TEXT_SPAWN_TIME (0.2 SECONDS) +#define BALLOON_TEXT_FADE_TIME (0.1 SECONDS) +#define BALLOON_TEXT_FULLY_VISIBLE_TIME (0.7 SECONDS) +#define BALLOON_TEXT_TOTAL_LIFETIME(mult) (BALLOON_TEXT_SPAWN_TIME + BALLOON_TEXT_FULLY_VISIBLE_TIME*mult + BALLOON_TEXT_FADE_TIME) +#define BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MULT (0.05) +#define BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MIN 10 + +/// Creates text that will float from the atom upwards to the viewer. +/atom/proc/balloon_alert(mob/viewer, text) + SHOULD_NOT_SLEEP(TRUE) + + INVOKE_ASYNC(src, PROC_REF(balloon_alert_perform), viewer, text) + +/atom/proc/balloon_alert_visible(message, self_message, blind_message, range = world.view, list/exclude_mobs = null) + SHOULD_NOT_SLEEP(TRUE) + + var/runechat_enabled + + var/list/hearers = get_mobs_in_view(range, src) + hearers -= exclude_mobs + + for(var/mob/M in hearers) + + runechat_enabled = M.client?.is_preference_enabled(/datum/client_preference/runechat_mob) + + if(M.client && !runechat_enabled) + continue + + if(M.is_blind()) + continue + + balloon_alert(M, (M == src && self_message) || message) + +/atom/proc/balloon_alert_perform(mob/viewer, text) + + var/client/viewer_client = viewer?.client + if (isnull(viewer_client)) + return + + if (isbelly(src.loc)) + return + + var/bound_width = world.icon_size + if (ismovable(src)) + var/atom/movable/movable_source = src + bound_width = movable_source.bound_width + + var/image/balloon_alert = image(loc = isturf(src) ? src : get_atom_on_turf(src), layer = ABOVE_MOB_LAYER) + balloon_alert.plane = PLANE_RUNECHAT + balloon_alert.alpha = 0 + balloon_alert.appearance_flags = RESET_ALPHA|RESET_COLOR|RESET_TRANSFORM + balloon_alert.maptext = MAPTEXT("[text]") + 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)) + balloon_alert.maptext_width = BALLOON_TEXT_WIDTH + + viewer_client?.images += balloon_alert + + var/length_mult = 1 + max(0, length(strip_html_simple(text)) - BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MIN) * BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MULT + + animate( + balloon_alert, + pixel_y = world.icon_size * 1.2, + time = BALLOON_TEXT_TOTAL_LIFETIME(length_mult), + easing = SINE_EASING | EASE_OUT, + ) + + animate( + alpha = 255, + time = BALLOON_TEXT_SPAWN_TIME, + easing = CUBIC_EASING | EASE_OUT, + flags = ANIMATION_PARALLEL, + ) + + animate( + alpha = 0, + time = BALLOON_TEXT_FULLY_VISIBLE_TIME * length_mult, + easing = CUBIC_EASING | EASE_IN, + ) + + LAZYADD(update_on_z, balloon_alert) + addtimer(CALLBACK(balloon_alert.loc, PROC_REF(forget_balloon_alert), balloon_alert), BALLOON_TEXT_TOTAL_LIFETIME(length_mult)) + addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(remove_image_from_client), balloon_alert, viewer_client), BALLOON_TEXT_TOTAL_LIFETIME(length_mult)) + +/atom/proc/forget_balloon_alert(image/balloon_alert) + LAZYREMOVE(update_on_z, balloon_alert) + +#undef BALLOON_TEXT_FADE_TIME +#undef BALLOON_TEXT_FULLY_VISIBLE_TIME +#undef BALLOON_TEXT_SPAWN_TIME +#undef BALLOON_TEXT_TOTAL_LIFETIME +#undef BALLOON_TEXT_WIDTH +#undef BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MULT +#undef BALLOON_TEXT_CHAR_LIFETIME_INCREASE_MIN diff --git a/vorestation.dme b/vorestation.dme index 9cc3fd1a26..bacedb93ae 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -4606,8 +4606,11 @@ #include "maps\~map_system\maps.dm" #include "modular_chomp\code\coalesce_ch.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\tgui.dm" #include "modular_chomp\code\_global_vars\list\names.dm" +#include "modular_chomp\code\_HELPERS\game.dm" #include "modular_chomp\code\_HELPERS\mobs.dm" #include "modular_chomp\code\_HELPERS\type2type.dm" #include "modular_chomp\code\_HELPERS\icons\flatten.dm" @@ -4693,6 +4696,7 @@ #include "modular_chomp\code\modules\admin\functions\modify_traits.dm" #include "modular_chomp\code\modules\admin\verbs\randomverbs.dm" #include "modular_chomp\code\modules\artifice\deadringer.dm" +#include "modular_chomp\code\modules\balloon_alert\balloon_alert.dm" #include "modular_chomp\code\modules\casino\casino_map_atoms.dm" #include "modular_chomp\code\modules\client\preferences.dm" #include "modular_chomp\code\modules\client\preferences_spawnpoints.dm"