mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +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:
+17
-17
@@ -92,9 +92,9 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
|
||||
/obj/item/pda/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> [src] to remove its ID card.</span>"
|
||||
. += "<span class='notice'><b>Ctrl-Click</b> [src] to remove its pen.</span>"
|
||||
. += "<span class='notice'>Use a screwdriver on [src] to reset it.</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> [src] to remove its ID card.")
|
||||
. += SPAN_NOTICE("<b>Ctrl-Click</b> [src] to remove its pen.")
|
||||
. += SPAN_NOTICE("Use a screwdriver on [src] to reset it.")
|
||||
|
||||
/obj/item/pda/proc/can_use()
|
||||
if(!ismob(loc))
|
||||
@@ -198,7 +198,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
start_program(find_program(/datum/data/pda/app/main_menu))
|
||||
notifying_programs.Cut()
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
to_chat(user, "<span class='notice'>You press the reset button on \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You press the reset button on \the [src]."))
|
||||
SStgui.update_uis(src)
|
||||
|
||||
/obj/item/pda/AltClick(mob/user)
|
||||
@@ -214,7 +214,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
if(id)
|
||||
remove_id(user)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>This PDA does not have an ID in it!</span>")
|
||||
to_chat(user, SPAN_WARNING("This PDA does not have an ID in it!"))
|
||||
|
||||
/obj/item/pda/CtrlClick(mob/user)
|
||||
..()
|
||||
@@ -229,7 +229,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
if(ismob(loc))
|
||||
var/mob/M = loc
|
||||
M.put_in_hands(id)
|
||||
to_chat(user, "<span class='notice'>You remove the ID from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove the ID from [src]."))
|
||||
SStgui.update_uis(src)
|
||||
else
|
||||
id.forceMove(get_turf(src))
|
||||
@@ -248,15 +248,15 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
|
||||
if(can_use(user))
|
||||
if(held_pen)
|
||||
to_chat(user, "<span class='notice'>You remove [held_pen] from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [held_pen] from [src]."))
|
||||
playsound(src, 'sound/machines/pda_button2.ogg', 50, TRUE)
|
||||
user.put_in_hands(held_pen)
|
||||
clear_pen()
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>This PDA does not have a pen in it.</span>")
|
||||
to_chat(user, SPAN_WARNING("This PDA does not have a pen in it."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You cannot do this while restrained.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You cannot do this while restrained."))
|
||||
|
||||
/obj/item/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use.
|
||||
if(choice == 1)
|
||||
@@ -291,14 +291,14 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
cartridge.forceMove(src)
|
||||
cartridge.update_programs(src)
|
||||
update_shortcuts()
|
||||
to_chat(user, "<span class='notice'>You insert [cartridge] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert [cartridge] into [src]."))
|
||||
SStgui.update_uis(src)
|
||||
playsound(src, 'sound/machines/pda_button1.ogg', 50, TRUE)
|
||||
|
||||
else if(istype(C, /obj/item/card/id))
|
||||
var/obj/item/card/id/idcard = C
|
||||
if(!idcard.registered_name)
|
||||
to_chat(user, "<span class='notice'>\The [src] rejects the ID.</span>")
|
||||
to_chat(user, SPAN_NOTICE("\The [src] rejects the ID."))
|
||||
if(!silent)
|
||||
playsound(src, 'sound/machines/terminal_error.ogg', 50, TRUE)
|
||||
return
|
||||
@@ -311,7 +311,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
ownjob = idcard.assignment
|
||||
ownrank = idcard.rank
|
||||
name = "PDA-[owner] ([ownjob])"
|
||||
to_chat(user, "<span class='notice'>Card scanned.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Card scanned."))
|
||||
SStgui.update_uis(src)
|
||||
if(!silent)
|
||||
playsound(src, 'sound/machines/terminal_success.ogg', 50, TRUE)
|
||||
@@ -319,7 +319,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
//Basic safety check. If either both objects are held by user or PDA is on ground and card is in hand.
|
||||
if(!HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) && ((src in user) || (isturf(loc) && in_range(src, user))))
|
||||
id_check(user, 2)
|
||||
to_chat(user, "<span class='notice'>You put the ID into \the [src]'s slot.<br>You can remove it with ALT click.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You put the ID into \the [src]'s slot.<br>You can remove it with ALT click."))
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
SStgui.update_uis(src)
|
||||
|
||||
@@ -327,16 +327,16 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
user.drop_item()
|
||||
C.forceMove(src)
|
||||
pai = C
|
||||
to_chat(user, "<span class='notice'>You slot \the [C] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You slot \the [C] into [src]."))
|
||||
SStgui.update_uis(src)
|
||||
playsound(src, 'sound/machines/pda_button1.ogg', 50, TRUE)
|
||||
else if(is_pen(C))
|
||||
if(held_pen)
|
||||
to_chat(user, "<span class='notice'>There is already a pen in \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("There is already a pen in \the [src]."))
|
||||
else
|
||||
user.drop_item()
|
||||
add_pen(C)
|
||||
to_chat(user, "<span class='notice'>You slide \the [C] into \the [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You slide \the [C] into \the [src]."))
|
||||
playsound(src, 'sound/machines/pda_button1.ogg', 50, TRUE)
|
||||
|
||||
/obj/item/pda/proc/add_pen(obj/item/P)
|
||||
@@ -365,7 +365,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
|
||||
if(ismob(loc))
|
||||
var/mob/M = loc
|
||||
M.show_message("<span class='danger'>Your [src] explodes!</span>", 1)
|
||||
M.show_message(SPAN_DANGER("Your [src] explodes!"), 1)
|
||||
|
||||
if(T)
|
||||
T.hotspot_expose(700,125)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
return
|
||||
var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger)
|
||||
if(!M)
|
||||
to_chat(usr, "<span class='warning'>Cannot use messenger!</span>")
|
||||
to_chat(usr, SPAN_WARNING("Cannot use messenger!"))
|
||||
var/list/plist = M.available_pdas()
|
||||
if(plist)
|
||||
var/c = tgui_input_list(usr, "Please select a PDA", "Send message", sortList(plist))
|
||||
@@ -50,7 +50,7 @@
|
||||
return
|
||||
var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger)
|
||||
if(!M)
|
||||
to_chat(usr, "<span class='warning'>Cannot use messenger!</span>")
|
||||
to_chat(usr, SPAN_WARNING("Cannot use messenger!"))
|
||||
var/HTML = "<html><meta charset='utf-8'><head><title>AI PDA Message Log</title></head><body>"
|
||||
for(var/index in M.tnote)
|
||||
if(index["sent"])
|
||||
@@ -68,7 +68,7 @@
|
||||
return
|
||||
var/datum/data/pda/app/messenger/M = find_program(/datum/data/pda/app/messenger)
|
||||
M.toff = !M.toff
|
||||
to_chat(usr, "<span class='notice'>PDA sender/receiver toggled [(M.toff ? "Off" : "On")]!</span>")
|
||||
to_chat(usr, SPAN_NOTICE("PDA sender/receiver toggled [(M.toff ? "Off" : "On")]!"))
|
||||
|
||||
/obj/item/pda/silicon/verb/cmd_toggle_pda_silent()
|
||||
set category = "AI IM"
|
||||
@@ -78,7 +78,7 @@
|
||||
return
|
||||
|
||||
silent = !silent
|
||||
to_chat(usr, "<span class='notice'>PDA ringer toggled [(silent ? "Off" : "On")]!</span>")
|
||||
to_chat(usr, SPAN_NOTICE("PDA ringer toggled [(silent ? "Off" : "On")]!"))
|
||||
|
||||
/obj/item/pda/silicon/ai
|
||||
default_cartridge = /obj/item/cartridge/ai
|
||||
@@ -106,6 +106,6 @@
|
||||
if(!istype(pAI))
|
||||
return FALSE
|
||||
if(!pAI.installed_software["messenger"])
|
||||
to_chat(usr, "<span class='warning'>You have not purchased the digital messenger!</span>")
|
||||
to_chat(usr, SPAN_WARNING("You have not purchased the digital messenger!"))
|
||||
return FALSE
|
||||
return ..() && !pAI.silence_time
|
||||
|
||||
@@ -168,13 +168,13 @@
|
||||
break
|
||||
|
||||
if(!sendable) // Are we in the range of a receiver?
|
||||
to_chat(U, "<span class='warning'>ERROR: No connection to server.</span>")
|
||||
to_chat(U, SPAN_WARNING("ERROR: No connection to server."))
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
return
|
||||
|
||||
if(!receivable) // Is our recipient in the range of a receiver?
|
||||
to_chat(U, "<span class='warning'>ERROR: No connection to recipient.</span>")
|
||||
to_chat(U, SPAN_WARNING("ERROR: No connection to recipient."))
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
return
|
||||
@@ -185,12 +185,12 @@
|
||||
useMS.send_pda_message("[P.owner]","[pda.owner]","[t]")
|
||||
tnote.Add(list(list("sent" = 1, "owner" = "[P.owner]", "job" = "[P.ownjob]", "message" = "[html_decode(t)]", "target" = "[P.UID()]")))
|
||||
PM.tnote.Add(list(list("sent" = 0, "owner" = "[pda.owner]", "job" = "[pda.ownjob]", "message" = "[html_decode(t)]", "target" = "[pda.UID()]")))
|
||||
pda.investigate_log("<span class='game say'>PDA Message - <span class='name'>[pda.owner] ([U.key] [ADMIN_PP(U, "PP")])</span> -> <span class='name'>[P.owner]</span> ([ADMIN_VV(P, "VV")]), Message: <span class='message'>\"[t]\"</span></span>", "pda")
|
||||
pda.investigate_log("<span class='game say'>PDA Message - [SPAN_NAME("[pda.owner] ([U.key] [ADMIN_PP(U, "PP")])")] -> [SPAN_NAME("[P.owner]")] ([ADMIN_VV(P, "VV")]), Message: [SPAN_MESSAGE("\"[t]\"")]</span>", "pda")
|
||||
|
||||
// Show it to ghosts
|
||||
for(var/mob/M in GLOB.dead_mob_list)
|
||||
if(isobserver(M) && M.client && (M.client.prefs.toggles & PREFTOGGLE_CHAT_GHOSTPDA))
|
||||
var/ghost_message = "<span class='name'>[pda.owner]</span> ([ghost_follow_link(pda, ghost=M)]) <span class='game say'>PDA Message</span> --> <span class='name'>[P.owner]</span> ([ghost_follow_link(P, ghost=M)]): <span class='message'>[t]</span>"
|
||||
var/ghost_message = SPAN_NAME("[pda.owner]</span> ([ghost_follow_link(pda, ghost=M)]) <span class='game say'>PDA Message</span> --> [SPAN_NAME("[P.owner]")] ([ghost_follow_link(P, ghost=M)]): <span class='message'>[t]")
|
||||
to_chat(M, "[ghost_message]")
|
||||
|
||||
if(!conversations.Find("[P.UID()]"))
|
||||
@@ -213,7 +213,7 @@
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_success.ogg', 15, TRUE)
|
||||
else
|
||||
to_chat(U, "<span class='notice'>ERROR: Messaging server is not responding.</span>")
|
||||
to_chat(U, SPAN_NOTICE("ERROR: Messaging server is not responding."))
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/datum/data/pda/messenger_plugin/virus/clown/user_act(mob/user as mob, obj/item/pda/P)
|
||||
. = ..(user, P)
|
||||
if(.)
|
||||
user.show_message("<span class='notice'>Virus sent!</span>", 1)
|
||||
user.show_message(SPAN_NOTICE("Virus sent!"), 1)
|
||||
P.honkamt = (rand(15,20))
|
||||
P.ttone = "honk"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
/datum/data/pda/messenger_plugin/virus/mime/user_act(mob/user as mob, obj/item/pda/P)
|
||||
. = ..(user, P)
|
||||
if(.)
|
||||
user.show_message("<span class='notice'>Virus sent!</span>", 1)
|
||||
user.show_message(SPAN_NOTICE("Virus sent!"), 1)
|
||||
P.silent = TRUE
|
||||
P.ttone = "silence"
|
||||
|
||||
@@ -46,10 +46,10 @@
|
||||
. = ..()
|
||||
if(.)
|
||||
if(!pda_to_detonate.detonate || pda_to_detonate.hidden_uplink)
|
||||
user.show_message("<span class='warning'>The target PDA does not seem to respond to the detonation command.</span>", 1)
|
||||
user.show_message(SPAN_WARNING("The target PDA does not seem to respond to the detonation command."), 1)
|
||||
pda.cartridge.charges++
|
||||
else
|
||||
user.show_message("<span class='notice'>Success!</span>", 1)
|
||||
user.show_message(SPAN_NOTICE("Success!"), 1)
|
||||
log_admin("[key_name(user)] just blew up [pda_to_detonate] with the Detomatix cartridge")
|
||||
message_admins("[key_name_admin(user)] just blew up [pda_to_detonate] with the Detomatix cartridge", 1)
|
||||
pda_to_detonate.explode()
|
||||
@@ -61,7 +61,7 @@
|
||||
. = ..(user, P)
|
||||
if(.)
|
||||
var/lock_code = "[rand(100,999)] [pick("Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","India","Juliet","Kilo","Lima","Mike","November","Oscar","Papa","Quebec","Romeo","Sierra","Tango","Uniform","Victor","Whiskey","X-ray","Yankee","Zulu")]"
|
||||
user.show_message("<span class='notice'>Virus Sent! The unlock code to the target is: [lock_code]</span>")
|
||||
user.show_message(SPAN_NOTICE("Virus Sent! The unlock code to the target is: [lock_code]"))
|
||||
if(!P.hidden_uplink)
|
||||
var/obj/item/uplink/hidden/uplink = new(P)
|
||||
P.hidden_uplink = uplink
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
if(!istype(transfer_to) || transfer_to == src)
|
||||
return //account no longer exists or something fucked is going on
|
||||
if(transfer_funds(user, transfer_amount, transfer_to))
|
||||
to_chat(user, "<span class='notice'>NanoBank: Transfer Successful</span>")
|
||||
to_chat(user, SPAN_NOTICE("NanoBank: Transfer Successful"))
|
||||
last_transaction = world.time
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/ping.ogg', 50, 0)
|
||||
@@ -199,7 +199,7 @@
|
||||
if(!istype(request_from) || request_from == user_account)
|
||||
return //account no longer exists or they're trying to send to themselves
|
||||
if(create_fund_request(user, transfer_amount, purpose, request_from))
|
||||
to_chat(user, "<span class='notice'>NanoBank: Transfer Request Submitted</span>")
|
||||
to_chat(user, SPAN_NOTICE("NanoBank: Transfer Request Submitted"))
|
||||
last_transaction = world.time
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/ping.ogg', 50, 0)
|
||||
@@ -222,9 +222,9 @@
|
||||
attempt_pin = input_account_pin(user)
|
||||
if(account_database.try_authenticate_login(user_account, attempt_pin, FALSE, FALSE, FALSE))
|
||||
user_account.security_level = new_sec_level
|
||||
to_chat(user, "<span class='notice'>Nanobank: account security set to [new_sec_level == ACCOUNT_SECURITY_ID ? "*Account Number Only*" : "*Require Pin Entry*"]</span>")
|
||||
to_chat(user, SPAN_NOTICE("Nanobank: account security set to [new_sec_level == ACCOUNT_SECURITY_ID ? "*Account Number Only*" : "*Require Pin Entry*"]"))
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Authentification Failure: incorrect pin.</span>")
|
||||
to_chat(user, SPAN_WARNING("Authentification Failure: incorrect pin."))
|
||||
|
||||
if("purchase_premium")
|
||||
if(premium_version)
|
||||
@@ -277,12 +277,12 @@
|
||||
|
||||
/datum/data/pda/app/nanobank/proc/attempt_login(tried_account_num, tried_pin, mob/user)
|
||||
if(!tried_account_num)
|
||||
to_chat(user, "<span class='warning'>Authentification Failure: Account number not found.</span>")
|
||||
to_chat(user, SPAN_WARNING("Authentification Failure: Account number not found."))
|
||||
return FALSE
|
||||
|
||||
var/datum/money_account/attempt_account = account_database.find_user_account(tried_account_num, include_departments = TRUE)
|
||||
if(!attempt_account)
|
||||
to_chat(user, "<span class='warning'>Authentification Failure: User Account Not Found.</span>")
|
||||
to_chat(user, SPAN_WARNING("Authentification Failure: User Account Not Found."))
|
||||
return FALSE
|
||||
|
||||
if(account_database.try_authenticate_login(attempt_account, tried_pin, TRUE, FALSE, FALSE))
|
||||
@@ -337,7 +337,7 @@
|
||||
return attempt_pin
|
||||
|
||||
/datum/data/pda/app/nanobank/proc/error_message(mob/user, message)
|
||||
to_chat(user, "<span class='warning'>ERROR: [message].</span>")
|
||||
to_chat(user, SPAN_WARNING("ERROR: [message]."))
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_error.ogg', 15, TRUE)
|
||||
|
||||
@@ -363,7 +363,7 @@
|
||||
if(ishuman(pda.loc))
|
||||
var/mob/user = pda.loc
|
||||
if(user.stat != UNCONSCIOUS) // Awake or dead people can see their messages
|
||||
to_chat(user, "<span class='notice'>NanoBank: Paycheck of [amount] credits received</span>")
|
||||
to_chat(user, SPAN_NOTICE("NanoBank: Paycheck of [amount] credits received"))
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/ping.ogg', 50, 0)
|
||||
|
||||
@@ -453,10 +453,10 @@
|
||||
|
||||
/datum/data/pda/app/nanobank/proc/pay_with_account(user, amount, purpose, transactor, datum/money_account/target)
|
||||
if(user_account.suspended)
|
||||
to_chat(user, "<span class='warning'>Unable to access account: account suspended.</span>")
|
||||
to_chat(user, SPAN_WARNING("Unable to access account: account suspended."))
|
||||
return FALSE
|
||||
if(!account_database.charge_account(user_account, amount, purpose, transactor, allow_overdraft = FALSE, supress_log = FALSE))
|
||||
to_chat(user, "<span class='warning'>Unable to complete transaction: account has insufficient credit balance to purchase this.</span>")
|
||||
to_chat(user, SPAN_WARNING("Unable to complete transaction: account has insufficient credit balance to purchase this."))
|
||||
return FALSE
|
||||
account_database.credit_account(target, amount, purpose, transactor, FALSE)
|
||||
return TRUE
|
||||
@@ -472,7 +472,7 @@
|
||||
return FALSE
|
||||
var/is_admin = is_admin(user)
|
||||
if(!account_database.try_authenticate_login(customer_account, attempt_pin, TRUE, FALSE, is_admin))
|
||||
to_chat(user, "<span class='warning'>Unable to access account: incorrect credentials.</span>")
|
||||
to_chat(user, SPAN_WARNING("Unable to access account: incorrect credentials."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
icon = "heart-o"
|
||||
|
||||
/datum/data/pda/utility/scanmode/medical/scan_mob(mob/living/M, mob/living/user)
|
||||
user.visible_message("<span class='notice'>[user] analyzes [M]'s vitals.</span>", "<span class='notice'>You analyze [M]'s vitals.</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] analyzes [M]'s vitals."), SPAN_NOTICE("You analyze [M]'s vitals."))
|
||||
|
||||
healthscan(user, M, 1)
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
if(ishuman(C))
|
||||
var/mob/living/carbon/human/H = C
|
||||
if(!istype(H.dna, /datum/dna))
|
||||
messages.Add("<span class='notice'>No fingerprints found on [H]</span>")
|
||||
messages.Add(SPAN_NOTICE("No fingerprints found on [H]"))
|
||||
else
|
||||
messages.Add("<span class='notice'>[H]'s Fingerprints: [md5(H.dna.uni_identity)]</span>")
|
||||
messages.Add(SPAN_NOTICE("[H]'s Fingerprints: [md5(H.dna.uni_identity)]"))
|
||||
if(length(messages))
|
||||
to_chat(user, chat_box_regular(messages.Join("<br>")))
|
||||
scan_blood(C, user)
|
||||
@@ -72,14 +72,14 @@
|
||||
/datum/data/pda/utility/scanmode/dna/proc/scan_blood(atom/A, mob/user)
|
||||
var/list/messages = list()
|
||||
if(!A.blood_DNA)
|
||||
messages.Add("<span class='notice'>No blood found on [A]</span>")
|
||||
messages.Add(SPAN_NOTICE("No blood found on [A]"))
|
||||
if(A.blood_DNA)
|
||||
qdel(A.blood_DNA)
|
||||
else
|
||||
messages.Add("<span class='notice'>Blood found on [A]. Analysing...</span>")
|
||||
messages.Add(SPAN_NOTICE("Blood found on [A]. Analysing..."))
|
||||
spawn(15)
|
||||
for(var/blood in A.blood_DNA)
|
||||
messages.Add("<span class='notice'>Blood type: [A.blood_DNA[blood]]\nDNA: [blood]</span>")
|
||||
messages.Add(SPAN_NOTICE("Blood type: [A.blood_DNA[blood]]\nDNA: [blood]"))
|
||||
to_chat(user, chat_box_regular(messages.Join("<br>")))
|
||||
|
||||
/datum/data/pda/utility/scanmode/rad_scanner
|
||||
@@ -88,13 +88,13 @@
|
||||
|
||||
/datum/data/pda/utility/scanmode/rad_scanner/scan_mob(mob/living/C as mob, mob/living/user as mob)
|
||||
var/list/messages = list()
|
||||
C.visible_message("<span class='warning'>[user] has analyzed [C]'s radiation levels!</span>")
|
||||
C.visible_message(SPAN_WARNING("[user] has analyzed [C]'s radiation levels!"))
|
||||
|
||||
messages.Add("<span class='notice'>Analyzing Results for [C]:</span>")
|
||||
messages.Add(SPAN_NOTICE("Analyzing Results for [C]:"))
|
||||
if(C.radiation)
|
||||
messages.Add("<span class='notice'>Radiation Level: [C.radiation > 0 ? "</span><span class='danger'>[C.radiation]" : "0"]</span>")
|
||||
messages.Add(SPAN_NOTICE("Radiation Level: [C.radiation > 0 ? "</span><span class='danger'>[C.radiation]" : "0"]"))
|
||||
else
|
||||
messages.Add("<span class='notice'>No radiation detected.</span>")
|
||||
messages.Add(SPAN_NOTICE("No radiation detected."))
|
||||
to_chat(user, chat_box_regular(messages.Join("<br>")))
|
||||
|
||||
/datum/data/pda/utility/scanmode/reagent
|
||||
@@ -106,17 +106,17 @@
|
||||
if(!isnull(A.reagents))
|
||||
if(length(A.reagents.reagent_list) > 0)
|
||||
var/reagents_length = length(A.reagents.reagent_list)
|
||||
messages.Add("<span class='notice'>[reagents_length] chemical agent[reagents_length > 1 ? "s" : ""] found.</span>")
|
||||
messages.Add(SPAN_NOTICE("[reagents_length] chemical agent[reagents_length > 1 ? "s" : ""] found."))
|
||||
for(var/datum/reagent/R in A.reagents.reagent_list)
|
||||
if(R.id != "blood")
|
||||
messages.Add("<span class='notice'>\t [R]</span>")
|
||||
messages.Add(SPAN_NOTICE("\t [R]"))
|
||||
else
|
||||
var/blood_type = R.data["blood_type"]
|
||||
messages.Add("<span class='notice'>\t [R] [blood_type]</span>")
|
||||
messages.Add(SPAN_NOTICE("\t [R] [blood_type]"))
|
||||
else
|
||||
messages.Add("<span class='notice'>No active chemical agents found in [A].</span>")
|
||||
messages.Add(SPAN_NOTICE("No active chemical agents found in [A]."))
|
||||
else
|
||||
messages.Add("<span class='notice'>No significant chemical agents found in [A].</span>")
|
||||
messages.Add(SPAN_NOTICE("No significant chemical agents found in [A]."))
|
||||
to_chat(user, chat_box_regular(messages.Join("<br>")))
|
||||
|
||||
/datum/data/pda/utility/scanmode/gas
|
||||
|
||||
Reference in New Issue
Block a user