mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 08:35:39 +01:00
refactors most spans
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
if(href_list["write"])
|
||||
var/id = href_list["write"]
|
||||
if(free_space <= 0)
|
||||
to_chat(usr, "<span class='info'>There isn't enough space left on \the [src] to write anything.</span>")
|
||||
to_chat(usr, span_info("There isn't enough space left on \the [src] to write anything."))
|
||||
return
|
||||
|
||||
var/raw_t = tgui_input_text(usr, "Enter what you want to write:", "Write", multiline = TRUE, prevent_enter = TRUE)
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
|
||||
if(fields > 50)//large amount of fields creates a heavy load on the server, see updateinfolinks() and addtofield()
|
||||
to_chat(usr, "<span class='warning'>Too many fields. Sorry, you can't do this.</span>")
|
||||
to_chat(usr, span_warning("Too many fields. Sorry, you can't do this."))
|
||||
fields = last_fields_value
|
||||
return
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
copy.name = "Copy - " + c.name
|
||||
copy.fields = c.fields
|
||||
copy.updateinfolinks()
|
||||
to_chat(usr, "<span class='notice'>You tear off the carbon-copy!</span>")
|
||||
to_chat(usr, span_notice("You tear off the carbon-copy!"))
|
||||
c.copied = 1
|
||||
copy.iscopy = 1
|
||||
copy.update_icon()
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
W.loc = src
|
||||
if(istype(W, /obj/item/paper))
|
||||
toppaper = W
|
||||
to_chat(user, "<span class='notice'>You clip the [W] onto \the [src].</span>")
|
||||
to_chat(user, span_notice("You clip the [W] onto \the [src]."))
|
||||
update_icon()
|
||||
|
||||
else if(istype(toppaper) && istype(W, /obj/item/pen))
|
||||
@@ -64,7 +64,7 @@
|
||||
P.loc = src
|
||||
toppaper = P
|
||||
update_icon()
|
||||
to_chat(user, "<span class='notice'>You clip the [P] onto \the [src].</span>")
|
||||
to_chat(user, span_notice("You clip the [P] onto \the [src]."))
|
||||
|
||||
/obj/item/clipboard/attack_self(mob/user as mob)
|
||||
var/dat = "<title>Clipboard</title>"
|
||||
@@ -110,7 +110,7 @@
|
||||
usr.drop_item()
|
||||
W.loc = src
|
||||
haspen = W
|
||||
to_chat(usr, "<span class='notice'>You slot the pen into \the [src].</span>")
|
||||
to_chat(usr, span_notice("You slot the pen into \the [src]."))
|
||||
|
||||
else if(href_list["write"])
|
||||
var/obj/item/P = locate(href_list["write"])
|
||||
@@ -171,7 +171,7 @@
|
||||
var/obj/item/P = locate(href_list["top"])
|
||||
if(P && (P.loc == src) && istype(P, /obj/item/paper) )
|
||||
toppaper = P
|
||||
to_chat(usr, "<span class='notice'>You move [P.name] to the top.</span>")
|
||||
to_chat(usr, span_notice("You move [P.name] to the top."))
|
||||
|
||||
//Update everything
|
||||
attack_self(usr)
|
||||
|
||||
@@ -77,7 +77,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
if(L.stat || L.restrained())
|
||||
return
|
||||
if(last_fax_role_request && (world.time - last_fax_role_request < 5 MINUTES))
|
||||
to_chat(L, "<span class='warning'>The global automated relays are still recalibrating. Try again later or relay your request in written form for processing.</span>")
|
||||
to_chat(L, span_warning("The global automated relays are still recalibrating. Try again later or relay your request in written form for processing."))
|
||||
return
|
||||
|
||||
var/confirmation = tgui_alert(L, "Are you sure you want to send automated crew request?", "Confirmation", list("Yes", "No", "Cancel"))
|
||||
@@ -115,7 +115,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
|
||||
var/datum/department/ping_dept = SSjob.get_ping_role(role)
|
||||
if(!ping_dept)
|
||||
to_chat(L, "<span class='warning'>Selected job cannot be requested for \[ERRORDEPTNOTFOUND] reason. Please report this to system administrator.</span>")
|
||||
to_chat(L, span_warning("Selected job cannot be requested for \[ERRORDEPTNOTFOUND] reason. Please report this to system administrator."))
|
||||
return
|
||||
var/message_color = "#FFFFFF"
|
||||
var/ping_name = null
|
||||
@@ -141,13 +141,13 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
if(DEPARTMENT_TALON)
|
||||
ping_name = "Offmap"
|
||||
if(!ping_name)
|
||||
to_chat(L, "<span class='warning'>Selected job cannot be requested for \[ERRORUNKNOWNDEPT] reason. Please report this to system administrator.</span>")
|
||||
to_chat(L, span_warning("Selected job cannot be requested for \[ERRORUNKNOWNDEPT] reason. Please report this to system administrator."))
|
||||
return
|
||||
message_color = ping_dept.color
|
||||
|
||||
message_chat_rolerequest(message_color, ping_name, reason, role)
|
||||
last_fax_role_request = world.time
|
||||
to_chat(L, "<span class='notice'>Your request was transmitted.</span>")
|
||||
to_chat(L, span_notice("Your request was transmitted."))
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/tgui_interact(mob/user, datum/tgui/ui)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
@@ -218,7 +218,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
return
|
||||
copyitem.forceMove(loc)
|
||||
usr.put_in_hands(copyitem)
|
||||
to_chat(usr, "<span class='notice'>You take \the [copyitem] out of \the [src].</span>")
|
||||
to_chat(usr, span_notice("You take \the [copyitem] out of \the [src]."))
|
||||
copyitem = null
|
||||
if("send_automated_staff_request")
|
||||
request_roles()
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
/obj/structure/filingcabinet/attackby(obj/item/P as obj, mob/user as mob)
|
||||
if(istype(P, /obj/item/paper) || istype(P, /obj/item/folder) || istype(P, /obj/item/photo) || istype(P, /obj/item/paper_bundle))
|
||||
to_chat(user, "<span class='notice'>You put [P] in [src].</span>")
|
||||
to_chat(user, span_notice("You put [P] in [src]."))
|
||||
user.drop_item()
|
||||
P.loc = src
|
||||
open_animation()
|
||||
@@ -41,24 +41,24 @@
|
||||
else if(P.has_tool_quality(TOOL_WRENCH))
|
||||
playsound(src, P.usesound, 50, 1)
|
||||
anchored = !anchored
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||
to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
|
||||
else if(P.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
to_chat(user, "<span class='notice'>You begin taking the [name] apart.</span>")
|
||||
to_chat(user, span_notice("You begin taking the [name] apart."))
|
||||
playsound(src, P.usesound, 50, 1)
|
||||
if(do_after(user, 10 * P.toolspeed))
|
||||
playsound(src, P.usesound, 50, 1)
|
||||
to_chat(user, "<span class='notice'>You take the [name] apart.</span>")
|
||||
to_chat(user, span_notice("You take the [name] apart."))
|
||||
new /obj/item/stack/material/steel( src.loc, 4 )
|
||||
for(var/obj/item/I in contents)
|
||||
I.forceMove(loc)
|
||||
qdel(src)
|
||||
return
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You can't put [P] in [src]!</span>")
|
||||
to_chat(user, span_notice("You can't put [P] in [src]!"))
|
||||
|
||||
/obj/structure/filingcabinet/attack_hand(mob/user as mob)
|
||||
if(contents.len <= 0)
|
||||
to_chat(user, "<span class='notice'>\The [src] is empty.</span>")
|
||||
to_chat(user, span_notice("\The [src] is empty."))
|
||||
return
|
||||
|
||||
tgui_interact(user)
|
||||
@@ -75,9 +75,9 @@
|
||||
I.loc = loc
|
||||
if(prob(25))
|
||||
step_rand(I)
|
||||
to_chat(user, "<span class='notice'>You pull \a [I] out of [src] at random.</span>")
|
||||
to_chat(user, span_notice("You pull \a [I] out of [src] at random."))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You find nothing in [src].</span>")
|
||||
to_chat(user, span_notice("You find nothing in [src]."))
|
||||
|
||||
/obj/structure/filingcabinet/tgui_state(mob/user)
|
||||
return GLOB.tgui_physical_state
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
if(istype(W, /obj/item/paper) || istype(W, /obj/item/photo) || istype(W, /obj/item/paper_bundle))
|
||||
user.drop_item()
|
||||
W.loc = src
|
||||
to_chat(user, "<span class='notice'>You put the [W] into \the [src].</span>")
|
||||
to_chat(user, span_notice("You put the [W] into \the [src]."))
|
||||
update_icon()
|
||||
else if(istype(W, /obj/item/pen))
|
||||
var/n_name = sanitizeSafe(tgui_input_text(user, "What would you like to label the folder?", "Folder Labelling", null, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
@@ -79,7 +79,7 @@
|
||||
for(var/obj/item/paper/P in T)
|
||||
P.loc = src
|
||||
update_icon()
|
||||
to_chat(user, "<span class='notice'>You tuck the [P] into \the [src].</span>")
|
||||
to_chat(user, span_notice("You tuck the [P] into \the [src]."))
|
||||
|
||||
/obj/item/folder/attack_self(mob/user as mob)
|
||||
var/dat = "<title>[name]</title>"
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
if(in_range(user, src) || istype(user, /mob/observer/dead))
|
||||
show_content(usr)
|
||||
else
|
||||
. += "<span class='notice'>You have to go closer if you want to read it.</span>"
|
||||
. += span_notice("You have to go closer if you want to read it.")
|
||||
|
||||
/obj/item/paper/proc/show_content(var/mob/user, var/forceshow=0)
|
||||
if(!(forceshow || (istype(user, /mob/living/carbon/human) || istype(user, /mob/observer/dead) || istype(user, /mob/living/silicon) || (istype(user) && user.universal_understand))))
|
||||
@@ -178,7 +178,7 @@
|
||||
set src in usr
|
||||
|
||||
if((CLUMSY in usr.mutations) && prob(50))
|
||||
to_chat(usr, "<span class='warning'>You cut yourself on the paper.</span>")
|
||||
to_chat(usr, span_warning("You cut yourself on the paper."))
|
||||
return
|
||||
var/n_name = sanitizeSafe(tgui_input_text(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
/obj/item/paper/attack_self(mob/living/user as mob)
|
||||
if(user.a_intent == I_HURT)
|
||||
if(icon_state == "scrap")
|
||||
user.show_message("<span class='warning'>\The [src] is already crumpled.</span>")
|
||||
user.show_message(span_warning("\The [src] is already crumpled."))
|
||||
return
|
||||
//crumple dat paper
|
||||
info = stars(info,85)
|
||||
@@ -227,23 +227,23 @@
|
||||
|
||||
/obj/item/paper/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
|
||||
if(user.zone_sel.selecting == O_EYES)
|
||||
user.visible_message("<span class='notice'>You show the paper to [M]. </span>", \
|
||||
"<span class='notice'> [user] holds up a paper and shows it to [M]. </span>")
|
||||
user.visible_message(span_notice("You show the paper to [M]. "), \
|
||||
span_notice(" [user] holds up a paper and shows it to [M]. "))
|
||||
M.examinate(src)
|
||||
|
||||
else if(user.zone_sel.selecting == O_MOUTH) // lipstick wiping
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(H == user)
|
||||
to_chat(user, "<span class='notice'>You wipe off the lipstick with [src].</span>")
|
||||
to_chat(user, span_notice("You wipe off the lipstick with [src]."))
|
||||
H.lip_style = null
|
||||
H.update_icons_body()
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] begins to wipe [H]'s lipstick off with \the [src].</span>", \
|
||||
"<span class='notice'>You begin to wipe off [H]'s lipstick.</span>")
|
||||
user.visible_message(span_warning("[user] begins to wipe [H]'s lipstick off with \the [src]."), \
|
||||
span_notice("You begin to wipe off [H]'s lipstick."))
|
||||
if(do_after(user, 10) && do_after(H, 10, 5, 0)) //user needs to keep their active hand, H does not.
|
||||
user.visible_message("<span class='notice'>[user] wipes [H]'s lipstick off with \the [src].</span>", \
|
||||
"<span class='notice'>You wipe off [H]'s lipstick.</span>")
|
||||
user.visible_message(span_notice("[user] wipes [H]'s lipstick off with \the [src]."), \
|
||||
span_notice("You wipe off [H]'s lipstick."))
|
||||
H.lip_style = null
|
||||
H.update_icons_body()
|
||||
|
||||
@@ -428,7 +428,7 @@
|
||||
//var/t = strip_html_simple(input(usr, "What text do you wish to add to " + (id=="end" ? "the end of the paper" : "field "+id) + "?", "[name]", null),8192) as message
|
||||
|
||||
if(free_space <= 0)
|
||||
to_chat(usr, "<span class='info'>There isn't enough space left on \the [src] to write anything.</span>")
|
||||
to_chat(usr, span_info("There isn't enough space left on \the [src] to write anything."))
|
||||
return
|
||||
|
||||
var/raw = tgui_input_text(usr, "Enter what you want to write:", "Write", multiline = TRUE, prevent_enter = TRUE)
|
||||
@@ -489,7 +489,7 @@
|
||||
|
||||
|
||||
if(fields > 50)//large amount of fields creates a heavy load on the server, see updateinfolinks() and addtofield()
|
||||
to_chat(usr, "<span class='warning'>Too many fields. Sorry, you can't do this.</span>")
|
||||
to_chat(usr, span_warning("Too many fields. Sorry, you can't do this."))
|
||||
fields = last_fields_value
|
||||
return
|
||||
|
||||
@@ -532,20 +532,20 @@
|
||||
src.loc = CB
|
||||
CB.toppaper = src
|
||||
CB.update_icon()
|
||||
to_chat(user, "<span class='notice'>You clip the [src] onto \the [CB].</span>")
|
||||
to_chat(user, span_notice("You clip the [src] onto \the [CB]."))
|
||||
|
||||
if(istype(P, /obj/item/folder))
|
||||
if(src.loc == user)
|
||||
user.drop_from_inventory(src)
|
||||
src.loc = P
|
||||
P.update_icon()
|
||||
to_chat(user, "<span class='notice'>You tuck the [src] into \the [P].</span>")
|
||||
to_chat(user, span_notice("You tuck the [src] into \the [P]."))
|
||||
|
||||
if(istype(P, /obj/item/paper) || istype(P, /obj/item/photo))
|
||||
if (istype(P, /obj/item/paper/carbon))
|
||||
var/obj/item/paper/carbon/C = P
|
||||
if (!C.iscopy && !C.copied)
|
||||
to_chat(user, "<span class='notice'>Take off the carbon copy first.</span>")
|
||||
to_chat(user, span_notice("Take off the carbon copy first."))
|
||||
add_fingerprint(user)
|
||||
return
|
||||
var/obj/item/paper_bundle/B = new(src.loc)
|
||||
@@ -577,7 +577,7 @@
|
||||
src.loc = get_turf(h_user)
|
||||
if(h_user.client) h_user.client.screen -= src
|
||||
h_user.put_in_hands(B)
|
||||
to_chat(user, "<span class='notice'>You clip the [P.name] to [(src.name == "paper") ? "the paper" : src.name].</span>")
|
||||
to_chat(user, span_notice("You clip the [P.name] to [(src.name == "paper") ? "the paper" : src.name]."))
|
||||
src.loc = B
|
||||
P.loc = B
|
||||
|
||||
@@ -587,7 +587,7 @@
|
||||
|
||||
else if(istype(P, /obj/item/pen))
|
||||
if(icon_state == "scrap")
|
||||
to_chat(usr, "<span class='warning'>\The [src] is too crumpled to write on.</span>")
|
||||
to_chat(usr, span_warning("\The [src] is too crumpled to write on."))
|
||||
return
|
||||
|
||||
var/obj/item/pen/robopen/RP = P
|
||||
@@ -627,7 +627,7 @@
|
||||
|
||||
if(istype(P, /obj/item/stamp/clown))
|
||||
if(!clown)
|
||||
to_chat(user, "<span class='notice'>You are totally unable to use the stamp. HONK!</span>")
|
||||
to_chat(user, span_notice("You are totally unable to use the stamp. HONK!"))
|
||||
return
|
||||
|
||||
if(!ico)
|
||||
@@ -641,7 +641,7 @@
|
||||
add_overlay(stampoverlay)
|
||||
|
||||
playsound(src, 'sound/bureaucracy/stamp.ogg', 50, 1)
|
||||
to_chat(user, "<span class='notice'>You stamp the paper with your rubber stamp.</span>")
|
||||
to_chat(user, span_notice("You stamp the paper with your rubber stamp."))
|
||||
|
||||
else if(istype(P, /obj/item/flame))
|
||||
burnpaper(P, user)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
if (istype(W, /obj/item/paper/carbon))
|
||||
var/obj/item/paper/carbon/C = W
|
||||
if (!C.iscopy && !C.copied)
|
||||
to_chat(user, "<span class='notice'>Take off the carbon copy first.</span>")
|
||||
to_chat(user, span_notice("Take off the carbon copy first."))
|
||||
add_fingerprint(user)
|
||||
return
|
||||
// adding sheets
|
||||
@@ -43,7 +43,7 @@
|
||||
O.add_fingerprint(usr)
|
||||
pages.Add(O)
|
||||
|
||||
to_chat(user, "<span class='notice'>You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
|
||||
to_chat(user, span_notice("You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]."))
|
||||
qdel(W)
|
||||
else
|
||||
if(istype(W, /obj/item/tape_roll))
|
||||
@@ -60,9 +60,9 @@
|
||||
|
||||
/obj/item/paper_bundle/proc/insert_sheet_at(mob/user, var/index, obj/item/sheet)
|
||||
if(istype(sheet, /obj/item/paper))
|
||||
to_chat(user, "<span class='notice'>You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
|
||||
to_chat(user, span_notice("You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]."))
|
||||
else if(istype(sheet, /obj/item/photo))
|
||||
to_chat(user, "<span class='notice'>You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
|
||||
to_chat(user, span_notice("You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]."))
|
||||
|
||||
user.drop_from_inventory(sheet)
|
||||
sheet.loc = src
|
||||
@@ -101,7 +101,7 @@
|
||||
if(Adjacent(user))
|
||||
show_content(user)
|
||||
else
|
||||
. += "<span class='notice'>It is too far away.</span>"
|
||||
. += span_notice("It is too far away.")
|
||||
|
||||
/obj/item/paper_bundle/proc/show_content(mob/user as mob)
|
||||
var/dat
|
||||
@@ -169,7 +169,7 @@
|
||||
usr.put_in_hands(W)
|
||||
pages.Remove(pages[page])
|
||||
|
||||
to_chat(usr, "<span class='notice'>You remove the [W.name] from the bundle.</span>")
|
||||
to_chat(usr, span_notice("You remove the [W.name] from the bundle."))
|
||||
|
||||
if(pages.len <= 1)
|
||||
var/obj/item/paper/P = src[1]
|
||||
@@ -187,7 +187,7 @@
|
||||
src.attack_self(usr)
|
||||
updateUsrDialog()
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You need to hold it in hands!</span>")
|
||||
to_chat(usr, span_notice("You need to hold it in hands!"))
|
||||
|
||||
/obj/item/paper_bundle/verb/rename()
|
||||
set name = "Rename bundle"
|
||||
@@ -206,7 +206,7 @@
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
|
||||
to_chat(usr, "<span class='notice'>You loosen the bundle.</span>")
|
||||
to_chat(usr, span_notice("You loosen the bundle."))
|
||||
for(var/obj/O in src)
|
||||
O.loc = usr.loc
|
||||
O.layer = initial(O.layer)
|
||||
|
||||
@@ -76,10 +76,10 @@
|
||||
if (H.hand)
|
||||
temp = H.organs_by_name["l_hand"]
|
||||
if(temp && !temp.is_usable())
|
||||
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
|
||||
to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>You pick up the [src].</span>")
|
||||
to_chat(user, span_notice("You pick up the [src]."))
|
||||
user.put_in_hands(src)
|
||||
|
||||
return
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
if (H.hand)
|
||||
temp = H.organs_by_name["l_hand"]
|
||||
if(temp && !temp.is_usable())
|
||||
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
|
||||
to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>You pick up the [src].</span>")
|
||||
to_chat(user, span_notice("You pick up the [src]."))
|
||||
user.put_in_hands(src)
|
||||
|
||||
return
|
||||
@@ -45,7 +45,7 @@
|
||||
if (H.hand)
|
||||
temp = H.organs_by_name["l_hand"]
|
||||
if(temp && !temp.is_usable())
|
||||
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
|
||||
to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
|
||||
return
|
||||
var/response = ""
|
||||
if(!papers.len > 0)
|
||||
@@ -75,9 +75,9 @@
|
||||
|
||||
P.loc = user.loc
|
||||
user.put_in_hands(P)
|
||||
to_chat(user, "<span class='notice'>You take [P] out of the [src].</span>")
|
||||
to_chat(user, span_notice("You take [P] out of the [src]."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>[src] is empty!</span>")
|
||||
to_chat(user, span_notice("[src] is empty!"))
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
user.drop_item()
|
||||
i.loc = src
|
||||
to_chat(user, "<span class='notice'>You put [i] in [src].</span>")
|
||||
to_chat(user, span_notice("You put [i] in [src]."))
|
||||
papers.Add(i)
|
||||
update_icon()
|
||||
amount++
|
||||
@@ -99,9 +99,9 @@
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
if(amount)
|
||||
. += "<span class='notice'>There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.</span>"
|
||||
. += span_notice("There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.")
|
||||
else
|
||||
. += "<span class='notice'>There are no papers in the bin.</span>"
|
||||
. += span_notice("There are no papers in the bin.")
|
||||
|
||||
/obj/item/paper_bin/update_icon()
|
||||
if(amount < 1)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
add_overlay(stampoverlay)
|
||||
|
||||
/obj/item/paperplane/attack_self(mob/user)
|
||||
to_chat(user, "<span class='notice'>You unfold [src].</span>")
|
||||
to_chat(user, span_notice("You unfold [src]."))
|
||||
var/atom/movable/internal_paper_tmp = internalPaper
|
||||
internal_paper_tmp.forceMove(loc)
|
||||
internalPaper = null
|
||||
@@ -55,7 +55,7 @@
|
||||
/obj/item/paperplane/attackby(obj/item/P, mob/living/carbon/human/user, params)
|
||||
..()
|
||||
if(istype(P, /obj/item/pen))
|
||||
to_chat(user, "<span class='notice'>You should unfold [src] before changing it.</span>")
|
||||
to_chat(user, span_notice("You should unfold [src] before changing it."))
|
||||
return
|
||||
|
||||
else if(istype(P, /obj/item/stamp)) //we don't randomize stamps on a paperplane
|
||||
@@ -64,8 +64,8 @@
|
||||
|
||||
else if(is_hot(P))
|
||||
if(user.disabilities & CLUMSY && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites themselves!</span>", \
|
||||
"<span class='userdanger'>You miss the [src] and accidentally light yourself on fire!</span>")
|
||||
user.visible_message(span_warning("[user] accidentally ignites themselves!"), \
|
||||
span_userdanger("You miss the [src] and accidentally light yourself on fire!"))
|
||||
user.unEquip(P)
|
||||
user.adjust_fire_stacks(1)
|
||||
user.IgniteMob()
|
||||
@@ -74,7 +74,7 @@
|
||||
if(!(in_range(user, src))) //to prevent issues as a result of telepathically lighting a paper
|
||||
return
|
||||
user.unEquip(src)
|
||||
user.visible_message("<span class='danger'>[user] lights [src] ablaze with [P]!</span>", "<span class='danger'>You light [src] on fire!</span>")
|
||||
user.visible_message(span_danger("[user] lights [src] ablaze with [P]!"), span_danger("You light [src] on fire!"))
|
||||
fire_act()
|
||||
|
||||
add_fingerprint(user)
|
||||
@@ -86,7 +86,7 @@
|
||||
if(prob(2))
|
||||
if((H.head && H.head.body_parts_covered & EYES) || (H.wear_mask && H.wear_mask.body_parts_covered & EYES) || (H.glasses && H.glasses.body_parts_covered & EYES))
|
||||
return
|
||||
visible_message("<span class='danger'>\The [src] hits [H] in the eye!</span>")
|
||||
visible_message(span_danger("\The [src] hits [H] in the eye!"))
|
||||
H.eye_blurry += 10
|
||||
var/obj/item/organ/internal/eyes/E = H.internal_organs_by_name[O_EYES]
|
||||
if(E)
|
||||
@@ -97,9 +97,9 @@
|
||||
if ( istype(user) )
|
||||
if( (!in_range(src, user)) || user.stat || user.restrained() )
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You fold [src] into the shape of a plane!</span>")
|
||||
to_chat(user, span_notice("You fold [src] into the shape of a plane!"))
|
||||
user.unEquip(src)
|
||||
I = new /obj/item/paperplane(user, src)
|
||||
user.put_in_hands(I)
|
||||
else
|
||||
to_chat(user, "<span class='notice'> You lack the dexterity to fold \the [src]. </span>")
|
||||
to_chat(user, span_notice(" You lack the dexterity to fold \the [src]. "))
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
else if(W.has_tool_quality(TOOL_WRENCH))
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
anchored = !anchored
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||
to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
|
||||
return
|
||||
else if(default_part_replacement(user, W))
|
||||
return
|
||||
@@ -55,7 +55,7 @@
|
||||
if(inoperable())
|
||||
return // Need powah!
|
||||
if(paperamount == max_paper)
|
||||
to_chat(user, "<span class='warning'>\The [src] is full; please empty it before you continue.</span>")
|
||||
to_chat(user, span_warning("\The [src] is full; please empty it before you continue."))
|
||||
return
|
||||
paperamount += paper_result
|
||||
user.drop_from_inventory(W)
|
||||
@@ -63,7 +63,7 @@
|
||||
playsound(src, 'sound/items/pshred.ogg', 75, 1)
|
||||
flick(shred_anim, src)
|
||||
if(paperamount > max_paper)
|
||||
to_chat(user,"<span class='danger'>\The [src] was too full, and shredded paper goes everywhere!</span>")
|
||||
to_chat(user,span_danger("\The [src] was too full, and shredded paper goes everywhere!"))
|
||||
for(var/i=(paperamount-max_paper);i>0;i--)
|
||||
var/obj/item/shreddedp/SP = get_shredded_paper()
|
||||
SP.loc = get_turf(src)
|
||||
@@ -82,7 +82,7 @@
|
||||
return
|
||||
|
||||
if(!paperamount)
|
||||
to_chat(usr, "<span class='notice'>\The [src] is empty.</span>")
|
||||
to_chat(usr, span_notice("\The [src] is empty."))
|
||||
return
|
||||
|
||||
empty_bin(usr)
|
||||
@@ -94,7 +94,7 @@
|
||||
empty_into = null
|
||||
|
||||
if(empty_into && empty_into.contents.len >= empty_into.storage_slots)
|
||||
to_chat(user, "<span class='notice'>\The [empty_into] is full.</span>")
|
||||
to_chat(user, span_notice("\The [empty_into] is full."))
|
||||
return
|
||||
|
||||
while(paperamount)
|
||||
@@ -106,12 +106,12 @@
|
||||
break
|
||||
if(empty_into)
|
||||
if(paperamount)
|
||||
to_chat(user, "<span class='notice'>You fill \the [empty_into] with as much shredded paper as it will carry.</span>")
|
||||
to_chat(user, span_notice("You fill \the [empty_into] with as much shredded paper as it will carry."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You empty \the [src] into \the [empty_into].</span>")
|
||||
to_chat(user, span_notice("You empty \the [src] into \the [empty_into]."))
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You empty \the [src].</span>")
|
||||
to_chat(user, span_notice("You empty \the [src]."))
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/papershredder/proc/get_shredded_paper()
|
||||
@@ -166,15 +166,15 @@
|
||||
if(user.restrained())
|
||||
return
|
||||
if(!P.lit)
|
||||
to_chat(user, "<span class='warning'>\The [P] is not lit.</span>")
|
||||
to_chat(user, span_warning("\The [P] is not lit."))
|
||||
return
|
||||
user.visible_message("<span class='warning'>\The [user] holds \the [P] up to \the [src]. It looks like [TU.he] [TU.is] trying to burn it!</span>", \
|
||||
"<span class='warning'>You hold \the [P] up to \the [src], burning it slowly.</span>")
|
||||
user.visible_message(span_warning("\The [user] holds \the [P] up to \the [src]. It looks like [TU.he] [TU.is] trying to burn it!"), \
|
||||
span_warning("You hold \the [P] up to \the [src], burning it slowly."))
|
||||
if(!do_after(user,20))
|
||||
to_chat(user, "<span class='warning'>You must hold \the [P] steady to burn \the [src].</span>")
|
||||
to_chat(user, span_warning("You must hold \the [P] steady to burn \the [src]."))
|
||||
return
|
||||
user.visible_message("<span class='danger'>\The [user] burns right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap.</span>", \
|
||||
"<span class='danger'>You burn right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap.</span>")
|
||||
user.visible_message(span_danger("\The [user] burns right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap."), \
|
||||
span_danger("You burn right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap."))
|
||||
FireBurn()
|
||||
|
||||
/obj/item/shreddedp/proc/FireBurn()
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
if(!user.checkClickCooldown())
|
||||
return
|
||||
user.setClickCooldown(1 SECOND)
|
||||
to_chat(user, "<span class='notice'>Click.</span>")
|
||||
to_chat(user, span_notice("Click."))
|
||||
playsound(src, 'sound/items/penclick.ogg', 50, 1)
|
||||
|
||||
/*
|
||||
@@ -101,7 +101,7 @@
|
||||
var/colors = list("black","blue","red")
|
||||
|
||||
/obj/item/pen/AltClick(mob/user)
|
||||
to_chat(user, "<span class='notice'>Click.</span>")
|
||||
to_chat(user, span_notice("Click."))
|
||||
playsound(src, 'sound/items/penclick.ogg', 50, 1)
|
||||
return
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
else
|
||||
icon_state = "pen_[colour]"
|
||||
|
||||
to_chat(user, "<span class='notice'>Changed color to '[colour].'</span>")
|
||||
to_chat(user, span_notice("Changed color to '[colour].'"))
|
||||
|
||||
/obj/item/pen/invisible
|
||||
desc = "It's an invisble pen marker."
|
||||
@@ -187,7 +187,7 @@
|
||||
else
|
||||
activate(user)
|
||||
|
||||
to_chat(user, "<span class='notice'>You [active ? "de" : ""]activate \the [src]'s blade.</span>")
|
||||
to_chat(user, span_notice("You [active ? "de" : ""]activate \the [src]'s blade."))
|
||||
|
||||
/obj/item/pen/blade/proc/activate(mob/living/user)
|
||||
if(active)
|
||||
@@ -317,7 +317,7 @@
|
||||
colour = COLOR_WHITE
|
||||
else
|
||||
colour = COLOR_BLACK
|
||||
to_chat(usr, "<span class='info'>You select the [lowertext(selected_type)] ink container.</span>")
|
||||
to_chat(usr, span_info("You select the [lowertext(selected_type)] ink container."))
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -67,10 +67,10 @@
|
||||
if(copyitem)
|
||||
copyitem.loc = usr.loc
|
||||
usr.put_in_hands(copyitem)
|
||||
to_chat(usr, "<span class='notice'>You take \the [copyitem] out of \the [src].</span>")
|
||||
to_chat(usr, span_notice("You take \the [copyitem] out of \the [src]."))
|
||||
copyitem = null
|
||||
else if(has_buckled_mobs())
|
||||
to_chat(buckled_mobs[1], "<span class='notice'>You feel a slight pressure on your ass.</span>") // It can't eject your asscheeks, but it'll try.
|
||||
to_chat(buckled_mobs[1], span_notice("You feel a slight pressure on your ass.")) // It can't eject your asscheeks, but it'll try.
|
||||
. = TRUE
|
||||
if("set_copies")
|
||||
copies = clamp(text2num(params["num_copies"]), 1, maxcopies)
|
||||
@@ -111,31 +111,31 @@
|
||||
playsound(src, "sound/machines/copier.ogg", 100, 1)
|
||||
sleep(11)
|
||||
copy(copyitem)
|
||||
audible_message("<span class='notice'>You can hear [src] whirring as it finishes printing.</span>", runemessage = "whirr")
|
||||
audible_message(span_notice("You can hear [src] whirring as it finishes printing."), runemessage = "whirr")
|
||||
playsound(src, "sound/machines/buzzbeep.ogg", 30)
|
||||
else if (istype(copyitem, /obj/item/photo))
|
||||
playsound(src, "sound/machines/copier.ogg", 100, 1)
|
||||
sleep(11)
|
||||
photocopy(copyitem)
|
||||
audible_message("<span class='notice'>You can hear [src] whirring as it finishes printing.</span>", runemessage = "whirr")
|
||||
audible_message(span_notice("You can hear [src] whirring as it finishes printing."), runemessage = "whirr")
|
||||
playsound(src, "sound/machines/buzzbeep.ogg", 30)
|
||||
else if (istype(copyitem, /obj/item/paper_bundle))
|
||||
sleep(11)
|
||||
playsound(src, "sound/machines/copier.ogg", 100, 1)
|
||||
var/obj/item/paper_bundle/B = bundlecopy(copyitem)
|
||||
sleep(11*B.pages.len)
|
||||
audible_message("<span class='notice'>You can hear [src] whirring as it finishes printing.</span>", runemessage = "whirr")
|
||||
audible_message(span_notice("You can hear [src] whirring as it finishes printing."), runemessage = "whirr")
|
||||
playsound(src, "sound/machines/buzzbeep.ogg", 30)
|
||||
else if (has_buckled_mobs()) // VOREStation EDIT: For ass-copying.
|
||||
playsound(src, "sound/machines/copier.ogg", 100, 1)
|
||||
audible_message("<span class='notice'>You can hear [src] whirring as it attempts to scan.</span>", runemessage = "whirr")
|
||||
audible_message(span_notice("You can hear [src] whirring as it attempts to scan."), runemessage = "whirr")
|
||||
sleep(rand(20,45)) // Sit with your bare ass on the copier for a random time, feel like a fool, get stared at.
|
||||
copyass(user)
|
||||
sleep(15)
|
||||
audible_message("<span class='notice'>You can hear [src] whirring as it finishes printing.</span>", runemessage = "whirr")
|
||||
audible_message(span_notice("You can hear [src] whirring as it finishes printing."), runemessage = "whirr")
|
||||
playsound(src, "sound/machines/buzzbeep.ogg", 30)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [copyitem] can't be copied by [src].</span>")
|
||||
to_chat(user, span_warning("\The [copyitem] can't be copied by [src]."))
|
||||
playsound(src, "sound/machines/buzz-two.ogg", 100)
|
||||
break
|
||||
|
||||
@@ -148,28 +148,28 @@
|
||||
user.drop_item()
|
||||
copyitem = O
|
||||
O.loc = src
|
||||
to_chat(user, "<span class='notice'>You insert \the [O] into \the [src].</span>")
|
||||
to_chat(user, span_notice("You insert \the [O] into \the [src]."))
|
||||
playsound(src, "sound/machines/click.ogg", 100, 1)
|
||||
flick(insert_anim, src)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>There is already something in \the [src].</span>")
|
||||
to_chat(user, span_notice("There is already something in \the [src]."))
|
||||
else if(istype(O, /obj/item/toner))
|
||||
if(toner <= 10) //allow replacing when low toner is affecting the print darkness
|
||||
user.drop_item()
|
||||
to_chat(user, "<span class='notice'>You insert the toner cartridge into \the [src].</span>")
|
||||
to_chat(user, span_notice("You insert the toner cartridge into \the [src]."))
|
||||
flick("photocopier_toner", src)
|
||||
playsound(loc, 'sound/machines/click.ogg', 50, 1)
|
||||
var/obj/item/toner/T = O
|
||||
toner += T.toner_amount
|
||||
qdel(O)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>This cartridge is not yet ready for replacement! Use up the rest of the toner.</span>")
|
||||
to_chat(user, span_notice("This cartridge is not yet ready for replacement! Use up the rest of the toner."))
|
||||
flick("photocopier_notoner", src)
|
||||
playsound(loc, 'sound/machines/buzz-two.ogg', 75, 1)
|
||||
else if(O.has_tool_quality(TOOL_WRENCH))
|
||||
playsound(src, O.usesound, 50, 1)
|
||||
anchored = !anchored
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||
to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
|
||||
else if(default_deconstruction_screwdriver(user, O))
|
||||
return
|
||||
else if(default_deconstruction_crowbar(user, O))
|
||||
@@ -230,7 +230,7 @@
|
||||
toner--
|
||||
if(toner == 0)
|
||||
playsound(src, "sound/machines/buzz-sigh.ogg", 100)
|
||||
visible_message("<span class='notice'>A [span_red("red")] light on \the [src] flashes, indicating that it is out of toner.</span>")
|
||||
visible_message(span_notice("A [span_red("red")] light on \the [src] flashes, indicating that it is out of toner."))
|
||||
return c
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
if(toner < 0)
|
||||
toner = 0
|
||||
playsound(src, "sound/machines/buzz-sigh.ogg", 100)
|
||||
visible_message("<span class='notice'>A red light on \the [src] flashes, indicating that it is out of toner.</span>")
|
||||
visible_message(span_notice("A red light on \the [src] flashes, indicating that it is out of toner."))
|
||||
|
||||
return p
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
if(toner < 0)
|
||||
toner = 0
|
||||
playsound(src, "sound/machines/buzz-sigh.ogg", 100)
|
||||
visible_message("<span class='notice'>A red light on \the [src] flashes, indicating that it is out of toner.</span>")
|
||||
visible_message(span_notice("A red light on \the [src] flashes, indicating that it is out of toner."))
|
||||
return p
|
||||
|
||||
// VOREStation Edit Stop
|
||||
@@ -349,7 +349,7 @@
|
||||
if(toner <= 0 && need_toner)
|
||||
toner = 0
|
||||
playsound(src, "sound/machines/buzz-sigh.ogg", 100)
|
||||
visible_message("<span class='notice'>A red light on \the [src] flashes, indicating that it is out of toner.</span>")
|
||||
visible_message(span_notice("A red light on \the [src] flashes, indicating that it is out of toner."))
|
||||
break
|
||||
|
||||
if(istype(W, /obj/item/paper))
|
||||
@@ -376,7 +376,7 @@
|
||||
if(M.item_is_in_hands(C))
|
||||
continue
|
||||
if((C.body_parts_covered & LOWER_TORSO) && !istype(C,/obj/item/clothing/under/permit))
|
||||
to_chat(usr, "<span class='warning'>One needs to not be wearing pants to photocopy one's ass...</span>")
|
||||
to_chat(usr, span_warning("One needs to not be wearing pants to photocopy one's ass..."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ var/global/photo_count = 0
|
||||
show(user)
|
||||
return list(desc)
|
||||
else
|
||||
return list("<span class='notice'>It is too far away to examine.</span>")
|
||||
return list(span_notice("It is too far away to examine."))
|
||||
|
||||
/obj/item/photo/proc/show(mob/user as mob)
|
||||
user << browse_rsc(img, "tmp_photo_[id].png")
|
||||
@@ -143,7 +143,7 @@ var/global/photo_count = 0
|
||||
var/nsize = tgui_input_list(usr, "Photo Size","Pick a size of resulting photo.", list(1,3,5,7))
|
||||
if(nsize)
|
||||
size = nsize
|
||||
to_chat(usr, "<span class='notice'>Camera will now take [size]x[size] photos.</span>")
|
||||
to_chat(usr, span_notice("Camera will now take [size]x[size] photos."))
|
||||
|
||||
/obj/item/camera/attack(mob/living/carbon/human/M as mob, mob/user as mob)
|
||||
return
|
||||
@@ -160,9 +160,9 @@ var/global/photo_count = 0
|
||||
/obj/item/camera/attackby(obj/item/I as obj, mob/user as mob)
|
||||
if(istype(I, /obj/item/camera_film))
|
||||
if(pictures_left)
|
||||
to_chat(user, "<span class='notice'>[src] still has some film in it!</span>")
|
||||
to_chat(user, span_notice("[src] still has some film in it!"))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You insert [I] into [src].</span>")
|
||||
to_chat(user, span_notice("You insert [I] into [src]."))
|
||||
user.drop_item()
|
||||
qdel(I)
|
||||
pictures_left = pictures_max
|
||||
@@ -248,7 +248,7 @@ var/global/photo_count = 0
|
||||
|
||||
pictures_left--
|
||||
desc = "A polaroid camera. It has [pictures_left] photos left."
|
||||
to_chat(user, "<span class='notice'>[pictures_left] photos left.</span>")
|
||||
to_chat(user, span_notice("[pictures_left] photos left."))
|
||||
icon_state = icon_off
|
||||
on = 0
|
||||
spawn(64)
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
var/mob/living/silicon/robot/C = usr
|
||||
if(C.connected_ai)
|
||||
C.connected_ai.aiCamera.injectaialbum(p.copy(1), " (synced from [C.name])")
|
||||
to_chat(C.connected_ai, "<span class='unconscious'>Image uploaded by [C.name]</span>")
|
||||
to_chat(usr, "<span class='unconscious'>Image synced to remote database</span>") //feedback to the Cyborg player that the picture was taken
|
||||
to_chat(C.connected_ai, span_unconscious("Image uploaded by [C.name]"))
|
||||
to_chat(usr, span_unconscious("Image synced to remote database")) //feedback to the Cyborg player that the picture was taken
|
||||
else
|
||||
to_chat(usr, "<span class='unconscious'>Image recorded</span>")
|
||||
to_chat(usr, span_unconscious("Image recorded"))
|
||||
// Always save locally
|
||||
injectaialbum(p)
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
var/list/nametemp = list()
|
||||
var/find
|
||||
if(cam.aipictures.len == 0)
|
||||
to_chat(usr, "<span class='userdanger'>No images saved</span>")
|
||||
to_chat(usr, span_userdanger("No images saved"))
|
||||
return
|
||||
for(var/obj/item/photo/t in cam.aipictures)
|
||||
nametemp += t.name
|
||||
@@ -67,7 +67,7 @@
|
||||
return
|
||||
|
||||
aipictures -= selection
|
||||
to_chat(usr, "<span class='unconscious'>Local image deleted</span>")
|
||||
to_chat(usr, span_unconscious("Local image deleted"))
|
||||
|
||||
/obj/item/camera/siliconcam/ai_camera/can_capture_turf(turf/T, mob/user)
|
||||
var/mob/living/silicon/ai = user
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
/obj/item/camera/siliconcam/ai_camera/printpicture(mob/user, obj/item/photo/p)
|
||||
injectaialbum(p)
|
||||
to_chat(usr, "<span class='unconscious'>Image recorded</span>")
|
||||
to_chat(usr, span_unconscious("Image recorded"))
|
||||
|
||||
/obj/item/camera/siliconcam/robot_camera/printpicture(mob/user, obj/item/photo/p)
|
||||
injectmasteralbum(p)
|
||||
|
||||
Reference in New Issue
Block a user