mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] next set of spans (#9247)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
description_info = "This tubing may be used to join two hose sockets, if able.<br>\
|
||||
Clicking on an object with a connector, such as a water tank, will display a list of possible sockets.<br>\
|
||||
Neutral can link to all socket types, and Input/Output sockets can link to all but their own type.<br><br>\
|
||||
<span class='warning'>This hose does not stretch. The maximum distance you can move two objects from eachother\
|
||||
without snapping the tube is determined by distance upon connection.</span>"
|
||||
" + span_warning("This hose does not stretch. The maximum distance you can move two objects from eachother\
|
||||
without snapping the tube is determined by distance upon connection.")
|
||||
|
||||
icon = 'icons/obj/machines/reagent.dmi'
|
||||
icon_state = "hose"
|
||||
|
||||
@@ -429,13 +429,13 @@
|
||||
|
||||
var/obj/item/paper/P = new /obj/item/paper(loc)
|
||||
P.info = "<center><b>Chemical Analysis</b></center><br>"
|
||||
P.info += "<b>Time of analysis:</b> [worldtime2stationtime(world.time)]<br><br>"
|
||||
P.info += "<b>Chemical name:</b> [R.name]<br>"
|
||||
P.info += span_bold("Time of analysis:") + " [worldtime2stationtime(world.time)]<br><br>"
|
||||
P.info += span_bold("Chemical name:") + " [R.name]<br>"
|
||||
if(istype(R, /datum/reagent/blood))
|
||||
var/datum/reagent/blood/B = R
|
||||
P.info += "<b>Description:</b> N/A<br><b>Blood Type:</b> [B.data["blood_type"]]<br><b>DNA:</b> [B.data["blood_DNA"]]"
|
||||
P.info += span_bold("Description:") + " N/A<br><b>Blood Type:</b> [B.data["blood_type"]]<br><b>DNA:</b> [B.data["blood_DNA"]]"
|
||||
else
|
||||
P.info += "<b>Description:</b> [R.description]"
|
||||
P.info += span_bold("Description:") + " [R.description]"
|
||||
P.info += "<br><br><b>Notes:</b><br>"
|
||||
P.name = "Chemical Analysis - [R.name]"
|
||||
spawn(50)
|
||||
|
||||
@@ -54,10 +54,10 @@
|
||||
/obj/item/reagent_containers/chem_disp_cartridge/attack_self()
|
||||
..()
|
||||
if (is_open_container())
|
||||
to_chat(usr, "<span class = 'notice'>You put the cap on \the [src].</span>")
|
||||
to_chat(usr, span_notice("You put the cap on \the [src]."))
|
||||
flags ^= OPENCONTAINER
|
||||
else
|
||||
to_chat(usr, "<span class = 'notice'>You take the cap off \the [src].</span>")
|
||||
to_chat(usr, span_notice("You take the cap off \the [src]."))
|
||||
flags |= OPENCONTAINER
|
||||
|
||||
/obj/item/reagent_containers/chem_disp_cartridge/afterattack(obj/target, mob/user , flag)
|
||||
|
||||
@@ -108,8 +108,8 @@
|
||||
|
||||
. += span_notice("\The [src]'s gauges read:")
|
||||
if(!use_atmos)
|
||||
. += span_notice("- Target Temperature:</span> <span class='warning'>[target_temp]")
|
||||
. += span_notice("- Temperature:</span> <span class='warning'>[current_temp]")
|
||||
. += span_notice("- Target Temperature:") + span_warning("[target_temp]")
|
||||
. += span_notice("- Temperature:") + span_warning("[current_temp]")
|
||||
|
||||
if(InputBeaker)
|
||||
if(InputBeaker.reagents.reagent_list.len)
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
to_chat(user, span_notice("You press \the [src]'s chamber agitator button."))
|
||||
if(on)
|
||||
visible_message("<b>\The [src]</b> rattles to life.")
|
||||
visible_message(span_infoplain(span_bold("\The [src]") + " rattles to life."))
|
||||
reagents.handle_reactions()
|
||||
else
|
||||
spawn(1 SECOND)
|
||||
@@ -187,8 +187,8 @@
|
||||
if("inspect gauges")
|
||||
to_chat(user, span_notice("\The [src]'s gauges read:"))
|
||||
if(!use_atmos)
|
||||
to_chat(user, span_notice("- Target Temperature:</span> <span class='warning'>[target_temp]"))
|
||||
to_chat(user, span_notice("- Temperature:</span> <span class='warning'>[current_temp]"))
|
||||
to_chat(user, span_notice("- Target Temperature:") + span_warning("[target_temp]"))
|
||||
to_chat(user, span_notice("- Temperature:") + span_warning("[current_temp]"))
|
||||
|
||||
if("pulse agitator")
|
||||
toggle_mixing(user)
|
||||
@@ -315,7 +315,7 @@
|
||||
if(target_temp == round(current_temp, 1.0))
|
||||
current_temp = target_temp // Hard set it so we don't need to worry about exact decimals any more, after we've been keeping track of it all this time
|
||||
playsound(src, 'sound/machines/ping.ogg', 50, 0)
|
||||
src.visible_message("<b>\The [src]</b> pings as it reaches the target temperature.")
|
||||
src.visible_message(span_infoplain(span_bold("\The [src]") + " pings as it reaches the target temperature."))
|
||||
|
||||
else if(connected_port && avg_pressure > 1000)
|
||||
current_temp = round((current_temp + avg_temp) / 2)
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
. += span_notice("- \A [O.name].")
|
||||
|
||||
if(!(stat & (NOPOWER|BROKEN)))
|
||||
. += "<span class='notice'>The status display reads:</span>\n"
|
||||
. += span_notice("The status display reads:") + "\n"
|
||||
if(beaker)
|
||||
for(var/datum/reagent/R in beaker.reagents.reagent_list)
|
||||
. += span_notice("- [R.volume] units of [R.name].")
|
||||
|
||||
@@ -134,12 +134,12 @@
|
||||
if(beaker)
|
||||
. += span_notice("- \A [beaker].")
|
||||
|
||||
. += "<span class ='notice'>\The [src] contains [src.count_small_injector] small injectors and [src.count_large_injector] large injectors.\n </span>"
|
||||
. += "<span class ='notice'> It can hold [capacity_small_injector] small and [capacity_large_injector] large injectors respectively.\n </span>"
|
||||
. += "<span class ='notice'> \The [src] contains [src.count_plastic] units of plastic. It can hold up to [capacity_plastic] units.\n </span>"
|
||||
. += span_notice("\The [src] contains [src.count_small_injector] small injectors and [src.count_large_injector] large injectors.") + "\n"
|
||||
. += span_notice("It can hold [capacity_small_injector] small and [capacity_large_injector] large injectors respectively.") + "\n"
|
||||
. += span_notice("\The [src] contains [src.count_plastic] units of plastic. It can hold up to [capacity_plastic] units.") + "\n"
|
||||
|
||||
if(!(stat & (NOPOWER|BROKEN)))
|
||||
. += "<span class='notice'>The status display reads the following reagents:</span>\n"
|
||||
. += span_notice("The status display reads the following reagents:") + "\n"
|
||||
if(beaker)
|
||||
for(var/datum/reagent/R in beaker.reagents.reagent_list)
|
||||
. += span_notice("- [R.volume] units of [R.name].")
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
var/contained = reagentlist()
|
||||
add_attack_logs(user,target,"Splashed with [src.name] containing [contained]")
|
||||
// user.visible_message(span_danger("[target] has been splashed with something by [user]!"), "<span class = 'notice'>You splash the solution onto [target].</span>")
|
||||
// user.visible_message(span_danger("[target] has been splashed with something by [user]!"), span_notice("You splash the solution onto [target]."))
|
||||
balloon_alert_visible("[target] has been splashed with something by [user]!", "Splashed the solution onto [target]") // CHOMPEdit - Changed to balloon_alert
|
||||
reagents.splash(target, reagents.total_volume)
|
||||
return 1
|
||||
|
||||
@@ -103,16 +103,16 @@
|
||||
return
|
||||
|
||||
/obj/item/reagent_containers/borghypo/attack_self(mob/user as mob) //Change the mode
|
||||
var/t = "<span class='infoplain'>"
|
||||
var/t
|
||||
for(var/i = 1 to reagent_ids.len)
|
||||
if(t)
|
||||
t += ", "
|
||||
if(mode == i)
|
||||
t += "<b>[reagent_names[i]]</b>"
|
||||
t += span_bold("[reagent_names[i]]")
|
||||
else
|
||||
t += "<a href='?src=\ref[src];reagent=[reagent_ids[i]]'>[reagent_names[i]]</a>"
|
||||
t = "Available reagents: [t].</span>"
|
||||
to_chat(user,t)
|
||||
t = "Available reagents: [t]."
|
||||
to_chat(user,span_infoplain(t))
|
||||
|
||||
return
|
||||
|
||||
|
||||
@@ -79,11 +79,11 @@
|
||||
/obj/item/reagent_containers/glass/attack_self()
|
||||
..()
|
||||
if(is_open_container())
|
||||
// to_chat(usr, "<span class = 'notice'>You put the lid on \the [src].</span>")
|
||||
// to_chat(usr, span_notice("You put the lid on \the [src]."))
|
||||
balloon_alert(usr, "Lid put on \the [src]")
|
||||
flags ^= OPENCONTAINER
|
||||
else
|
||||
// to_chat(usr, "<span class = 'notice'>You take the lid off \the [src].</span>")
|
||||
// to_chat(usr, span_notice("You take the lid off \the [src]."))
|
||||
balloon_alert(usr, "Lid removed off \the [src]") // CHOMPEdit - Changed to ballopn alert
|
||||
flags |= OPENCONTAINER
|
||||
update_icon()
|
||||
|
||||
@@ -143,12 +143,12 @@
|
||||
|
||||
/obj/item/reagent_containers/spray/pepper/attack_self(var/mob/user)
|
||||
safety = !safety
|
||||
// to_chat(usr, "<span class = 'notice'>You switch the safety [safety ? "on" : "off"].</span>")
|
||||
// to_chat(usr, span_notice("You switch the safety [safety ? "on" : "off"]."))
|
||||
balloon_alert(usr, "Safety [safety ? "on" : "off"].") // CHOMPEdit - Changed to balloon alert
|
||||
|
||||
/obj/item/reagent_containers/spray/pepper/Spray_at(atom/A as mob|obj)
|
||||
if(safety)
|
||||
to_chat(usr, "<span class = 'warning'>The safety is on!</span>")
|
||||
to_chat(usr, span_warning("The safety is on!"))
|
||||
return
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
return
|
||||
|
||||
if(T.isSynthetic())
|
||||
to_chat(user, "<span class = 'warning'>You can't draw blood from a synthetic!</span>")
|
||||
to_chat(user, span_warning("You can't draw blood from a synthetic!"))
|
||||
return
|
||||
|
||||
if(drawing)
|
||||
@@ -279,7 +279,7 @@
|
||||
|
||||
if (target != user && H.getarmor(target_zone, "melee") > 5 && prob(50))
|
||||
for(var/mob/O in viewers(world.view, user))
|
||||
O.show_message(span_red(text("<B>[user] tries to stab [target] in \the [hit_area] with [src.name], but the attack is deflected by armor!</B>")), 1)
|
||||
O.show_message(span_bolddanger("[user] tries to stab [target] in \the [hit_area] with [src.name], but the attack is deflected by armor!"), 1)
|
||||
user.remove_from_mob(src)
|
||||
qdel(src)
|
||||
|
||||
|
||||
@@ -356,7 +356,7 @@
|
||||
var/obj/item/stack/medical/M = C.upgrade_stack(to_produce)
|
||||
|
||||
if(M && M.get_amount())
|
||||
holder.my_atom.visible_message("<b>\The [packname]</b> bubbles.")
|
||||
holder.my_atom.visible_message(span_infoplain(span_bold("\The [packname]") + " bubbles."))
|
||||
remove_self(to_produce * 5)
|
||||
|
||||
/datum/reagent/cryoxadone
|
||||
@@ -1295,7 +1295,7 @@
|
||||
var/obj/item/stack/medical/M = C.upgrade_stack(to_produce)
|
||||
|
||||
if(M && M.get_amount())
|
||||
holder.my_atom.visible_message("<b>\The [packname]</b> bubbles.")
|
||||
holder.my_atom.visible_message(span_infoplain(span_bold("\The [packname]") + " bubbles."))
|
||||
remove_self(to_produce)
|
||||
|
||||
/datum/reagent/sterilizine
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
else if(prob(1))
|
||||
playsound(M, 'sound/vore/schlorp.ogg', 50, 1)
|
||||
P.absorbed = 0
|
||||
M.visible_message(span_green("<b>Something spills into [M]'s [lowertext(B.name)]!</b>"))
|
||||
M.visible_message(span_infoplain(span_green(span_bold("Something spills into [M]'s [lowertext(B.name)]!"))))
|
||||
|
||||
////////////////////////// TF Drugs //////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user