mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
rid of old span macros
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
return 0
|
||||
|
||||
user.visible_message("\The [user] starts transferring \the [ai] into \the [src]...", "You start transferring \the [ai] into \the [src]...")
|
||||
show_message(span("critical", "\The [user] is transferring you into \the [src]!"))
|
||||
show_message(span_critical("\The [user] is transferring you into \the [src]!"))
|
||||
|
||||
if(do_after(user, 100))
|
||||
if(carded_ai)
|
||||
|
||||
@@ -229,7 +229,7 @@ var/list/GPS_list = list()
|
||||
/obj/item/gps/proc/display(mob/user)
|
||||
|
||||
if(emped)
|
||||
to_chat(user, SPAN_WARNING("It's busted!"))
|
||||
to_chat(user, span_warning("It's busted!"))
|
||||
return
|
||||
|
||||
var/list/dat = list()
|
||||
@@ -290,7 +290,7 @@ var/list/GPS_list = list()
|
||||
LAZYSET(showing_tracked_names, gps_ref, TRUE)
|
||||
else
|
||||
LAZYREMOVE(showing_tracked_names, gps_ref)
|
||||
to_chat(usr, SPAN_NOTICE("\The [src] is [LAZYACCESS(showing_tracked_names, gps_ref) ? "now showing" : "no longer showing"] labels for [gps.gps_tag]."))
|
||||
to_chat(usr, span_notice("\The [src] is [LAZYACCESS(showing_tracked_names, gps_ref) ? "now showing" : "no longer showing"] labels for [gps.gps_tag]."))
|
||||
|
||||
if(href_list["stop_track"])
|
||||
var/gps_ref = href_list["stop_track"]
|
||||
@@ -299,7 +299,7 @@ var/list/GPS_list = list()
|
||||
LAZYREMOVE(tracking_devices, gps_ref)
|
||||
LAZYREMOVE(showing_tracked_names, gps_ref)
|
||||
if(istype(gps) && !QDELETED(gps))
|
||||
to_chat(usr, SPAN_NOTICE("\The [src] is no longer tracking [gps.gps_tag]."))
|
||||
to_chat(usr, span_notice("\The [src] is no longer tracking [gps.gps_tag]."))
|
||||
update_compass()
|
||||
. = TRUE
|
||||
|
||||
@@ -309,7 +309,7 @@ var/list/GPS_list = list()
|
||||
if(istype(gps) && !QDELETED(gps))
|
||||
LAZYSET(tracking_devices, gps_ref, "#00ffff")
|
||||
LAZYSET(showing_tracked_names, gps_ref, TRUE)
|
||||
to_chat(usr, SPAN_NOTICE("\The [src] is now tracking [gps.gps_tag]."))
|
||||
to_chat(usr, span_notice("\The [src] is now tracking [gps.gps_tag]."))
|
||||
update_compass()
|
||||
. = TRUE
|
||||
|
||||
@@ -318,7 +318,7 @@ var/list/GPS_list = list()
|
||||
if(istype(gps) && !QDELETED(gps))
|
||||
var/new_colour = input(usr, "Enter a new tracking color.", "GPS Waypoint Color") as color|null
|
||||
if(new_colour && istype(gps) && !QDELETED(gps) && holder == usr && !usr.incapacitated())
|
||||
to_chat(usr, SPAN_NOTICE("You adjust the colour \the [src] is using to highlight [gps.gps_tag]."))
|
||||
to_chat(usr, span_notice("You adjust the colour \the [src] is using to highlight [gps.gps_tag]."))
|
||||
LAZYSET(tracking_devices, href_list["track_color"], new_colour)
|
||||
update_compass()
|
||||
. = TRUE
|
||||
|
||||
@@ -23,20 +23,20 @@
|
||||
|
||||
if(!isnull(O.reagents))
|
||||
if(!(O.flags & OPENCONTAINER)) // The idea is that the scanner has to touch the reagents somehow. This is done to prevent cheesing unidentified autoinjectors.
|
||||
to_chat(user, span("warning", "\The [O] is sealed, and cannot be scanned by \the [src] until unsealed."))
|
||||
to_chat(user, span_warning("\The [O] is sealed, and cannot be scanned by \the [src] until unsealed."))
|
||||
return
|
||||
|
||||
var/dat = ""
|
||||
if(O.reagents.reagent_list.len > 0)
|
||||
var/one_percent = O.reagents.total_volume / 100
|
||||
for (var/datum/reagent/R in O.reagents.reagent_list)
|
||||
dat += "\n \t " + span("notice", "[R][details ? ": [R.volume / one_percent]%" : ""]")
|
||||
dat += "\n \t " + span_notice("[R][details ? ": [R.volume / one_percent]%" : ""]")
|
||||
if(dat)
|
||||
to_chat(user, span("notice", "Chemicals found: [dat]"))
|
||||
to_chat(user, span_notice("Chemicals found: [dat]"))
|
||||
else
|
||||
to_chat(user, span("notice", "No active chemical agents found in [O]."))
|
||||
to_chat(user, span_notice("No active chemical agents found in [O]."))
|
||||
else
|
||||
to_chat(user, span("notice", "No significant chemical agents found in [O]."))
|
||||
to_chat(user, span_notice("No significant chemical agents found in [O]."))
|
||||
|
||||
return
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
to_chat(user, "The headline screams, \"[headline]\"")
|
||||
|
||||
/obj/item/tabloid/attack_self(mob/user)
|
||||
user.visible_message(SPAN_NOTICE("\The [user] leafs idly through \the [src]."))
|
||||
user.visible_message(span_notice("\The [user] leafs idly through \the [src]."))
|
||||
if(headline)
|
||||
to_chat(user, "Most of it is the usual tabloid garbage, but the headline story, \"[headline]\", holds your attention for awhile.")
|
||||
if(tabloid_headlines[headline])
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
var/make_rwalls = FALSE // If true, when building walls, they will be reinforced.
|
||||
/* VOREStation Removal - Unused
|
||||
/obj/item/rcd/Initialize()
|
||||
|
||||
|
||||
src.spark_system = new /datum/effect/effect/system/spark_spread
|
||||
spark_system.set_up(5, 0, src)
|
||||
spark_system.attach(src)
|
||||
@@ -56,13 +56,13 @@
|
||||
if(istype(W, /obj/item/rcd_ammo))
|
||||
var/obj/item/rcd_ammo/cartridge = W
|
||||
if((stored_matter + cartridge.remaining) > max_stored_matter)
|
||||
to_chat(user, span("warning", "The RCD can't hold that many additional matter-units."))
|
||||
to_chat(user, span_warning("The RCD can't hold that many additional matter-units."))
|
||||
return FALSE
|
||||
stored_matter += cartridge.remaining
|
||||
user.drop_from_inventory(W)
|
||||
qdel(W)
|
||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, span("notice", "The RCD now holds [stored_matter]/[max_stored_matter] matter-units."))
|
||||
to_chat(user, span_notice("The RCD now holds [stored_matter]/[max_stored_matter] matter-units."))
|
||||
return TRUE
|
||||
return ..()
|
||||
*/
|
||||
@@ -74,7 +74,7 @@
|
||||
else
|
||||
mode_index++
|
||||
|
||||
to_chat(user, span("notice", "Changed mode to '[modes[mode_index]]'."))
|
||||
to_chat(user, span_notice("Changed mode to '[modes[mode_index]]'."))
|
||||
playsound(src, 'sound/effects/pop.ogg', 50, 0)
|
||||
|
||||
if(prob(20))
|
||||
@@ -99,16 +99,16 @@
|
||||
// Used to call rcd_act() on the atom hit.
|
||||
/obj/item/rcd/proc/use_rcd(atom/A, mob/living/user)
|
||||
if(busy && !allow_concurrent_building)
|
||||
to_chat(user, span("warning", "\The [src] is busy finishing its current operation, be patient."))
|
||||
to_chat(user, span_warning("\The [src] is busy finishing its current operation, be patient."))
|
||||
return FALSE
|
||||
|
||||
var/list/rcd_results = A.rcd_values(user, src, modes[mode_index])
|
||||
if(!rcd_results)
|
||||
to_chat(user, span("warning", "\The [src] blinks a red light as you point it towards \the [A], indicating \
|
||||
to_chat(user, span_warning("\The [src] blinks a red light as you point it towards \the [A], indicating \
|
||||
that it won't work. Try changing the mode, or use it on something else."))
|
||||
return FALSE
|
||||
if(!can_afford(rcd_results[RCD_VALUE_COST]))
|
||||
to_chat(user, span("warning", "\The [src] lacks the required material to start."))
|
||||
to_chat(user, span_warning("\The [src] lacks the required material to start."))
|
||||
return FALSE
|
||||
|
||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||
@@ -128,7 +128,7 @@
|
||||
busy = FALSE
|
||||
// Doing another check in case we lost matter during the delay for whatever reason.
|
||||
if(!can_afford(rcd_results[RCD_VALUE_COST]))
|
||||
to_chat(user, span("warning", "\The [src] lacks the required material to finish the operation."))
|
||||
to_chat(user, span_warning("\The [src] lacks the required material to finish the operation."))
|
||||
return FALSE
|
||||
if(A.rcd_act(user, src, rcd_results[RCD_VALUE_MODE]))
|
||||
consume_resources(rcd_results[RCD_VALUE_COST])
|
||||
@@ -289,7 +289,7 @@
|
||||
|
||||
/obj/item/rcd/debug/attackby(obj/item/W, mob/user)
|
||||
if(istype(W, /obj/item/rcd_ammo))
|
||||
to_chat(user, span("notice", "\The [src] makes its own material, no need to add more."))
|
||||
to_chat(user, span_notice("\The [src] makes its own material, no need to add more."))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -69,16 +69,16 @@
|
||||
var/obj/item/rcd_ammo/cartridge = W
|
||||
var/can_store = min(max_stored_matter - stored_matter, cartridge.remaining)
|
||||
if(can_store <= 0)
|
||||
to_chat(user, span("warning", "There's either no space or \the [cartridge] is empty!"))
|
||||
to_chat(user, span_warning("There's either no space or \the [cartridge] is empty!"))
|
||||
return FALSE
|
||||
stored_matter += can_store
|
||||
cartridge.remaining -= can_store
|
||||
if(!cartridge.remaining)
|
||||
to_chat(user, span("warning", "\The [cartridge] dissolves as it empties of compressed matter."))
|
||||
to_chat(user, span_warning("\The [cartridge] dissolves as it empties of compressed matter."))
|
||||
user.drop_from_inventory(W)
|
||||
qdel(W)
|
||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, span("notice", "The RCD now holds [stored_matter]/[max_stored_matter] matter-units."))
|
||||
to_chat(user, span_notice("The RCD now holds [stored_matter]/[max_stored_matter] matter-units."))
|
||||
update_icon()
|
||||
return TRUE
|
||||
return ..()
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
else
|
||||
return
|
||||
|
||||
to_chat(user, span("notice", "Changed mode to '[choice]'."))
|
||||
to_chat(user, span_notice("Changed mode to '[choice]'."))
|
||||
playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
AI.hostile = !AI.hostile
|
||||
if(!AI.hostile)
|
||||
AI.set_stance(STANCE_IDLE)
|
||||
to_chat(M, span("notice", "\The [bound_mob] is now [AI.hostile ? "hostile" : "passive"]."))
|
||||
to_chat(M, span_notice("\The [bound_mob] is now [AI.hostile ? "hostile" : "passive"]."))
|
||||
log_admin("[key_name_admin(M)] set [bound_mob] to [AI.hostile].")
|
||||
else if(bound_mob.client)
|
||||
var/transmit_msg = tgui_input_text(usr, "What is your command?", "Command")
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
/obj/item/clothing/mask/chewable/attack_self(mob/user)
|
||||
if(wrapped)
|
||||
wrapped = FALSE
|
||||
to_chat(user, span("notice", "You unwrap \the [name]."))
|
||||
to_chat(user, span_notice("You unwrap \the [name]."))
|
||||
playsound(src.loc, 'sound/items/drop/wrapper.ogg', 50, 1)
|
||||
slot_flags = SLOT_EARS | SLOT_MASK
|
||||
update_icon()
|
||||
@@ -41,7 +41,7 @@
|
||||
if(C.check_has_mouth())
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
else
|
||||
to_chat(user, span("notice", "You don't have a mouth, and can't make much use of \the [src]."))
|
||||
to_chat(user, span_notice("You don't have a mouth, and can't make much use of \the [src]."))
|
||||
|
||||
/obj/item/clothing/mask/chewable/dropped()
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
@@ -90,7 +90,7 @@
|
||||
if(ismob(loc))
|
||||
var/mob/living/M = loc
|
||||
if(!no_message)
|
||||
to_chat(M, SPAN_NOTICE("The [name] runs out of flavor."))
|
||||
to_chat(M, span_notice("The [name] runs out of flavor."))
|
||||
if(M.wear_mask)
|
||||
M.remove_from_mob(src) //un-equip it so the overlays can update
|
||||
M.update_inv_wear_mask(0)
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
if(!ismob(grab.affecting))
|
||||
return
|
||||
if(grab.affecting.has_buckled_mobs())
|
||||
to_chat(user, span("warning", "\The [grab.affecting] has other entities attached to them. Remove them first."))
|
||||
to_chat(user, span_warning("\The [grab.affecting] has other entities attached to them. Remove them first."))
|
||||
return
|
||||
var/mob/M = grab.affecting
|
||||
if(put_mob(M))
|
||||
|
||||
@@ -46,16 +46,16 @@
|
||||
|
||||
/obj/item/material/kitchen/utensil/proc/load_food(var/mob/user, var/obj/item/reagent_containers/food/snacks/loading)
|
||||
if (reagents.total_volume > 0)
|
||||
to_chat(user, SPAN_DANGER("There is already something on \the [src]."))
|
||||
to_chat(user, span_danger("There is already something on \the [src]."))
|
||||
return
|
||||
if (!loading?.reagents?.total_volume)
|
||||
to_chat(user, SPAN_NOTICE("Nothing to scoop up in \the [loading]!"))
|
||||
to_chat(user, span_notice("Nothing to scoop up in \the [loading]!"))
|
||||
|
||||
|
||||
loaded = "\the [loading]"
|
||||
user.visible_message( \
|
||||
"<b>\The [user]</b> scoops up some of [loaded] with \the [src]!",
|
||||
SPAN_NOTICE("You scoop up some of [loaded] with \the [src]!")
|
||||
span_notice("You scoop up some of [loaded] with \the [src]!")
|
||||
)
|
||||
loading.bitecount++
|
||||
loading.reagents.trans_to_obj(src, min(loading.reagents.total_volume, scoop_volume))
|
||||
@@ -110,7 +110,7 @@
|
||||
return
|
||||
M.visible_message("<b>\The [user]</b> eats some of [loaded] with \the [src].")
|
||||
else
|
||||
user.visible_message(SPAN_WARNING("\The [user] begins to feed \the [M]!"))
|
||||
user.visible_message(span_warning("\The [user] begins to feed \the [M]!"))
|
||||
if(!(M.can_force_feed(user, loaded) && do_mob(user, M, 5 SECONDS)))
|
||||
return
|
||||
M.visible_message("<b>\The [user]</b> feeds some of [loaded] to \the [M] with \the [src].")
|
||||
@@ -119,7 +119,7 @@
|
||||
update_icon()
|
||||
return
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("You don't have anything on \the [src].")) //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK
|
||||
to_chat(user, span_warning("You don't have anything on \the [src].")) //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK
|
||||
return
|
||||
|
||||
/obj/item/material/kitchen/utensil/on_rag_wipe()
|
||||
|
||||
@@ -87,12 +87,12 @@
|
||||
|
||||
/obj/item/material/snow/snowball/attack_self(mob/user as mob)
|
||||
if(user.a_intent == I_HURT)
|
||||
to_chat(user, SPAN_NOTICE("You smash the snowball in your hand."))
|
||||
to_chat(user, span_notice("You smash the snowball in your hand."))
|
||||
var/atom/S = new /obj/item/stack/material/snow(user.loc)
|
||||
qdel(src)
|
||||
user.put_in_hands(S)
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You start compacting the snowball."))
|
||||
to_chat(user, span_notice("You start compacting the snowball."))
|
||||
if(do_after(user, 2 SECONDS))
|
||||
var/atom/S = new /obj/item/material/snow/snowball/reinforced(user.loc)
|
||||
qdel(src)
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
continue
|
||||
if(LAZYLEN(T.contents) > 20) //Avoiding potential perf issues by not iterating over large piles of objs
|
||||
if(!anti_spam)
|
||||
to_chat(usr, SPAN_NOTICE("Too many items! Couldn't fully unfold the blanket!"))
|
||||
to_chat(usr, span_notice("Too many items! Couldn't fully unfold the blanket!"))
|
||||
anti_spam = TRUE
|
||||
continue
|
||||
for(var/obj/O in T)
|
||||
@@ -101,9 +101,9 @@
|
||||
/obj/structure/picnic_blanket_deployed/examine(mob/user)
|
||||
. = ..()
|
||||
if(blanket_type == CENTER)
|
||||
. += SPAN_NOTICE("This is the center of a folded out picnic blanket. You can use this to start packing it up!")
|
||||
. += span_notice("This is the center of a folded out picnic blanket. You can use this to start packing it up!")
|
||||
if(blanket_type == SIDE)
|
||||
. += SPAN_NOTICE("This is one of the edges. Look for the center to start packing!")
|
||||
. += span_notice("This is one of the edges. Look for the center to start packing!")
|
||||
|
||||
//For Mapping use only.
|
||||
//If player folds it back up, it reverts to normal type so the Initialize() won't cause issues
|
||||
|
||||
@@ -322,7 +322,7 @@ var/list/tape_roll_applications = list()
|
||||
var/mob/M = mover
|
||||
add_fingerprint(M)
|
||||
if(!allowed(M)) //only select few learn art of not crumpling the tape
|
||||
to_chat(M, span("warning", "You are not supposed to go past \the [src]..."))
|
||||
to_chat(M, span_warning("You are not supposed to go past \the [src]..."))
|
||||
if(M.a_intent == I_HELP && !(istype(M, /mob/living/simple_mob)))
|
||||
return FALSE
|
||||
crumple()
|
||||
|
||||
@@ -60,10 +60,10 @@
|
||||
//try to crush it
|
||||
if(ispath(trash))
|
||||
if(contents.len && user.a_intent == I_HURT) // only crumple with things inside on harmintent.
|
||||
user.visible_message(SPAN_DANGER("[user] crushes \the [src], spilling its contents everywhere!"), SPAN_DANGER("You crush \the [src], spilling its contents everywhere!"))
|
||||
user.visible_message(span_danger("[user] crushes \the [src], spilling its contents everywhere!"), span_danger("You crush \the [src], spilling its contents everywhere!"))
|
||||
spill()
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You crumple up \the [src].")) //make trash
|
||||
to_chat(user, span_notice("You crumple up \the [src].")) //make trash
|
||||
playsound(src.loc, 'sound/items/drop/wrapper.ogg', 30, 1)
|
||||
var/obj/item/trash = new src.trash()
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user