mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Convert most spans to defines (#31080)
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
This commit is contained in:
@@ -37,7 +37,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()
|
||||
|
||||
@@ -42,25 +42,25 @@ GLOBAL_VAR(station_report) // Variable to save the station report
|
||||
|
||||
/obj/item/clipboard/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> to remove its pen.</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> to remove its pen.")
|
||||
if(in_range(user, src) && toppaper)
|
||||
. += toppaper.examine(user)
|
||||
|
||||
/obj/item/clipboard/proc/penPlacement(mob/user, obj/item/pen/P, placing)
|
||||
if(placing)
|
||||
if(containedpen)
|
||||
to_chat(user, "<span class='warning'>There's already a pen in [src]!</span>")
|
||||
to_chat(user, SPAN_WARNING("There's already a pen in [src]!"))
|
||||
return
|
||||
if(!is_pen(P))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You slide [P] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You slide [P] into [src]."))
|
||||
user.transfer_item_to(P, src)
|
||||
containedpen = P
|
||||
else
|
||||
if(!containedpen)
|
||||
to_chat(user, "<span class='warning'>There isn't a pen in [src] for you to remove!</span>")
|
||||
to_chat(user, SPAN_WARNING("There isn't a pen in [src] for you to remove!"))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You remove [containedpen] from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [containedpen] from [src]."))
|
||||
user.put_in_hands(containedpen)
|
||||
containedpen = null
|
||||
update_icon()
|
||||
@@ -99,7 +99,7 @@ GLOBAL_VAR(station_report) // Variable to save the station report
|
||||
if(isPaperwork(W)) //If it's a photo, paper bundle, or piece of paper, place it on the clipboard.
|
||||
user.unequip(W)
|
||||
W.forceMove(src)
|
||||
to_chat(user, "<span class='notice'>You clip [W] onto [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You clip [W] onto [src]."))
|
||||
playsound(loc, "pageturn", 50, 1)
|
||||
if(isPaperwork(W) == PAPERWORK)
|
||||
toppaper = W
|
||||
@@ -134,7 +134,7 @@ GLOBAL_VAR(station_report) // Variable to save the station report
|
||||
var/obj/item/P = locate(href_list["remove"]) in src
|
||||
if(isPaperwork(P))
|
||||
usr.put_in_hands(P)
|
||||
to_chat(usr, "<span class='notice'>You remove [P] from [src].</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You remove [P] from [src]."))
|
||||
toppaper = locate(/obj/item/paper) in src
|
||||
if(!toppaper) //In case there's no paper, try find a paper bundle instead
|
||||
toppaper = locate(/obj/item/paper_bundle) in src
|
||||
@@ -153,7 +153,7 @@ GLOBAL_VAR(station_report) // Variable to save the station report
|
||||
var/obj/item/P = locate(href_list["topPaper"]) in src
|
||||
if(P == toppaper)
|
||||
return
|
||||
to_chat(usr, "<span class='notice'>You flick the pages so that [P] is on top.</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You flick the pages so that [P] is on top."))
|
||||
playsound(loc, "pageturn", 50, 1)
|
||||
toppaper = P
|
||||
update_icon()
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
/obj/item/desk_bell/examine(mob/user)
|
||||
. = ..()
|
||||
if(!isnull(attached_signaler))
|
||||
. += "<span class='notice'>There seems to be an antenna sticking out of the base.</span>"
|
||||
. += SPAN_NOTICE("There seems to be an antenna sticking out of the base.")
|
||||
|
||||
/obj/item/desk_bell/Destroy()
|
||||
if(!isnull(attached_signaler))
|
||||
@@ -38,10 +38,10 @@
|
||||
// can only attach its on your person
|
||||
if(istype(I, /obj/item/assembly/signaler))
|
||||
if(!in_inventory)
|
||||
to_chat(user, "<span class='warning'>[src] needs to be in your inventory if you want to attach [I] to it!</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] needs to be in your inventory if you want to attach [I] to it!"))
|
||||
return
|
||||
if(!isnull(attached_signaler))
|
||||
to_chat(user, "<span class='notice'>There's already a signaller attached!</span>")
|
||||
to_chat(user, SPAN_NOTICE("There's already a signaller attached!"))
|
||||
return
|
||||
var/obj/item/assembly/signaler/signal = I
|
||||
user.transfer_item_to(signal, src)
|
||||
@@ -49,8 +49,8 @@
|
||||
if(signal.receiving)
|
||||
RegisterSignal(attached_signaler, COMSIG_ASSEMBLY_PULSED, PROC_REF(on_signal))
|
||||
user.visible_message(
|
||||
"<span class='notice'>[user] attaches [signal] to [src].</span>",
|
||||
"<span class='notice'>You attach [signal] to [src].</span>"
|
||||
SPAN_NOTICE("[user] attaches [signal] to [src]."),
|
||||
SPAN_NOTICE("You attach [signal] to [src].")
|
||||
)
|
||||
return ..()
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
if(ring_cooldown > world.time || !anchored)
|
||||
return TRUE
|
||||
if(!ring_bell(user, from_signaler) && user)
|
||||
to_chat(user, "<span class='notice'>[src] is silent. Some idiot broke it.</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] is silent. Some idiot broke it."))
|
||||
ring_cooldown = world.time + ring_cooldown_length
|
||||
return TRUE
|
||||
|
||||
@@ -92,10 +92,10 @@
|
||||
/obj/item/desk_bell/screwdriver_act(mob/living/user, obj/item/tool)
|
||||
. = TRUE
|
||||
if(broken_ringer)
|
||||
visible_message("<span class='notice'>[user] begins repairing [src]...</span>", "<span class='notice'>You begin repairing [src]...</span>")
|
||||
visible_message(SPAN_NOTICE("[user] begins repairing [src]..."), SPAN_NOTICE("You begin repairing [src]..."))
|
||||
tool.play_tool_sound(src)
|
||||
if(tool.use_tool(src, user, 5 SECONDS))
|
||||
user.visible_message("<span class='notice'>[user] repairs [src].</span>", "<span class='notice'>You repair [src].</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] repairs [src]."), SPAN_NOTICE("You repair [src]."))
|
||||
playsound(user, 'sound/items/change_drill.ogg', 50, vary = TRUE)
|
||||
broken_ringer = FALSE
|
||||
times_rang = 0
|
||||
@@ -106,9 +106,9 @@
|
||||
/obj/item/desk_bell/wrench_act(mob/living/user, obj/item/tool)
|
||||
. = TRUE
|
||||
if(user.a_intent == INTENT_HARM && !in_inventory)
|
||||
visible_message("<span class='notice'>[user] begins taking apart [src]...</span>", "<span class='notice'>You begin taking apart [src]...</span>")
|
||||
visible_message(SPAN_NOTICE("[user] begins taking apart [src]..."), SPAN_NOTICE("You begin taking apart [src]..."))
|
||||
if(tool.use_tool(src, user, 5 SECONDS, volume = tool.tool_volume))
|
||||
visible_message("<span class='notice'>[user] takes apart [src].</span>", "<span class='notice'>You take apart [src].</span>")
|
||||
visible_message(SPAN_NOTICE("[user] takes apart [src]."), SPAN_NOTICE("You take apart [src]."))
|
||||
playsound(user, 'sound/items/deconstruct.ogg', 50, vary = TRUE)
|
||||
new /obj/item/stack/sheet/metal(drop_location(), 2)
|
||||
qdel(src)
|
||||
@@ -129,7 +129,7 @@
|
||||
if(attached_signaler) // in inventory
|
||||
if(!tool.use_tool(src, user, 0.5 SECONDS, volume = tool.tool_volume))
|
||||
return TRUE
|
||||
to_chat(user, "<span class='notice'>You remove [attached_signaler].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [attached_signaler]."))
|
||||
user.put_in_hands(attached_signaler)
|
||||
UnregisterSignal(attached_signaler, COMSIG_ASSEMBLY_PULSED)
|
||||
attached_signaler = null
|
||||
@@ -137,9 +137,9 @@
|
||||
/// Check if the clapper breaks, and if it does, break it
|
||||
/obj/item/desk_bell/proc/check_clapper(mob/living/user)
|
||||
if(prob(times_rang / 50) && ring_cooldown_length)
|
||||
audible_message("<span class='notice'>You hear [src]'s clapper fall off its hinge.</span>")
|
||||
audible_message(SPAN_NOTICE("You hear [src]'s clapper fall off its hinge."))
|
||||
if(user)
|
||||
to_chat(user, "<span class='warning'>Nice job, you broke it.</span>")
|
||||
to_chat(user, SPAN_WARNING("Nice job, you broke it."))
|
||||
broken_ringer = TRUE
|
||||
|
||||
/// Ring the bell
|
||||
|
||||
@@ -48,7 +48,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] to remove its currently stored ID.</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] to remove its currently stored ID.")
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/update_network()
|
||||
if(department != "Unknown")
|
||||
@@ -96,7 +96,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
SStgui.update_uis(src)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else if(istype(used, /obj/item/folder))
|
||||
to_chat(user, "<span class='warning'>The [src] can't accept folders!</span>")
|
||||
to_chat(user, SPAN_WARNING("The [src] can't accept folders!"))
|
||||
return ITEM_INTERACT_COMPLETE //early return so the parent proc doesn't suck up and items that a photocopier would take
|
||||
else
|
||||
return ..()
|
||||
@@ -108,10 +108,10 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
if(!emagged)
|
||||
emagged = TRUE
|
||||
req_one_access = list()
|
||||
to_chat(user, "<span class='notice'>The transmitters realign to an unknown source!</span>")
|
||||
to_chat(user, SPAN_NOTICE("The transmitters realign to an unknown source!"))
|
||||
return TRUE
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You swipe the card through [src], but nothing happens.</span>")
|
||||
to_chat(user, SPAN_WARNING("You swipe the card through [src], but nothing happens."))
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/is_authenticated(mob/user)
|
||||
if(authenticated)
|
||||
@@ -171,13 +171,13 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
if("auth") // log in/out
|
||||
if(!is_authenticated && scan)
|
||||
if(scan.registered_name in GLOB.fax_blacklist)
|
||||
to_chat(usr, "<span class='warning'>Login rejected: individual is blacklisted from fax network.</span>")
|
||||
to_chat(usr, SPAN_WARNING("Login rejected: individual is blacklisted from fax network."))
|
||||
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||
. = FALSE
|
||||
else if(check_access(scan))
|
||||
authenticated = TRUE
|
||||
else // ID doesn't have access to this machine
|
||||
to_chat(usr, "<span class='warning'>Login rejected: ID card does not have required access.</span>")
|
||||
to_chat(usr, SPAN_WARNING("Login rejected: ID card does not have required access."))
|
||||
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||
. = FALSE
|
||||
else if(is_authenticated)
|
||||
@@ -188,7 +188,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
if(ishuman(usr))
|
||||
if(!usr.get_active_hand() && Adjacent(usr))
|
||||
usr.put_in_hands(copyitem)
|
||||
to_chat(usr, "<span class='notice'>You eject [copyitem] from [src].</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You eject [copyitem] from [src]."))
|
||||
copyitem = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
@@ -196,10 +196,10 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
usr.drop_item()
|
||||
copyitem = I
|
||||
I.forceMove(src)
|
||||
to_chat(usr, "<span class='notice'>You insert [I] into [src].</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You insert [I] into [src]."))
|
||||
flick(insert_anim, src)
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>[src] only accepts paper, paper bundles, and photos.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] only accepts paper, paper bundles, and photos."))
|
||||
. = FALSE
|
||||
if("rename") // rename the item that is currently in the fax machine
|
||||
if(copyitem)
|
||||
@@ -247,7 +247,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
var/cooldown_seconds = cooldown_seconds()
|
||||
if(cooldown_seconds > 0)
|
||||
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||
to_chat(usr, "<span class='warning'>[src] is not ready for another [cooldown_seconds] seconds.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] is not ready for another [cooldown_seconds] seconds."))
|
||||
return
|
||||
send_admin_fax(usr, destination)
|
||||
sendcooldown = world.time + cooldown_time
|
||||
@@ -284,14 +284,14 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
return
|
||||
|
||||
if(scan)
|
||||
to_chat(user, "<span class='notice'>You remove [scan] from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [scan] from [src]."))
|
||||
if(!user.get_active_hand())
|
||||
user.put_in_hands(scan)
|
||||
else if(!user.put_in_inactive_hand(scan))
|
||||
scan.forceMove(get_turf(src))
|
||||
scan = null
|
||||
else
|
||||
to_chat(user, "<span class='notice'>There is nothing to remove from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("There is nothing to remove from [src]."))
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/sendfax(destination, mob/sender)
|
||||
use_power(active_power_consumption)
|
||||
@@ -411,7 +411,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
return round((sendcooldown - world.time) / 10)
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/message_admins(mob/sender, faxname, faxtype, obj/item/sent, font_colour="#9A04D1")
|
||||
var/msg = "<span class='boldnotice'><font color='[font_colour]'>[faxname]: </font> [key_name_admin(sender)] | REPLY: (<A href='byond://?_src_=holder;[faxname == "SYNDICATE FAX" ? "SyndicateReply" : "CentcommReply"]=[sender.UID()]'>RADIO</A>) (<a href='byond://?_src_=holder;AdminFaxCreate=\ref[sender];originfax=\ref[src];faxtype=[faxtype];replyto=\ref[sent]'>FAX</a>) ([ADMIN_SM(sender,"SM")]) | REJECT: (<A href='byond://?_src_=holder;FaxReplyTemplate=[sender.UID()];originfax=\ref[src]'>TEMPLATE</A>) ([ADMIN_BSA(sender,"BSA")]) (<A href='byond://?_src_=holder;EvilFax=[sender.UID()];originfax=\ref[src]'>EVILFAX</A>) </span>: Receiving '[sent.name]' via secure connection... <a href='byond://?_src_=holder;AdminFaxView=\ref[sent]'>view message</a>"
|
||||
var/msg = "[SPAN_BOLDNOTICE("<font color='[font_colour]'>[faxname]: </font> [key_name_admin(sender)] | REPLY: (<A href='byond://?_src_=holder;[faxname == "SYNDICATE FAX" ? "SyndicateReply" : "CentcommReply"]=[sender.UID()]'>RADIO</A>) (<a href='byond://?_src_=holder;AdminFaxCreate=\ref[sender];originfax=\ref[src];faxtype=[faxtype];replyto=\ref[sent]'>FAX</a>) ([ADMIN_SM(sender,"SM")]) | REJECT: (<A href='byond://?_src_=holder;FaxReplyTemplate=[sender.UID()];originfax=\ref[src]'>TEMPLATE</A>) ([ADMIN_BSA(sender,"BSA")]) (<A href='byond://?_src_=holder;EvilFax=[sender.UID()];originfax=\ref[src]'>EVILFAX</A>) ")]: Receiving '[sent.name]' via secure connection... <a href='byond://?_src_=holder;AdminFaxView=\ref[sent]'>view message</a>"
|
||||
var/fax_sound = sound('sound/effects/adminhelp.ogg')
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(check_rights(R_EVENT, 0, C.mob))
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
if(insert(O, user))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(user.a_intent != INTENT_HARM)
|
||||
to_chat(user, "<span class='warning'>You can't put [O.name] in [src]!</span>")
|
||||
to_chat(user, SPAN_WARNING("You can't put [O.name] in [src]!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
return ..()
|
||||
|
||||
@@ -80,9 +80,9 @@
|
||||
if(prob(25))
|
||||
step_rand(I)
|
||||
SStgui.update_uis(src)
|
||||
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/ui_state(mob/user)
|
||||
return GLOB.default_state
|
||||
@@ -128,7 +128,7 @@
|
||||
return
|
||||
if(!user.unequip(O))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You put [O.name] in [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You put [O.name] in [src]."))
|
||||
O.loc = src
|
||||
SStgui.update_uis(src)
|
||||
icon_state = "[initial(icon_state)]-open"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
if(istype(W, /obj/item/paper) || istype(W, /obj/item/photo) || istype(W, /obj/item/paper_bundle) || istype(W, /obj/item/documents))
|
||||
user.drop_item()
|
||||
W.loc = src
|
||||
to_chat(user, "<span class='notice'>You put [W] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You put [W] into [src]."))
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
else if(is_pen(W))
|
||||
rename_interactive(user, W)
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
/obj/item/hand_labeler/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>There [labels_left == 1 ? "is" : "are"] [labels_left] label\s remaining.</span>"
|
||||
. += SPAN_NOTICE("There [labels_left == 1 ? "is" : "are"] [labels_left] label\s remaining.")
|
||||
if(label)
|
||||
. += "<span class='notice'>The label is currently set to \"[label]\".</span>"
|
||||
. += SPAN_NOTICE("The label is currently set to \"[label]\".")
|
||||
|
||||
/obj/item/hand_labeler/interact_with_atom(atom/target, mob/living/user, list/modifiers)
|
||||
if(iseffect(target))
|
||||
to_chat(user, "<span class='warning'>\The [target] doesn't seem solid enough to label!</span>")
|
||||
to_chat(user, SPAN_WARNING("\The [target] doesn't seem solid enough to label!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!mode == LABEL_MODE_OFF)
|
||||
apply_label(target, user)
|
||||
@@ -31,35 +31,35 @@
|
||||
/obj/item/hand_labeler/proc/remove_label(atom/target, mob/living/user)
|
||||
if(SEND_SIGNAL(target, COMSIG_LABEL_REMOVE)) // sends a signal to label.dm
|
||||
playsound(target, 'sound/items/poster_ripped.ogg', 20, TRUE)
|
||||
to_chat(user, "<span class='warning'>You remove the label from [target].</span>")
|
||||
to_chat(user, SPAN_WARNING("You remove the label from [target]."))
|
||||
return TRUE
|
||||
|
||||
/obj/item/hand_labeler/proc/apply_label(atom/target, mob/living/user)
|
||||
if(!labels_left)
|
||||
to_chat(user, "<span class='warning'>No labels left!</span>")
|
||||
to_chat(user, SPAN_WARNING("No labels left!"))
|
||||
return
|
||||
if(!label || !length(label))
|
||||
to_chat(user, "<span class='warning'>No text set!</span>")
|
||||
to_chat(user, SPAN_WARNING("No text set!"))
|
||||
return
|
||||
if(ismob(target))
|
||||
to_chat(user, "<span class='warning'>You can't label creatures!</span>") // use a collar
|
||||
to_chat(user, SPAN_WARNING("You can't label creatures!")) // use a collar
|
||||
return
|
||||
|
||||
if(mode == LABEL_MODE_GOAL)
|
||||
if(isturf(target))
|
||||
to_chat(user, "<span class='warning'>You can't just claim a bit of [target] as yours!</span>")
|
||||
to_chat(user, SPAN_WARNING("You can't just claim a bit of [target] as yours!"))
|
||||
return
|
||||
user.visible_message("<span class='notice'>[user] labels [target] as part of a secondary goal for [label].</span>", \
|
||||
"<span class='notice'>You label [target] as part of a secondary goal for [label].</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] labels [target] as part of a secondary goal for [label]."), \
|
||||
SPAN_NOTICE("You label [target] as part of a secondary goal for [label]."))
|
||||
target.AddComponent(/datum/component/label/goal, label)
|
||||
return
|
||||
|
||||
if(length(target.name) + length(label) > 64)
|
||||
to_chat(user, "<span class='warning'>Label too big!</span>")
|
||||
to_chat(user, SPAN_WARNING("Label too big!"))
|
||||
return
|
||||
|
||||
user.visible_message("<span class='notice'>[user] labels [target] as [label].</span>", \
|
||||
"<span class='notice'>You label [target] as [label].</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] labels [target] as [label]."), \
|
||||
SPAN_NOTICE("You label [target] as [label]."))
|
||||
investigate_log("[key_name(user)] ([ADMIN_FLW(user,"FLW")]) labelled \"[target]\" ([ADMIN_VV(target, "VV")]) with \"[label]\" at [COORD(target.loc)] [ADMIN_JMP(target)].", INVESTIGATE_RENAME) // Investigate goes BEFORE rename so the original name is preserved in the log
|
||||
target.AddComponent(/datum/component/label, label)
|
||||
playsound(target, 'sound/items/handling/component_pickup.ogg', 20, TRUE)
|
||||
@@ -74,23 +74,23 @@
|
||||
mode = !mode
|
||||
icon_state = "labeler[mode]"
|
||||
if(mode)
|
||||
to_chat(user, "<span class='notice'>You turn on \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You turn on \the [src]."))
|
||||
//Now let them chose the text.
|
||||
var/str = reject_bad_text(tgui_input_text(user,"Label text?", "Set label"))
|
||||
if(!str || !length(str))
|
||||
to_chat(user, "<span class='notice'>Invalid text.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Invalid text."))
|
||||
return
|
||||
label = str
|
||||
to_chat(user, "<span class='notice'>You set the text to '[str]'.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You set the text to '[str]'."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You turn off \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You turn off \the [src]."))
|
||||
|
||||
/obj/item/hand_labeler/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(..())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(istype(used, /obj/item/hand_labeler_refill))
|
||||
to_chat(user, "<span class='notice'>You insert [used] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert [used] into [src]."))
|
||||
user.drop_item()
|
||||
qdel(used)
|
||||
labels_left = initial(labels_left) //Yes, it's capped at its initial value
|
||||
@@ -98,12 +98,12 @@
|
||||
else if(istype(used, /obj/item/card/id))
|
||||
var/obj/item/card/id/id = used
|
||||
if(istype(id, /obj/item/card/id/guest) || !id.registered_name)
|
||||
to_chat(user, "<span class='warning'>Invalid ID card.</span>")
|
||||
to_chat(user, SPAN_WARNING("Invalid ID card."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else
|
||||
label = id.registered_name
|
||||
mode = LABEL_MODE_GOAL
|
||||
to_chat(user, "<span class='notice'>You configure the hand labeler with [used].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You configure the hand labeler with [used]."))
|
||||
icon_state = "labeler1"
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
|
||||
@@ -69,14 +69,14 @@
|
||||
|
||||
/obj/item/paper/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] with a pen in hand to rename it.</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] with a pen in hand to rename it.")
|
||||
if(user.is_literate())
|
||||
if(in_range(user, src) || isobserver(user))
|
||||
show_content(user)
|
||||
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.")
|
||||
else
|
||||
. += "<span class='notice'>You don't know how to read.</span>"
|
||||
. += SPAN_NOTICE("You don't know how to read.")
|
||||
|
||||
/obj/item/paper/proc/show_content(mob/user, forceshow = 0, forcestars = 0, infolinks = 0, view = 1)
|
||||
var/datum/asset/assets = get_asset_datum(/datum/asset/simple/paper)
|
||||
@@ -116,10 +116,10 @@
|
||||
|
||||
/obj/item/paper/proc/rename(mob/user)
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
|
||||
to_chat(user, "<span class='warning'>You cut yourself on the paper.</span>")
|
||||
to_chat(user, SPAN_WARNING("You cut yourself on the paper."))
|
||||
return
|
||||
if(!user.is_literate())
|
||||
to_chat(user, "<span class='notice'>You don't know how to read.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You don't know how to read."))
|
||||
return
|
||||
var/n_name = rename_interactive(usr)
|
||||
if(isnull(n_name))
|
||||
@@ -157,20 +157,20 @@
|
||||
return ..()
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(user.zone_selected == "eyes")
|
||||
user.visible_message("<span class='notice'>[user] holds up a paper and shows it to [H].</span>",
|
||||
"<span class='notice'>You show the paper to [H].</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] holds up a paper and shows it to [H]."),
|
||||
SPAN_NOTICE("You show the paper to [H]."))
|
||||
to_chat(H, "<a href='byond://?src=[UID()];show_content=1'>Read \the [src]</a>")
|
||||
|
||||
else if(user.zone_selected == "mouth")
|
||||
if(H == user)
|
||||
to_chat(user, "<span class='notice'>You wipe off your face with [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You wipe off your face with [src]."))
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] begins to wipe [H]'s face clean with \the [src].</span>",
|
||||
"<span class='notice'>You begin to wipe off [H]'s face.</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] begins to wipe [H]'s face clean with \the [src]."),
|
||||
SPAN_NOTICE("You begin to wipe off [H]'s face."))
|
||||
if(!do_after(user, 1 SECONDS, target = H) || !do_after(H, 1 SECONDS, FALSE)) // user needs to keep their active hand, H does not.
|
||||
return
|
||||
user.visible_message("<span class='notice'>[user] wipes [H]'s face clean with \the [src].</span>",
|
||||
"<span class='notice'>You wipe off [H]'s face.</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] wipes [H]'s face clean with \the [src]."),
|
||||
SPAN_NOTICE("You wipe off [H]'s face."))
|
||||
|
||||
H.lip_style = null
|
||||
H.lip_color = null
|
||||
@@ -184,18 +184,18 @@
|
||||
var/mob/living/simple_animal/pet/dog/D = M
|
||||
D.changeNext_move(CLICK_CD_MELEE)
|
||||
if(world.time < D.last_eaten + 30 SECONDS)
|
||||
to_chat(D, "<span class='warning'>You are too full to try eating [src] now.</span>")
|
||||
to_chat(D, SPAN_WARNING("You are too full to try eating [src] now."))
|
||||
return
|
||||
|
||||
D.visible_message("<span class='warning'>[D] starts chewing the corner of [src]!</span>",
|
||||
"<span class='notice'>You start chewing the corner of [src].</span>",
|
||||
"<span class='warning'>You hear a quiet gnawing, and the sound of paper rustling.</span>")
|
||||
D.visible_message(SPAN_WARNING("[D] starts chewing the corner of [src]!"),
|
||||
SPAN_NOTICE("You start chewing the corner of [src]."),
|
||||
SPAN_WARNING("You hear a quiet gnawing, and the sound of paper rustling."))
|
||||
playsound(src, 'sound/effects/pageturn2.ogg', 100, TRUE)
|
||||
if(!do_after(D, 10 SECONDS, FALSE, src))
|
||||
return
|
||||
|
||||
if(world.time < D.last_eaten + 30 SECONDS) // Check again to prevent eating multiple papers at once.
|
||||
to_chat(D, "<span class='warning'>You are too full to try eating [src] now.</span>")
|
||||
to_chat(D, SPAN_WARNING("You are too full to try eating [src] now."))
|
||||
return
|
||||
D.last_eaten = world.time
|
||||
|
||||
@@ -212,13 +212,13 @@
|
||||
P.update_icon()
|
||||
qdel(src)
|
||||
|
||||
D.visible_message("<span class='warning'>[D] finishes eating [src][message_ending]</span>",
|
||||
"<span class='notice'>You finish eating [src][message_ending]</span>")
|
||||
D.visible_message(SPAN_WARNING("[D] finishes eating [src][message_ending]"),
|
||||
SPAN_NOTICE("You finish eating [src][message_ending]"))
|
||||
D.emote("bark")
|
||||
|
||||
// 10% chance of the paper just being eaten entirely.
|
||||
else
|
||||
D.visible_message("<span class='warning'>[D] swallows [src] whole!</span>", "<span class='notice'>You swallow [src] whole. Tasty!</span>")
|
||||
D.visible_message(SPAN_WARNING("[D] swallows [src] whole!"), SPAN_NOTICE("You swallow [src] whole. Tasty!"))
|
||||
playsound(D, 'sound/items/eatfood.ogg', 50, TRUE)
|
||||
qdel(src)
|
||||
|
||||
@@ -322,7 +322,7 @@
|
||||
|
||||
/obj/item/paper/vv_edit_var(var_name, var_value)
|
||||
if((var_name == "info") && blacklist.Find(var_value)) //uh oh, they tried to be naughty
|
||||
message_admins("<span class='danger'>EXPLOIT WARNING: ADMIN</span> [usr.ckey] attempted to write paper containing JS abusable tags!")
|
||||
message_admins("[SPAN_DANGER("EXPLOIT WARNING: ADMIN")] [usr.ckey] attempted to write paper containing JS abusable tags!")
|
||||
log_admin("EXPLOIT WARNING: ADMIN [usr.ckey] attempted to write paper containing JS abusable tags")
|
||||
return FALSE
|
||||
return ..()
|
||||
@@ -335,7 +335,7 @@
|
||||
if(loc != usr && !Adjacent(usr) && !((istype(loc, /obj/item/clipboard) || istype(loc, /obj/item/folder)) && ((usr in get_turf(src)) || loc.Adjacent(usr))))
|
||||
return // If paper is not in usr, then it must be near them, or in a clipboard or folder, which must be in or near usr
|
||||
if(blacklist.Find(input_element)) //uh oh, they tried to be naughty
|
||||
message_admins("<span class='danger'>EXPLOIT WARNING: </span> [usr.ckey] attempted to write paper containing JS abusable tags!")
|
||||
message_admins("[SPAN_DANGER("EXPLOIT WARNING: ")] [usr.ckey] attempted to write paper containing JS abusable tags!")
|
||||
log_admin("EXPLOIT WARNING: [usr.ckey] attempted to write paper containing JS abusable tags")
|
||||
return FALSE
|
||||
input_element = parsepencode(input_element, item_write, usr) // Encode everything from pencode to html
|
||||
@@ -399,7 +399,7 @@
|
||||
if(dist < 2)
|
||||
show_content(usr)
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>I'm too far away from \the [src] to read it.</span>")
|
||||
to_chat(usr, SPAN_NOTICE("I'm too far away from \the [src] to read it."))
|
||||
|
||||
/obj/item/paper/attackby__legacy__attackchain(obj/item/P, mob/living/user, params)
|
||||
..()
|
||||
@@ -415,7 +415,7 @@
|
||||
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, FALSE)
|
||||
@@ -453,7 +453,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 [P] to [(src.name == "paper") ? "the paper" : src.name].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You clip [P] to [(src.name == "paper") ? "the paper" : src.name]."))
|
||||
forceMove(B)
|
||||
P.loc = B
|
||||
B.amount++
|
||||
@@ -469,7 +469,7 @@
|
||||
//openhelp(user)
|
||||
return
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You don't know how to write!</span>")
|
||||
to_chat(user, SPAN_WARNING("You don't know how to write!"))
|
||||
|
||||
else if(istype(P, /obj/item/stamp))
|
||||
if((!in_range(src, usr) && loc != user && !( istype(loc, /obj/item/clipboard)) && loc.loc != user && user.get_active_hand() != P))
|
||||
@@ -477,18 +477,18 @@
|
||||
|
||||
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
|
||||
|
||||
stamp(P)
|
||||
|
||||
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."))
|
||||
playsound(user, 'sound/items/handling/standard_stamp.ogg', 50, vary = TRUE)
|
||||
|
||||
if(P.get_heat())
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites [user.p_themselves()]!</span>", \
|
||||
"<span class='userdanger'>You miss the paper and accidentally light yourself on fire!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] accidentally ignites [user.p_themselves()]!"), \
|
||||
SPAN_USERDANGER("You miss the paper and accidentally light yourself on fire!"))
|
||||
user.drop_item_to_ground(P)
|
||||
user.adjust_fire_stacks(1)
|
||||
user.IgniteMob()
|
||||
@@ -498,7 +498,7 @@
|
||||
return
|
||||
|
||||
user.drop_item_to_ground(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)
|
||||
@@ -938,7 +938,7 @@
|
||||
evilpaper_selfdestruct()
|
||||
else
|
||||
if(mytarget)
|
||||
to_chat(user,"<span class='notice'>This page appears to be covered in some sort of bizzare code. The only bit you recognize is the name of [mytarget]. Perhaps [mytarget] can make sense of it?</span>")
|
||||
to_chat(user,SPAN_NOTICE("This page appears to be covered in some sort of bizzare code. The only bit you recognize is the name of [mytarget]. Perhaps [mytarget] can make sense of it?"))
|
||||
else
|
||||
evilpaper_selfdestruct()
|
||||
|
||||
@@ -974,31 +974,31 @@
|
||||
if(iscarbon(target))
|
||||
var/obj/machinery/photocopier/faxmachine/fax = locateUID(faxmachineid)
|
||||
if(myeffect == "Borgification")
|
||||
to_chat(target,"<span class='userdanger'>You seem to comprehend the AI a little better. Why are your muscles so stiff?</span>")
|
||||
to_chat(target,SPAN_USERDANGER("You seem to comprehend the AI a little better. Why are your muscles so stiff?"))
|
||||
target.ForceContractDisease(new /datum/disease/transformation/robot(0))
|
||||
else if(myeffect == "Corgification")
|
||||
to_chat(target,"<span class='userdanger'>You hear distant howling as the world seems to grow bigger around you. Boy, that itch sure is getting worse!</span>")
|
||||
to_chat(target,SPAN_USERDANGER("You hear distant howling as the world seems to grow bigger around you. Boy, that itch sure is getting worse!"))
|
||||
target.ForceContractDisease(new /datum/disease/transformation/corgi(0))
|
||||
else if(myeffect == "Death By Fire")
|
||||
to_chat(target,"<span class='userdanger'>You feel hotter than usual. Maybe you should lowe-wait, is that your hand melting?</span>")
|
||||
to_chat(target,SPAN_USERDANGER("You feel hotter than usual. Maybe you should lowe-wait, is that your hand melting?"))
|
||||
var/turf/simulated/T = get_turf(target)
|
||||
var/obj/effect/hotspot/hotspot = new /obj/effect/hotspot/fake(T)
|
||||
hotspot.temperature = 1000
|
||||
hotspot.recolor()
|
||||
target.adjustFireLoss(150) // hard crit, the burning takes care of the rest.
|
||||
else if(myeffect == "Total Brain Death")
|
||||
to_chat(target,"<span class='userdanger'>You see a message appear in front of you in bright red letters: <b>YHWH-3 ACTIVATED. TERMINATION IN 3 SECONDS</b></span>")
|
||||
to_chat(target,SPAN_USERDANGER("You see a message appear in front of you in bright red letters: <b>YHWH-3 ACTIVATED. TERMINATION IN 3 SECONDS</b>"))
|
||||
ADD_TRAIT(target, TRAIT_BADDNA, "evil_fax")
|
||||
target.adjustBrainLoss(125)
|
||||
else if(myeffect == "Honk Tumor")
|
||||
if(!target.get_int_organ(/obj/item/organ/internal/honktumor))
|
||||
var/obj/item/organ/internal/organ = new /obj/item/organ/internal/honktumor
|
||||
to_chat(target,"<span class='userdanger'>Life seems funnier, somehow.</span>")
|
||||
to_chat(target,SPAN_USERDANGER("Life seems funnier, somehow."))
|
||||
organ.insert(target)
|
||||
else if(myeffect == "Cluwne")
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/H = target
|
||||
to_chat(H, "<span class='userdanger'>You feel surrounded by sadness. Sadness... and HONKS!</span>")
|
||||
to_chat(H, SPAN_USERDANGER("You feel surrounded by sadness. Sadness... and HONKS!"))
|
||||
H.makeCluwne()
|
||||
else if(myeffect == "Demote")
|
||||
GLOB.major_announcement.Announce("[target.real_name] is hereby demoted to the rank of Assistant. Process this demotion immediately. Failure to comply with these orders is grounds for termination.","CC Demotion Order", force_translation = TRUE)
|
||||
@@ -1031,7 +1031,7 @@
|
||||
evilpaper_selfdestruct()
|
||||
|
||||
/obj/item/paper/evilfax/proc/evilpaper_selfdestruct()
|
||||
visible_message("<span class='danger'>[src] spontaneously catches fire, and burns up!</span>")
|
||||
visible_message(SPAN_DANGER("[src] spontaneously catches fire, and burns up!"))
|
||||
qdel(src)
|
||||
|
||||
/obj/item/paper/pickup(user)
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
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
|
||||
|
||||
amount++
|
||||
if(screen == 2)
|
||||
screen = 1
|
||||
to_chat(user, "<span class='notice'>You add [(P.name == "paper") ? "the paper" : P.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You add [(P.name == "paper") ? "the paper" : P.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]."))
|
||||
user.transfer_item_to(P, src)
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
@@ -50,7 +50,7 @@
|
||||
photos++
|
||||
if(screen == 2)
|
||||
screen = 1
|
||||
to_chat(user, "<span class='notice'>You add [(W.name == "photo") ? "the photo" : W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You add [(W.name == "photo") ? "the photo" : W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name]."))
|
||||
user.transfer_item_to(W, src)
|
||||
|
||||
else if(W.get_heat())
|
||||
@@ -63,7 +63,7 @@
|
||||
src.amount++
|
||||
if(screen == 2)
|
||||
screen = 1
|
||||
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
|
||||
@@ -92,12 +92,12 @@
|
||||
|
||||
/obj/item/paper_bundle/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] with a pen in hand to rename it.</span>"
|
||||
. += "<span class='notice'><b>Alt-Shift-Click</b> [src] to undo the paper bundle.</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] with a pen in hand to rename it.")
|
||||
. += SPAN_NOTICE("<b>Alt-Shift-Click</b> [src] to undo the paper bundle.")
|
||||
if(in_range(user, src))
|
||||
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 = {"<!DOCTYPE html><meta charset="UTF-8">"}
|
||||
@@ -159,7 +159,7 @@
|
||||
if(href_list["remove"])
|
||||
var/obj/item/W = get_page()
|
||||
usr.put_in_hands(W)
|
||||
to_chat(usr, "<span class='notice'>You remove [W] from the bundle.</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You remove [W] from the bundle."))
|
||||
if(amount == 1)
|
||||
var/obj/item/paper/P = get_page(1)
|
||||
usr.unequip(src)
|
||||
@@ -182,7 +182,7 @@
|
||||
amount--
|
||||
update_icon()
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You need to hold it in your hands to change pages.</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You need to hold it in your hands to change pages."))
|
||||
if(ismob(loc))
|
||||
attack_self__legacy__attackchain(loc)
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>You loosen the bundle.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You loosen the bundle."))
|
||||
|
||||
for(var/obj/O in src)
|
||||
O.forceMove(get_turf(user))
|
||||
|
||||
@@ -94,9 +94,9 @@
|
||||
user.put_in_hands(P)
|
||||
P.add_fingerprint(user)
|
||||
P.scatter_atom()
|
||||
to_chat(user, "<span class='notice'>You take [P] out of [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You take [P] out of [src]."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>[src] is empty!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] is empty!"))
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
@@ -106,7 +106,7 @@
|
||||
if(istype(i))
|
||||
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)
|
||||
amount++
|
||||
else
|
||||
@@ -117,9 +117,9 @@
|
||||
. = ..()
|
||||
if(in_range(user, src))
|
||||
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_state()
|
||||
@@ -146,9 +146,9 @@
|
||||
P = new /obj/item/paper/carbon
|
||||
P.loc = user.loc
|
||||
user.put_in_hands(P)
|
||||
to_chat(user, "<span class='notice'>You take [P] out of [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You take [P] out of [src]."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>[src] is empty!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] is empty!"))
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
/obj/item/paperplane/suicide_act(mob/living/user)
|
||||
user.Stun(20 SECONDS)
|
||||
user.visible_message("<span class='suicide'>[user] jams [name] in [user.p_their()] nose. It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
user.visible_message(SPAN_SUICIDE("[user] jams [name] in [user.p_their()] nose. It looks like [user.p_theyre()] trying to commit suicide!"))
|
||||
user.EyeBlurry(12 SECONDS)
|
||||
var/obj/item/organ/internal/eyes/E = user.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
if(E)
|
||||
@@ -50,7 +50,7 @@
|
||||
. += "paperplane_[initial(stamp.icon_state)]"
|
||||
|
||||
/obj/item/paperplane/attack_self__legacy__attackchain(mob/user) // Unfold the paper plane
|
||||
to_chat(user, "<span class='notice'>You unfold [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You unfold [src]."))
|
||||
if(internal_paper)
|
||||
internal_paper.forceMove(get_turf(src))
|
||||
user.put_in_hands(internal_paper)
|
||||
@@ -61,7 +61,7 @@
|
||||
..()
|
||||
|
||||
if(is_pen(P) || istype(P, /obj/item/toy/crayon))
|
||||
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
|
||||
@@ -70,8 +70,8 @@
|
||||
|
||||
else if(P.get_heat())
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites [user.p_themselves()]!</span>", \
|
||||
"<span class='userdanger'>You miss [src] and accidentally light yourself on fire!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] accidentally ignites [user.p_themselves()]!"), \
|
||||
SPAN_USERDANGER("You miss [src] and accidentally light yourself on fire!"))
|
||||
user.drop_item_to_ground(P)
|
||||
user.adjust_fire_stacks(1)
|
||||
user.IgniteMob()
|
||||
@@ -80,7 +80,7 @@
|
||||
if(!in_range(user, src)) //to prevent issues as a result of telepathically lighting a paper
|
||||
return
|
||||
user.drop_item_to_ground(src)
|
||||
user.visible_message("<span class='danger'>[user] lights [src] on fire with [P]!</span>", "<span class='danger'>You lights [src] on fire!</span>")
|
||||
user.visible_message(SPAN_DANGER("[user] lights [src] on fire with [P]!"), SPAN_DANGER("You lights [src] on fire!"))
|
||||
fire_act()
|
||||
|
||||
add_fingerprint(user)
|
||||
@@ -98,7 +98,7 @@
|
||||
return
|
||||
if(H.glasses && H.glasses.flags_cover & GLASSESCOVERSEYES)
|
||||
return
|
||||
visible_message("<span class='danger'>[src] hits [H] in the eye!</span>")
|
||||
visible_message(SPAN_DANGER("[src] hits [H] in the eye!"))
|
||||
H.EyeBlurry(12 SECONDS)
|
||||
H.Weaken(4 SECONDS)
|
||||
var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
@@ -110,9 +110,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) // forceMove happens in paperplane/Initialize
|
||||
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 [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You lack the dexterity to fold [src]."))
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
pressure_resistance = 2
|
||||
|
||||
/obj/item/pen/suicide_act(mob/user)
|
||||
to_chat(viewers(user), "<span class='suicide'>[user] starts scribbling numbers over [user.p_themselves()] with [src]! It looks like [user.p_theyre()] trying to commit sudoku!</span>")
|
||||
to_chat(viewers(user), SPAN_SUICIDE("[user] starts scribbling numbers over [user.p_themselves()] with [src]! It looks like [user.p_theyre()] trying to commit sudoku!"))
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/pen/blue
|
||||
@@ -160,7 +160,7 @@
|
||||
var/fraction = min(transfer_amount / reagents.total_volume, 1)
|
||||
reagents.reaction(M, REAGENT_INGEST, fraction)
|
||||
transfered = reagents.trans_to(M, transfer_amount)
|
||||
to_chat(user, "<span class='warning'>You sneakily stab [M] with the pen.</span>")
|
||||
to_chat(user, SPAN_WARNING("You sneakily stab [M] with the pen."))
|
||||
add_attack_logs(user, M, "Stabbed with (sleepy) [src]. [transfered]u of reagents transfered from pen containing [english_list(contained)].")
|
||||
return TRUE
|
||||
|
||||
@@ -225,8 +225,8 @@
|
||||
M.apply_damage(40, STAMINA) //Just enough to slow
|
||||
M.KnockDown(2 SECONDS)
|
||||
M.visible_message(
|
||||
"<span class='warning'>[user] stabs [M] in the back!</span>",
|
||||
"<span class='userdanger'>[user] stabs you in the back! The energy blade makes you collapse in pain!</span>"
|
||||
SPAN_WARNING("[user] stabs [M] in the back!"),
|
||||
SPAN_USERDANGER("[user] stabs you in the back! The energy blade makes you collapse in pain!")
|
||||
)
|
||||
|
||||
playsound(loc, backstab_sound, 5, TRUE, ignore_walls = FALSE, falloff_distance = 0)
|
||||
@@ -242,22 +242,22 @@
|
||||
return !isnull(cig)
|
||||
|
||||
if(!active)
|
||||
to_chat(user, "<span class='warning'>You need to activate [src] before you can light anything with it!</span>")
|
||||
to_chat(user, SPAN_WARNING("You need to activate [src] before you can light anything with it!"))
|
||||
return TRUE
|
||||
|
||||
if(target == user)
|
||||
user.visible_message(
|
||||
"<span class='warning'>[user] makes a violent slashing motion, barely missing [user.p_their()] nose as light flashes! \
|
||||
[user.p_they(TRUE)] light[user.p_s()] [user.p_their()] [cig] with [src] in the process.</span>",
|
||||
"<span class='notice'>You casually slash [src] at [cig], lighting it with the blade.</span>",
|
||||
"<span class='danger'>You hear an energy blade slashing something!</span>"
|
||||
SPAN_NOTICE("You casually slash [src] at [cig], lighting it with the blade."),
|
||||
SPAN_DANGER("You hear an energy blade slashing something!")
|
||||
)
|
||||
else
|
||||
user.visible_message(
|
||||
"<span class='danger'>[user] makes a violent slashing motion, barely missing the nose of [target] as light flashes! \
|
||||
[user.p_they(TRUE)] light[user.p_s()] [cig] in the mouth of [target] with [src] in the process.</span>",
|
||||
"<span class='notice'>You casually slash [src] at [cig] in the mouth of [target], lighting it with the blade.</span>",
|
||||
"<span class='danger'>You hear an energy blade slashing something!</span>"
|
||||
SPAN_NOTICE("You casually slash [src] at [cig] in the mouth of [target], lighting it with the blade."),
|
||||
SPAN_DANGER("You hear an energy blade slashing something!")
|
||||
)
|
||||
user.do_attack_animation(target)
|
||||
playsound(user.loc, hitsound, 5, TRUE, ignore_walls = FALSE, falloff_distance = 0)
|
||||
@@ -278,7 +278,7 @@
|
||||
embed_chance = initial(embed_chance)
|
||||
throwforce = initial(throwforce)
|
||||
playsound(user, 'sound/weapons/saberoff.ogg', 2, 1)
|
||||
to_chat(user, "<span class='warning'>[src] can now be concealed.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] can now be concealed."))
|
||||
set_light(0)
|
||||
else
|
||||
active = TRUE
|
||||
@@ -290,7 +290,7 @@
|
||||
embed_chance = 100 //rule of cool
|
||||
throwforce = 35
|
||||
playsound(user, 'sound/weapons/saberon.ogg', 2, TRUE)
|
||||
to_chat(user, "<span class='warning'>[src] is now active.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] is now active."))
|
||||
set_light(brightness_on, 1)
|
||||
set_sharpness(active)
|
||||
update_icon()
|
||||
@@ -326,13 +326,13 @@
|
||||
/obj/item/pen/multi/poison/on_write(obj/item/paper/P, mob/user)
|
||||
if(current_poison)
|
||||
if(P.contact_poison)
|
||||
to_chat(user, "<span class='warning'>[P] is already coated.</span>")
|
||||
to_chat(user, SPAN_WARNING("[P] is already coated."))
|
||||
else
|
||||
P.contact_poison = current_poison
|
||||
P.contact_poison_volume = 20
|
||||
P.contact_poison_poisoner = user.name
|
||||
add_attack_logs(user, P, "Poison pen'ed")
|
||||
to_chat(user, "<span class='warning'>You apply the poison to [P].</span>")
|
||||
to_chat(user, SPAN_WARNING("You apply the poison to [P]."))
|
||||
|
||||
// MARK: CHAMELEON PEN
|
||||
/obj/item/pen/chameleon
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
/obj/machinery/photocopier/proc/papercopy(obj/item/paper/copy, scanning = FALSE, bundled = FALSE)
|
||||
if(!scanning)
|
||||
if(toner < 1)
|
||||
visible_message("<span class='notice'>A yellow light on [src] flashes, indicating there's not enough toner to finish the operation.</span>")
|
||||
visible_message(SPAN_NOTICE("A yellow light on [src] flashes, indicating there's not enough toner to finish the operation."))
|
||||
return null
|
||||
total_copies++
|
||||
var/obj/item/paper/c = new /obj/item/paper (loc)
|
||||
@@ -115,7 +115,7 @@
|
||||
/obj/machinery/photocopier/proc/photocopy(obj/item/photo/photocopy, scanning = FALSE, bundled = FALSE)
|
||||
if(!scanning) //If we're just storing this as a file inside the copier then we don't expend toner
|
||||
if(toner < 5)
|
||||
visible_message("<span class='notice'>A yellow light on [src] flashes, indicating there's not enough toner to finish the operation.</span>")
|
||||
visible_message(SPAN_NOTICE("A yellow light on [src] flashes, indicating there's not enough toner to finish the operation."))
|
||||
return null
|
||||
total_copies++
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
/obj/machinery/photocopier/proc/copyass(scanning = FALSE)
|
||||
if(!scanning) //If we're just storing this as a file inside the copier then we don't expend toner
|
||||
if(toner < 5)
|
||||
visible_message("<span class='notice'>A yellow light on [src] flashes, indicating there's not enough toner to finish the operation.</span>")
|
||||
visible_message(SPAN_NOTICE("A yellow light on [src] flashes, indicating there's not enough toner to finish the operation."))
|
||||
return null
|
||||
total_copies++
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
H.emote("scream")
|
||||
else
|
||||
copymob.apply_damage(30, BURN)
|
||||
to_chat(copymob, "<span class='notice'>Something smells toasty...</span>")
|
||||
to_chat(copymob, SPAN_NOTICE("Something smells toasty..."))
|
||||
if(ishuman(copymob)) //Suit checks are in check_mob
|
||||
var/mob/living/carbon/human/H = copymob
|
||||
temp_img = icon('icons/obj/butts.dmi', H.dna.species.butt_sprite)
|
||||
@@ -224,28 +224,28 @@
|
||||
|
||||
/obj/machinery/photocopier/proc/remove_document()
|
||||
if(copying)
|
||||
to_chat(usr, "<span class='warning'>[src] is busy, try again in a few seconds.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] is busy, try again in a few seconds."))
|
||||
return
|
||||
if(copyitem)
|
||||
copyitem.forceMove(get_turf(src))
|
||||
if(ishuman(usr))
|
||||
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(check_mob())
|
||||
to_chat(copymob, "<span class='notice'>You feel a slight pressure on your ass.</span>")
|
||||
to_chat(copymob, SPAN_NOTICE("You feel a slight pressure on your ass."))
|
||||
atom_say("Attention: Unable to remove large object!")
|
||||
|
||||
/obj/machinery/photocopier/proc/remove_folder()
|
||||
if(copying)
|
||||
to_chat(usr, "<span class='warning'>[src] is busy, try again in a few seconds.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] is busy, try again in a few seconds."))
|
||||
return
|
||||
if(folder)
|
||||
folder.forceMove(get_turf(src))
|
||||
if(ishuman(usr))
|
||||
usr.put_in_hands(folder)
|
||||
to_chat(usr, "<span class='notice'>You take \the [folder] out of \the [src].</span>")
|
||||
to_chat(usr, SPAN_NOTICE("You take \the [folder] out of \the [src]."))
|
||||
folder = null
|
||||
|
||||
/**
|
||||
@@ -261,20 +261,20 @@
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
return FALSE
|
||||
if(copying) //are we in the process of copying something already?
|
||||
to_chat(usr, "<span class='warning'>[src] is busy, try again in a few seconds.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] is busy, try again in a few seconds."))
|
||||
return FALSE
|
||||
if(!scancopy && toner <= 0) //if we're not scanning lets check early that we actually have toner
|
||||
visible_message("<span class='notice'>A yellow light on [src] flashes, indicating there's not enough toner for the operation.</span>")
|
||||
visible_message(SPAN_NOTICE("A yellow light on [src] flashes, indicating there's not enough toner for the operation."))
|
||||
return FALSE
|
||||
if(max_copies_reached)
|
||||
visible_message("<span class='warning'>The printer screen reads \"MAX COPIES REACHED, PHOTOCOPIER NETWORK OFFLINE: PLEASE CONTACT SYSTEM ADMINISTRATOR\".</span>")
|
||||
visible_message(SPAN_WARNING("The printer screen reads \"MAX COPIES REACHED, PHOTOCOPIER NETWORK OFFLINE: PLEASE CONTACT SYSTEM ADMINISTRATOR\"."))
|
||||
return FALSE
|
||||
if(total_copies >= MAX_COPIES_PRINTABLE)
|
||||
visible_message("<span class='warning'>The printer screen reads \"MAX COPIES REACHED, PHOTOCOPIER NETWORK OFFLINE: PLEASE CONTACT SYSTEM ADMINISTRATOR\".</span>")
|
||||
visible_message(SPAN_WARNING("The printer screen reads \"MAX COPIES REACHED, PHOTOCOPIER NETWORK OFFLINE: PLEASE CONTACT SYSTEM ADMINISTRATOR\"."))
|
||||
message_admins("Photocopier cap of [MAX_COPIES_PRINTABLE] paper copies reached, all photocopiers are now disabled.")
|
||||
max_copies_reached = TRUE
|
||||
if(!check_mob() && (!copyitem && !scancopy)) //is there anything in or ontop of the machine? If not, is this a scanned file?
|
||||
visible_message("<span class='notice'>A red light on [src] flashes, indicating there's nothing in [src] to copy.</span>")
|
||||
visible_message(SPAN_NOTICE("A red light on [src] flashes, indicating there's nothing in [src] to copy."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -319,7 +319,7 @@
|
||||
break
|
||||
toner -= 5
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>\The [copyitem] can't be copied by \the [src], ejecting.</span>")
|
||||
to_chat(usr, SPAN_WARNING("\The [copyitem] can't be copied by \the [src], ejecting."))
|
||||
copyitem.forceMove(loc) //fuckery detected! get off my photocopier... shitbird!
|
||||
|
||||
copying = FALSE
|
||||
@@ -328,7 +328,7 @@
|
||||
if(!cancopy())
|
||||
return
|
||||
if(length(saved_documents) >= max_saved_documents)
|
||||
to_chat(usr, "<span class='warning'>\The [copyitem] can't be scanned because the max file limit has been reached. Please delete a file to make room.</span>")
|
||||
to_chat(usr, SPAN_WARNING("\The [copyitem] can't be scanned because the max file limit has been reached. Please delete a file to make room."))
|
||||
return
|
||||
copying = TRUE
|
||||
var/obj/item/O
|
||||
@@ -342,7 +342,7 @@
|
||||
else if(copymob && copymob.loc == loc)
|
||||
O = copyass(scanning = TRUE)
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>\The [copyitem] can't be scanned by \the [src].</span>")
|
||||
to_chat(usr, SPAN_WARNING("\The [copyitem] can't be scanned by \the [src]."))
|
||||
copying = FALSE
|
||||
return
|
||||
use_power(active_power_consumption)
|
||||
@@ -396,7 +396,7 @@
|
||||
return
|
||||
. = FALSE
|
||||
if(!COOLDOWN_FINISHED(src, copying_cooldown))
|
||||
to_chat(usr, "<span class='warning'>[src] is busy, try again in a few seconds.</span>")
|
||||
to_chat(usr, SPAN_WARNING("[src] is busy, try again in a few seconds."))
|
||||
return
|
||||
add_fingerprint(usr)
|
||||
switch(action)
|
||||
@@ -481,38 +481,38 @@
|
||||
user.drop_item()
|
||||
copyitem = used
|
||||
used.forceMove(src)
|
||||
to_chat(user, "<span class='notice'>You insert \the [used] into \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert \the [used] into \the [src]."))
|
||||
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]."))
|
||||
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else if(istype(used, /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]."))
|
||||
var/obj/item/toner/T = used
|
||||
toner += T.toner_amount
|
||||
qdel(used)
|
||||
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."))
|
||||
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else if(istype(used, /obj/item/folder))
|
||||
if(!folder) //allow replacing when low toner is affecting the print darkness
|
||||
user.drop_item()
|
||||
to_chat(user, "<span class='notice'>You slide the [used] into \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You slide the [used] into \the [src]."))
|
||||
folder = used
|
||||
used.forceMove(src)
|
||||
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."))
|
||||
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else if(istype(used, /obj/item/grab)) //For ass-copying.
|
||||
var/obj/item/grab/G = used
|
||||
if(ismob(G.affecting) && G.affecting != copymob)
|
||||
var/mob/GM = G.affecting
|
||||
visible_message("<span class='warning'>[usr] drags [GM.name] onto the photocopier!</span>")
|
||||
visible_message(SPAN_WARNING("[usr] drags [GM.name] onto the photocopier!"))
|
||||
GM.forceMove(get_turf(src))
|
||||
copymob = GM
|
||||
if(copyitem)
|
||||
@@ -540,16 +540,16 @@
|
||||
return
|
||||
src.add_fingerprint(user)
|
||||
if(target == user && !user.incapacitated())
|
||||
visible_message("<span class='warning'>[usr] jumps onto [src]!</span>")
|
||||
visible_message(SPAN_WARNING("[usr] jumps onto [src]!"))
|
||||
else if(target != user && !user.restrained() && !user.stat && !user.IsWeakened() && !user.IsStunned() && !user.IsParalyzed())
|
||||
if(target.anchored) return
|
||||
if(!ishuman(user)) return
|
||||
visible_message("<span class='warning'>[usr] drags [target.name] onto [src]!</span>")
|
||||
visible_message(SPAN_WARNING("[usr] drags [target.name] onto [src]!"))
|
||||
target.forceMove(get_turf(src))
|
||||
copymob = target
|
||||
if(copyitem)
|
||||
copyitem.forceMove(get_turf(src))
|
||||
visible_message("<span class='notice'>[copyitem] is shoved out of the way by [copymob]!</span>")
|
||||
visible_message(SPAN_NOTICE("[copyitem] is shoved out of the way by [copymob]!"))
|
||||
copyitem = null
|
||||
playsound(loc, 'sound/machines/ping.ogg', 50, FALSE)
|
||||
atom_say("Attention: Posterior Placed on Printing Plaque!")
|
||||
@@ -576,10 +576,10 @@
|
||||
/obj/machinery/photocopier/emag_act(user as mob)
|
||||
if(!emagged)
|
||||
emagged = TRUE
|
||||
to_chat(user, "<span class='notice'>You overload [src]'s laser printing mechanism.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You overload [src]'s laser printing mechanism."))
|
||||
return TRUE
|
||||
else
|
||||
to_chat(user, "<span class='notice'>[src]'s laser printing mechanism is already overloaded!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src]'s laser printing mechanism is already overloaded!"))
|
||||
|
||||
|
||||
//TODO: Add an emp_act effect for photocopiers -sirryan
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
return
|
||||
|
||||
if(user.get_active_hand() != P || !P.get_heat())
|
||||
to_chat(user, "<span class='warning'>You must hold [P] steady to burn [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("You must hold [P] steady to burn [src]."))
|
||||
return
|
||||
|
||||
user.visible_message("<span class='[class]'>[user] burns right through [src], turning it to ash. It flutters through the air before settling on the floor in a heap.</span>", \
|
||||
@@ -83,8 +83,8 @@
|
||||
if(in_range(user, src) || isobserver(user))
|
||||
show(user)
|
||||
else
|
||||
. += "<span class='notice'>It is too far away.</span>"
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] with a pen in hand to rename it.</span>"
|
||||
. += SPAN_NOTICE("It is too far away.")
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] with a pen in hand to rename it.")
|
||||
|
||||
/obj/item/photo/AltClick(mob/user)
|
||||
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
|
||||
@@ -204,8 +204,8 @@
|
||||
/obj/item/camera/examine(mob/user)
|
||||
. = ..()
|
||||
if(!digital)
|
||||
. += "<span class='notice'>There is [pictures_left] photos left.</span>"
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] to change the photo size.</span>"
|
||||
. += SPAN_NOTICE("There is [pictures_left] photos left.")
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] to change the photo size.")
|
||||
|
||||
/obj/item/camera/spooky/CheckParts(list/parts_list)
|
||||
..()
|
||||
@@ -239,13 +239,13 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
|
||||
flashing_light = !flashing_light
|
||||
|
||||
to_chat(user, "<span class='notice'>You turn [src]'s flash [flashing_light ? "on" : "off"].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You turn [src]'s flash [flashing_light ? "on" : "off"]."))
|
||||
|
||||
/obj/item/camera/proc/change_size(mob/user)
|
||||
var/nsize = tgui_input_list(user, "Photo Size", "Pick a size of resulting photo.", list(1,3,5,7))
|
||||
if(nsize)
|
||||
size = nsize
|
||||
to_chat(user, "<span class='notice'>Camera will now take [size]x[size] photos.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Camera will now take [size]x[size] photos."))
|
||||
|
||||
/obj/item/camera/pre_attack(atom/target, mob/living/user, params)
|
||||
if(..() || ismob(target))
|
||||
@@ -254,7 +254,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
/obj/item/camera/activate_self(mob/user)
|
||||
. = ..()
|
||||
if(on_cooldown)
|
||||
to_chat(user, "<span class='notice'>[src] is still on cooldown!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] is still on cooldown!"))
|
||||
return
|
||||
on = !on
|
||||
if(on)
|
||||
@@ -266,9 +266,9 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
/obj/item/camera/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(istype(used, /obj/item/camera_film))
|
||||
if(pictures_left > 0)
|
||||
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 ITEM_INTERACT_COMPLETE
|
||||
to_chat(user, "<span class='notice'>You insert [used] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert [used] into [src]."))
|
||||
user.drop_item()
|
||||
qdel(used)
|
||||
pictures_left = pictures_max
|
||||
@@ -423,7 +423,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, set_light), 0), 0.1 SECONDS)
|
||||
|
||||
captureimage(target, user)
|
||||
to_chat(user, "<span class='notice'>[pictures_left] photo\s left.</span>")
|
||||
to_chat(user, SPAN_NOTICE("[pictures_left] photo\s left."))
|
||||
icon_state = icon_off
|
||||
|
||||
handle_haunt(user)
|
||||
@@ -539,9 +539,9 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
|
||||
/obj/item/camera/digital/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>A small screen shows that there are currently [length(saved_pictures)] pictures stored.</span>"
|
||||
. += "<span class='notice'><b>Alt-Shift-Click</b> [src] to print a specific photo.</span>"
|
||||
. += "<span class='notice'><b>Ctrl-Shift-Click</b> [src] to delete a specific photo.</span>"
|
||||
. += SPAN_NOTICE("A small screen shows that there are currently [length(saved_pictures)] pictures stored.")
|
||||
. += SPAN_NOTICE("<b>Alt-Shift-Click</b> [src] to print a specific photo.")
|
||||
. += SPAN_NOTICE("<b>Ctrl-Shift-Click</b> [src] to delete a specific photo.")
|
||||
|
||||
/obj/item/camera/digital/take_photo(atom/target, mob/user)
|
||||
if(!on || !pictures_left || ismob(target.loc))
|
||||
@@ -558,7 +558,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
|
||||
/obj/item/camera/digital/captureimage(atom/target, mob/user)
|
||||
if(length(saved_pictures) >= max_storage)
|
||||
to_chat(user, "<span class='notice'>Maximum photo storage capacity reached.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Maximum photo storage capacity reached."))
|
||||
return
|
||||
to_chat(user, "Picture saved.")
|
||||
var/x_c = target.x - (size-1)/2
|
||||
@@ -583,10 +583,10 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
|
||||
return
|
||||
if(!length(saved_pictures))
|
||||
to_chat(user, "<span class='userdanger'>No images saved.</span>")
|
||||
to_chat(user, SPAN_USERDANGER("No images saved."))
|
||||
return
|
||||
if(!pictures_left)
|
||||
to_chat(user, "<span class='userdanger'>There is no film left to print.</span>")
|
||||
to_chat(user, SPAN_USERDANGER("There is no film left to print."))
|
||||
return
|
||||
|
||||
var/datum/picture/picture
|
||||
@@ -600,7 +600,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
return
|
||||
|
||||
if(!length(saved_pictures))
|
||||
to_chat(user, "<span class='userdanger'>No images saved</span>")
|
||||
to_chat(user, SPAN_USERDANGER("No images saved"))
|
||||
return
|
||||
var/datum/picture/picture
|
||||
picture = tgui_input_list(user, "Select image to delete", "Delete image", saved_pictures)
|
||||
@@ -639,7 +639,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
camera.c_tag = null
|
||||
camera.turn_off(null, 0)
|
||||
QDEL_NULL(camera)
|
||||
visible_message("<span class='notice'>The video camera has been turned [on ? "on" : "off"].</span>")
|
||||
visible_message(SPAN_NOTICE("The video camera has been turned [on ? "on" : "off"]."))
|
||||
for(var/obj/machinery/computer/security/telescreen/entertainment/TV in GLOB.telescreens)
|
||||
if(on)
|
||||
TV.feeds_on++
|
||||
@@ -656,11 +656,11 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
camera.c_tag = null
|
||||
camera.turn_off(null, 0)
|
||||
QDEL_NULL(camera)
|
||||
visible_message("<span class='notice'>The video camera turns off.</span>")
|
||||
visible_message(SPAN_NOTICE("The video camera turns off."))
|
||||
|
||||
/obj/item/videocam/attack_self__legacy__attackchain(mob/user)
|
||||
if(!COOLDOWN_FINISHED(src, video_cooldown))
|
||||
to_chat(user, "<span class='warning'>[src] is overheating, give it some time.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] is overheating, give it some time."))
|
||||
return
|
||||
camera_state(user)
|
||||
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
if(C.connected_ai)
|
||||
var/mob/A = P.fields["author"]
|
||||
C.connected_ai.aiCamera.injectaialbum(P, " (taken by [A.name])")
|
||||
to_chat(C.connected_ai, "<span class='unconscious'>Image recorded and saved by [name]</span>")
|
||||
to_chat(usr, "<span class='unconscious'>Image recorded and saved to remote database</span>")//feedback to the Cyborg player that the picture was taken
|
||||
to_chat(C.connected_ai, SPAN_UNCONSCIOUS("Image recorded and saved by [name]"))
|
||||
to_chat(usr, SPAN_UNCONSCIOUS("Image recorded and saved to remote database"))//feedback to the Cyborg player that the picture was taken
|
||||
|
||||
else
|
||||
injectaialbum(P)
|
||||
to_chat(usr, "<span class='unconscious'>Image recorded</span>")
|
||||
to_chat(usr, SPAN_UNCONSCIOUS("Image recorded"))
|
||||
|
||||
/obj/item/camera/siliconcam/proc/selectpicture(obj/item/camera/siliconcam/cam)
|
||||
if(!cam)
|
||||
@@ -49,7 +49,7 @@
|
||||
var/list/nametemp = list()
|
||||
var/find
|
||||
if(length(cam.aipictures) == 0)
|
||||
to_chat(usr, "<span class='userdanger'>No images saved</span>")
|
||||
to_chat(usr, SPAN_USERDANGER("No images saved"))
|
||||
return
|
||||
for(var/datum/picture/t in cam.aipictures)
|
||||
nametemp += t.fields["name"]
|
||||
@@ -81,7 +81,7 @@
|
||||
return
|
||||
|
||||
cam.aipictures -= selection
|
||||
to_chat(usr, "<span class='unconscious'>Image deleted</span>")
|
||||
to_chat(usr, SPAN_UNCONSCIOUS("Image deleted"))
|
||||
|
||||
/obj/item/camera/siliconcam/ai_camera/can_capture_turf(turf/T, mob/user)
|
||||
var/mob/living/silicon/ai = user
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
/obj/item/camera/siliconcam/ai_camera/printpicture(mob/user, datum/picture/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, datum/picture/P)
|
||||
injectmasteralbum(P)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
var/dye_color = DYE_GREEN
|
||||
|
||||
/obj/item/stamp/suicide_act(mob/user)
|
||||
user.visible_message("<span class='suicide'>[user] stamps 'VOID' on [user.p_their()] forehead, then promptly falls over, dead.</span>")
|
||||
user.visible_message(SPAN_SUICIDE("[user] stamps 'VOID' on [user.p_their()] forehead, then promptly falls over, dead."))
|
||||
playsound(user, 'sound/items/handling/standard_stamp.ogg', 50, vary = TRUE)
|
||||
return OXYLOSS
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/obj/machinery/ticket_machine/Destroy()
|
||||
for(var/obj/item/ticket_machine_ticket/ticket in tickets)
|
||||
ticket.visible_message("<span class='notice'>\the [ticket] disperses!</span>")
|
||||
ticket.visible_message(SPAN_NOTICE("\the [ticket] disperses!"))
|
||||
qdel(ticket)
|
||||
tickets.Cut()
|
||||
return ..()
|
||||
@@ -32,12 +32,12 @@
|
||||
/obj/machinery/ticket_machine/emag_act(mob/user) //Emag the ticket machine to dispense burning tickets, as well as randomize its number to destroy the HoP's mind.
|
||||
if(emagged)
|
||||
return
|
||||
to_chat(user, "<span class='warning'>You overload [src]'s bureaucratic logic circuitry to its MAXIMUM setting.</span>")
|
||||
to_chat(user, SPAN_WARNING("You overload [src]'s bureaucratic logic circuitry to its MAXIMUM setting."))
|
||||
ticket_number = rand(0, max_number)
|
||||
current_number = ticket_number
|
||||
emagged = TRUE
|
||||
for(var/obj/item/ticket_machine_ticket/ticket in tickets)
|
||||
ticket.visible_message("<span class='notice'>\the [ticket] disperses!</span>")
|
||||
ticket.visible_message(SPAN_NOTICE("\the [ticket] disperses!"))
|
||||
qdel(ticket)
|
||||
tickets.Cut()
|
||||
update_icon()
|
||||
@@ -52,7 +52,7 @@
|
||||
return
|
||||
if(current_number && !(emagged) && tickets[current_number])
|
||||
var/obj/item/ticket_machine_ticket/ticket = tickets[current_number]
|
||||
ticket.audible_message("<span class='notice'>\the [tickets[current_number]] disperses!</span>")
|
||||
ticket.audible_message(SPAN_NOTICE("\the [tickets[current_number]] disperses!"))
|
||||
qdel(ticket)
|
||||
if(current_number < ticket_number)
|
||||
current_number ++ //Increment the one we're serving.
|
||||
@@ -60,7 +60,7 @@
|
||||
atom_say("Now serving ticket #[current_number]!")
|
||||
if(!(emagged) && tickets[current_number])
|
||||
var/obj/item/ticket_machine_ticket/ticket = tickets[current_number]
|
||||
ticket.audible_message("<span class='notice'>\the [tickets[current_number]] vibrates!</span>")
|
||||
ticket.audible_message(SPAN_NOTICE("\the [tickets[current_number]] vibrates!"))
|
||||
update_icon() //Update our icon here rather than when they take a ticket to show the current ticket number being served
|
||||
|
||||
/obj/machinery/door_control/ticket_machine_button
|
||||
@@ -83,7 +83,7 @@
|
||||
M.increment()
|
||||
addtimer(VARSET_CALLBACK(src, cooldown, FALSE), 10)
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>Access denied.</span>")
|
||||
to_chat(usr, SPAN_WARNING("Access denied."))
|
||||
flick("doorctrl-denied", src)
|
||||
|
||||
/obj/machinery/door_control/ticket_machine_button/update_icon_state()
|
||||
@@ -117,17 +117,17 @@
|
||||
/obj/machinery/ticket_machine/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(istype(used, /obj/item/hand_labeler_refill))
|
||||
if(!(ticket_number >= max_number))
|
||||
to_chat(user, "<span class='notice'>[src] refuses [used]! There [max_number-ticket_number==1 ? "is" : "are"] still [max_number-ticket_number] ticket\s left!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] refuses [used]! There [max_number-ticket_number==1 ? "is" : "are"] still [max_number-ticket_number] ticket\s left!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
to_chat(user, "<span class='notice'>You start to refill [src]'s ticket holder (doing this will reset its ticket count!).</span>")
|
||||
to_chat(user, SPAN_NOTICE("You start to refill [src]'s ticket holder (doing this will reset its ticket count!)."))
|
||||
if(do_after(user, 30, target = src))
|
||||
to_chat(user, "<span class='notice'>You insert [used] into [src] as it whirs nondescriptly.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert [used] into [src] as it whirs nondescriptly."))
|
||||
user.drop_item()
|
||||
qdel(used)
|
||||
ticket_number = 0
|
||||
current_number = 0
|
||||
for(var/obj/item/ticket_machine_ticket/ticket in tickets)
|
||||
ticket.audible_message("<span class='notice'>\the [ticket] disperses!</span>")
|
||||
ticket.audible_message(SPAN_NOTICE("\the [ticket] disperses!"))
|
||||
qdel(ticket)
|
||||
tickets.Cut()
|
||||
max_number = initial(max_number)
|
||||
@@ -138,10 +138,10 @@
|
||||
var/obj/item/card/id/heldID = used
|
||||
if(ACCESS_HOP in heldID.access)
|
||||
dispense_enabled = !dispense_enabled
|
||||
to_chat(user, "<span class='notice'>You [dispense_enabled ? "enable" : "disable"] [src], it will [dispense_enabled ? "now" : "no longer"] dispense tickets!</span>")
|
||||
to_chat(user, SPAN_NOTICE("You [dispense_enabled ? "enable" : "disable"] [src], it will [dispense_enabled ? "now" : "no longer"] dispense tickets!"))
|
||||
handle_maptext()
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
to_chat(user, "<span class='warning'>You do not have the required access to [dispense_enabled ? "disable" : "enable"] the ticket machine.</span>")
|
||||
to_chat(user, SPAN_WARNING("You do not have the required access to [dispense_enabled ? "disable" : "enable"] the ticket machine."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
return ..()
|
||||
@@ -152,20 +152,20 @@
|
||||
/obj/machinery/ticket_machine/attack_hand(mob/living/carbon/user)
|
||||
. = ..()
|
||||
if(!ready)
|
||||
to_chat(user,"<span class='warning'>You press the button, but nothing happens...</span>")
|
||||
to_chat(user,SPAN_WARNING("You press the button, but nothing happens..."))
|
||||
return
|
||||
if(!dispense_enabled)
|
||||
to_chat(user, "<span class='warning'>[src] is disabled.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] is disabled."))
|
||||
return
|
||||
if(ticket_number >= max_number)
|
||||
to_chat(user,"<span class='warning'>Ticket supply depleted, please refill this unit with a hand labeller refill cartridge!</span>")
|
||||
to_chat(user,SPAN_WARNING("Ticket supply depleted, please refill this unit with a hand labeller refill cartridge!"))
|
||||
return
|
||||
if((user.UID() in ticket_holders) && !(emagged))
|
||||
to_chat(user, "<span class='warning'>You already have a ticket!</span>")
|
||||
to_chat(user, SPAN_WARNING("You already have a ticket!"))
|
||||
return
|
||||
playsound(src, 'sound/machines/terminal_insert_disc.ogg', 100, FALSE)
|
||||
ticket_number ++
|
||||
to_chat(user, "<span class='notice'>You take a ticket from [src], looks like you're ticket number #[ticket_number]...</span>")
|
||||
to_chat(user, SPAN_NOTICE("You take a ticket from [src], looks like you're ticket number #[ticket_number]..."))
|
||||
var/obj/item/ticket_machine_ticket/theirticket = new /obj/item/ticket_machine_ticket(get_turf(src))
|
||||
theirticket.name = "Ticket #[ticket_number]"
|
||||
theirticket.maptext = "<font color='#000000' face='Small Fonts'>[ticket_number]</font>"
|
||||
@@ -190,7 +190,7 @@
|
||||
|
||||
/obj/machinery/ticket_machine/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>Use an ID card with <b>Head of Personnel</b> access on this machine to [dispense_enabled ? "disable" : "enable"] ticket dispensing.</span>"
|
||||
. += SPAN_NOTICE("Use an ID card with <b>Head of Personnel</b> access on this machine to [dispense_enabled ? "disable" : "enable"] ticket dispensing.")
|
||||
|
||||
/obj/item/ticket_machine_ticket
|
||||
name = "Ticket"
|
||||
@@ -215,13 +215,13 @@
|
||||
..()
|
||||
if(P.get_heat())
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites [user.p_themselves()]!</span>", \
|
||||
"<span class='userdanger'>You miss the paper and accidentally light yourself on fire!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] accidentally ignites [user.p_themselves()]!"), \
|
||||
SPAN_USERDANGER("You miss the paper and accidentally light yourself on fire!"))
|
||||
user.drop_item()
|
||||
user.adjust_fire_stacks(1)
|
||||
user.IgniteMob()
|
||||
return
|
||||
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()
|
||||
|
||||
/obj/item/paper/extinguish()
|
||||
|
||||
Reference in New Issue
Block a user