mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Balloon Alerts (#17540)
* balloon alerts * Take that one out * fixes * fixes 2 * Missing one * That goes there * ough * , * . * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Kashargul
Cameron Lennox
parent
2f46264a31
commit
78c71907e9
@@ -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, span_warning("\The [src] cannot be applied to [M]!"))
|
||||
balloon_alert(user, "\the [src] cannot be applied to [M]!")
|
||||
return 1
|
||||
|
||||
if (!user.IsAdvancedToolUser())
|
||||
to_chat(user, span_warning("You don't have the dexterity to do this!"))
|
||||
balloon_alert(user, "you don't have the dexterity to do this!")
|
||||
return 1
|
||||
|
||||
var/available = get_amount()
|
||||
if(!available)
|
||||
to_chat(user, span_warning("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!")
|
||||
return 1
|
||||
|
||||
if (ishuman(M))
|
||||
@@ -34,24 +34,24 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(!affecting)
|
||||
to_chat(user, span_warning("No body part there to work on!"))
|
||||
balloon_alert(user, "no body part there to work on!")
|
||||
return 1
|
||||
|
||||
if(affecting.organ_tag == BP_HEAD)
|
||||
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
|
||||
to_chat(user, span_warning("You can't apply [src] through [H.head]!"))
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!")
|
||||
return 1
|
||||
else
|
||||
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
|
||||
to_chat(user, span_warning("You can't apply [src] through [H.wear_suit]!"))
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!")
|
||||
return 1
|
||||
|
||||
if(affecting.robotic == ORGAN_ROBOT)
|
||||
to_chat(user, span_warning("This isn't useful at all on a robotic limb."))
|
||||
balloon_alert(user, "this isn't useful at all on a robotic limb.")
|
||||
return 1
|
||||
|
||||
if(affecting.robotic >= ORGAN_LIFELIKE)
|
||||
to_chat(user, span_warning("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...")
|
||||
use(1)
|
||||
return 1
|
||||
|
||||
@@ -60,9 +60,9 @@
|
||||
else
|
||||
|
||||
M.heal_organ_damage((src.heal_brute/2), (src.heal_burn/2))
|
||||
user.visible_message( \
|
||||
span_notice("[M] has been applied with [src] by [user]."), \
|
||||
span_notice("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, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged())
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " starts bandaging [M]'s [affecting.name]."), \
|
||||
span_notice("You start bandaging [M]'s [affecting.name]."))
|
||||
user.balloon_alert_visible("\the [user] starts bandaging [M]'s [affecting.name].", \
|
||||
"bandaging [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if(W.internal)
|
||||
@@ -118,32 +118,32 @@
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/3, exclusive = TRUE))
|
||||
to_chat(user, span_notice("You must stand still to bandage wounds."))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
to_chat(user, span_warning("You run out of [src]!"))
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " bandages \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " places a bandage over \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
W.bandage()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used++
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
to_chat(user, span_warning("\The [src] is used up."))
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
to_chat(user, span_warning("\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].")
|
||||
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, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged())
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " starts treating [M]'s [affecting.name]."), \
|
||||
span_notice("You start treating [M]'s [affecting.name]."))
|
||||
user.balloon_alert_visible("\the [user] starts treating [M]'s [affecting.name].", \
|
||||
"treating [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if (W.internal)
|
||||
@@ -187,37 +187,37 @@
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
to_chat(user, span_notice("You must stand still to bandage wounds."))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
if(affecting.is_bandaged()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
to_chat(user, span_warning("You run out of [src]!"))
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " bandages \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
//H.add_side_effect("Itch")
|
||||
else if (W.damage_type == BRUISE)
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " places a bruise patch over \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " places a bandaid over \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
W.bandage()
|
||||
// W.disinfect() // VOREStation - Tech1 should not disinfect
|
||||
// W.disinfect() // Tech1 should not disinfect
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used++
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
to_chat(user, span_warning("\The [src] is used up."))
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
to_chat(user, span_warning("\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].")
|
||||
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, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_salved())
|
||||
to_chat(user, span_warning("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.")
|
||||
return 1
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " starts salving wounds on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
to_chat(user, span_notice("You must stand still to salve wounds."))
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.")
|
||||
return 1
|
||||
user.visible_message(span_notice("[user] salved wounds on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
use(1)
|
||||
affecting.salve()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
@@ -274,7 +274,7 @@
|
||||
singular_name = "advanced trauma kit"
|
||||
desc = "An advanced trauma kit for severe injuries."
|
||||
icon_state = "traumakit"
|
||||
heal_brute = 7 //VOREStation Edit
|
||||
heal_brute = 7
|
||||
origin_tech = list(TECH_BIO = 1)
|
||||
apply_sounds = list('sound/effects/rip1.ogg','sound/effects/rip2.ogg','sound/effects/tape.ogg')
|
||||
|
||||
@@ -287,56 +287,56 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
return
|
||||
|
||||
if(affecting.is_bandaged() && affecting.is_disinfected())
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been treated."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been treated.")
|
||||
return 1
|
||||
else
|
||||
var/available = get_amount()
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " starts treating [M]'s [affecting.name]."), \
|
||||
span_notice("You start treating [M]'s [affecting.name].") )
|
||||
user.balloon_alert_visible("\the [user] starts treating [M]'s [affecting.name].", \
|
||||
"treating [M]'s [affecting.name]." )
|
||||
var/used = 0
|
||||
for (var/datum/wound/W in affecting.wounds)
|
||||
if (W.internal)
|
||||
continue
|
||||
if (W.bandaged && W.disinfected)
|
||||
continue
|
||||
//if(used == amount) //VOREStation Edit
|
||||
// break //VOREStation Edit
|
||||
//if(used == amount)
|
||||
// break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
to_chat(user, span_notice("You must stand still to bandage wounds."))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
if(affecting.is_bandaged() && affecting.is_disinfected()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been bandaged."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] is already bandaged.")
|
||||
return 1
|
||||
|
||||
if(used >= available)
|
||||
to_chat(user, span_warning("You run out of [src]!"))
|
||||
balloon_alert(user, "you run out of [src]!")
|
||||
break
|
||||
|
||||
if (W.current_stage <= W.max_bleeding_stage)
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " cleans \a [W.desc] on [M]'s [affecting.name] and seals the edges with bioglue."), \
|
||||
span_notice("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]." )
|
||||
else if (W.damage_type == BRUISE)
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " places a medical patch over \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " smears some bioglue over \a [W.desc] on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
W.bandage()
|
||||
W.disinfect()
|
||||
W.heal_damage(heal_brute)
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used = 1 //VOREStation Edit
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
used = 1
|
||||
update_icon()
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
to_chat(user, span_warning("\The [src] is used up."))
|
||||
balloon_alert(user, "\the [src] is used up.")
|
||||
else
|
||||
to_chat(user, span_warning("\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].")
|
||||
use(used)
|
||||
|
||||
/obj/item/stack/medical/advanced/ointment
|
||||
@@ -344,7 +344,7 @@
|
||||
singular_name = "advanced burn kit"
|
||||
desc = "An advanced treatment kit for severe burns."
|
||||
icon_state = "burnkit"
|
||||
heal_burn = 7 //VOREStation Edit
|
||||
heal_burn = 7
|
||||
origin_tech = list(TECH_BIO = 1)
|
||||
apply_sounds = list('sound/effects/ointment.ogg')
|
||||
|
||||
@@ -357,27 +357,27 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
if(affecting.open)
|
||||
to_chat(user, span_notice("The [affecting.name] is cut open, you'll need more than a bandage!"))
|
||||
balloon_alert(user, "the [affecting.name] is cut open!")
|
||||
|
||||
if(affecting.is_salved())
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] has already been salved.")
|
||||
return 1
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " starts salving wounds on [M]'s [affecting.name]."), \
|
||||
span_notice("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]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
to_chat(user, span_notice("You must stand still to salve wounds."))
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
to_chat(user, span_warning("The wounds on [M]'s [affecting.name] have already been salved."))
|
||||
balloon_alert(user, "[M]'s [affecting.name] have already been salved.")
|
||||
return 1
|
||||
user.visible_message( span_notice("[user] covers wounds on [M]'s [affecting.name] with regenerative membrane."), \
|
||||
span_notice("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." )
|
||||
affecting.heal_damage(0,heal_burn)
|
||||
use(1)
|
||||
affecting.salve()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/medical/splint
|
||||
name = "medical splints"
|
||||
@@ -400,25 +400,25 @@
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_sel.selecting)
|
||||
var/limb = affecting.name
|
||||
if(!(affecting.organ_tag in splintable_organs))
|
||||
to_chat(user, span_danger("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!")
|
||||
return
|
||||
if(affecting.splinted)
|
||||
to_chat(user, span_danger("[M]'s [limb] is already splinted!"))
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
if (M != user)
|
||||
user.visible_message(span_danger("[user] starts to apply \the [src] to [M]'s [limb]."), span_danger("You start to apply \the [src] to [M]'s [limb]."), span_danger("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.")
|
||||
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, span_danger("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!")
|
||||
return
|
||||
user.visible_message(span_danger("[user] starts to apply \the [src] to their [limb]."), span_danger("You start to apply \the [src] to your [limb]."), span_danger("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.")
|
||||
if(do_after(user, 50, M, exclusive = TASK_USER_EXCLUSIVE))
|
||||
if(affecting.splinted)
|
||||
to_chat(user, span_danger("[M]'s [limb] is already splinted!"))
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
if(M == user && prob(75))
|
||||
user.visible_message(span_danger("\The [user] fumbles [src]."), span_danger("You fumble [src]."), span_danger("You hear something being wrapped."))
|
||||
user.balloon_alert_visible("\the [user] fumbles [src].", "fumbling [src].", "You hear something being wrapped.")
|
||||
return
|
||||
if(ishuman(user))
|
||||
var/obj/item/stack/medical/splint/S = split(1)
|
||||
@@ -426,9 +426,9 @@
|
||||
if(affecting.apply_splint(S))
|
||||
S.forceMove(affecting)
|
||||
if (M != user)
|
||||
user.visible_message(span_danger("\The [user] finishes applying [src] to [M]'s [limb]."), span_danger("You finish applying \the [src] to [M]'s [limb]."), span_danger("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.")
|
||||
else
|
||||
user.visible_message(span_danger("\The [user] successfully applies [src] to their [limb]."), span_danger("You successfully apply \the [src] to your [limb]."), span_danger("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.")
|
||||
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(span_danger("\The [user] finishes applying [src] to [M]'s [limb]."), span_danger("You finish applying \the [src] to [M]'s [limb]."), span_danger("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.")
|
||||
B.use(1)
|
||||
return
|
||||
user.visible_message(span_danger("\The [user] fails to apply [src]."), span_danger("You fail to apply [src]."), span_danger("You hear something being wrapped."))
|
||||
user.balloon_alert_visible("\the [user] fails to apply [src].", "failed to apply [src].", "You hear something being wrapped.")
|
||||
return
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "nanopaste"
|
||||
singular_name = "nanite swarm"
|
||||
desc = "A tube of paste containing swarms of repair nanites. Very effective in repairing robotic machinery."
|
||||
icon = 'icons/obj/stacks_vr.dmi' //VOREStation Edit
|
||||
icon = 'icons/obj/stacks_vr.dmi'
|
||||
icon_state = "nanopaste"
|
||||
origin_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3)
|
||||
amount = 10
|
||||
@@ -21,33 +21,32 @@
|
||||
R.adjustFireLoss(-15)
|
||||
R.updatehealth()
|
||||
use(1)
|
||||
user.visible_message(span_notice("\The [user] applied some [src] on [R]'s damaged areas."),\
|
||||
span_notice("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.")
|
||||
else
|
||||
to_chat(user, span_notice("All [R]'s systems are nominal."))
|
||||
balloon_alert(user, "all [R]'s systems are nominal.")
|
||||
|
||||
if (ishuman(M)) //Repairing robolimbs
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting)
|
||||
if(!S)
|
||||
to_chat(user, span_warning("No body part there to work on!"))
|
||||
balloon_alert(user, "no body part there to work on!")
|
||||
return 1
|
||||
|
||||
if(S.organ_tag == BP_HEAD)
|
||||
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
|
||||
to_chat(user, span_warning("You can't apply [src] through [H.head]!"))
|
||||
balloon_alert(user, "you can't apply [src] through [H.head]!")
|
||||
return 1
|
||||
else
|
||||
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
|
||||
to_chat(user, span_warning("You can't apply [src] through [H.wear_suit]!"))
|
||||
balloon_alert(user, "you can't apply [src] through [H.wear_suit]!")
|
||||
return 1
|
||||
|
||||
//VOREStation Edit Start
|
||||
if (S && (S.robotic >= ORGAN_ROBOT))
|
||||
if(!S.get_damage())
|
||||
to_chat(user, span_notice("Nothing to fix here."))
|
||||
balloon_alert(user, "nothing to fix here.")
|
||||
else if((S.open < 2) && (S.brute_dam + S.burn_dam >= S.min_broken_damage) && !repair_external)
|
||||
to_chat(user, span_notice("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.")
|
||||
else if(can_use(1))
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(S.open >= 2)
|
||||
@@ -57,6 +56,5 @@
|
||||
S.heal_damage(restoration_external,restoration_external, robo_repair =1)
|
||||
H.updatehealth()
|
||||
use(1)
|
||||
user.visible_message(span_notice("\The [user] applies some nanite paste on [user != M ? "[M]'s [S.name]" : "[S]"] with [src]."),\
|
||||
span_notice("You apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name]."))
|
||||
//VOREStation Edit End
|
||||
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].")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||
user.drop_item()
|
||||
forceMove(H.vore_selected)
|
||||
to_chat(H, span_notice("You can taste the flavor of garbage. Wait what?"))
|
||||
balloon_alert(H, "you can taste the flavor of garbage. Wait what?")
|
||||
return
|
||||
|
||||
if(isrobot(M))
|
||||
@@ -16,7 +16,7 @@
|
||||
playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||
user.drop_item()
|
||||
forceMove(R.vore_selected)
|
||||
R.visible_message(span_warning("[user] feeds [R] with [src]!"))
|
||||
R.balloon_alert_visible("[user] feeds [R] with [src]!", "you feed [R] \the [src]!")
|
||||
return
|
||||
..()
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
set_content = FALSE
|
||||
user.drop_item()
|
||||
W.forceMove(src)
|
||||
to_chat(user, "Placed the [W] into the [src]")
|
||||
balloon_alert(user, "placed \the [W] into \the [src]")
|
||||
set_content = TRUE
|
||||
description_info = "Click with an empty hand to seal it, or Alt-Click to retrieve the object out."
|
||||
return
|
||||
@@ -177,14 +177,14 @@
|
||||
var/obj/item/destTagger/O = W
|
||||
if(O.currTag)
|
||||
if(src.sortTag != O.currTag)
|
||||
to_chat(user, span_notice("You have labeled the destination as [O.currTag]."))
|
||||
balloon_alert(user, "labeled for [O.currTag].")
|
||||
src.sortTag = O.currTag
|
||||
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||
W.description_info = " It is labeled for [O.currTag]"
|
||||
else
|
||||
to_chat(user, span_notice("The mail is already labeled for [O.currTag]."))
|
||||
balloon_alert(user, "already labeled for [O.currTag].")
|
||||
else
|
||||
to_chat(user, span_danger("You need to set a destination first!"))
|
||||
balloon_alert(user, "destination not set!")
|
||||
return
|
||||
|
||||
/obj/item/mail/attack_self(mob/user)
|
||||
@@ -196,11 +196,11 @@
|
||||
if(recipient_ref)
|
||||
var/datum/mind/recipient = recipient_ref.resolve()
|
||||
if(recipient && recipient.current?.dna.unique_enzymes != user.dna.unique_enzymes)
|
||||
to_chat(user, span_danger("You can't open somebody's mail! That's <em>illegal</em>"))
|
||||
balloon_alert(user, "you can't open somebody's mail! That's <em>illegal</em>")
|
||||
return FALSE
|
||||
|
||||
if(opening)
|
||||
to_chat(user, span_danger("You are already opening that!"))
|
||||
balloon_alert(user, "already opening that!")
|
||||
return FALSE
|
||||
|
||||
opening = TRUE
|
||||
@@ -378,16 +378,16 @@
|
||||
if(istype(A, /obj/item/mail))
|
||||
var/obj/item/mail/saved_mail = A
|
||||
if(saved_mail.scanned)
|
||||
to_chat(user, span_danger("This letter has already been scanned!"))
|
||||
balloon_alert(user, "already scanned!")
|
||||
playsound(loc, 'sound/items/mail/maildenied.ogg', 50, TRUE)
|
||||
return
|
||||
to_chat(user, span_notice("Mail added to database"))
|
||||
balloon_alert(user, "added to database")
|
||||
playsound(loc, 'sound/items/mail/mailscanned.ogg', 50, TRUE)
|
||||
saved = A
|
||||
return
|
||||
if(isliving(A))
|
||||
if(!saved)
|
||||
to_chat(user, span_danger("No logged mail!"))
|
||||
balloon_alert(user, "no logged mail!")
|
||||
playsound(loc, 'sound/items/mail/maildenied.ogg', 50, TRUE)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user