mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] next set of spans (#9247)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -45,16 +45,14 @@
|
||||
icon = "heart-o"
|
||||
|
||||
/datum/data/pda/utility/scanmode/medical/scan_mob(mob/living/C as mob, mob/living/user as mob)
|
||||
C.visible_message("<span class=warning>[user] has analyzed [C]'s vitals!</span>")
|
||||
C.visible_message(span_warning("[user] has analyzed [C]'s vitals!"))
|
||||
|
||||
user.show_message(span_notice("Analyzing Results for [C]:"))
|
||||
user.show_message(span_notice(" Overall Status: [C.stat > 1 ? "dead" : "[C.health - C.halloss]% healthy"]"), 1)
|
||||
user.show_message(text("<span class='notice'> Damage Specifics:</span> <span class='[]'>[]</span>-<span class='[]'>[]</span>-<span class='[]'>[]</span>-<span class='[]'>[]</span>",
|
||||
(C.getOxyLoss() > 50) ? "warning" : "", C.getOxyLoss(),
|
||||
(C.getToxLoss() > 50) ? "warning" : "", C.getToxLoss(),
|
||||
(C.getFireLoss() > 50) ? "warning" : "", C.getFireLoss(),
|
||||
(C.getBruteLoss() > 50) ? "warning" : "", C.getBruteLoss()
|
||||
), 1)
|
||||
user.show_message(span_notice(" Damage Specifics:") + " [(C.getOxyLoss() > 50) ? span_warning(C.getOxyLoss()) : C.getOxyLoss()]-\
|
||||
[(C.getToxLoss() > 50) ? span_warning(C.getToxLoss()) : C.getToxLoss()]-\
|
||||
[(C.getFireLoss() > 50) ? span_warning(C.getFireLoss()) : C.getFireLoss()]-\
|
||||
[(C.getBruteLoss() > 50) ? span_warning(C.getBruteLoss()) : C.getBruteLoss()]", 1)
|
||||
user.show_message(span_notice(" Key: Suffocation/Toxin/Burns/Brute"), 1)
|
||||
user.show_message(span_notice(" Body Temperature: [C.bodytemperature-T0C]°C ([C.bodytemperature*1.8-459.67]°F)"), 1)
|
||||
if(C.tod && (C.stat == DEAD || (C.status_flags & FAKEDEATH)))
|
||||
@@ -65,8 +63,8 @@
|
||||
user.show_message(span_notice("Localized Damage, Brute/Burn:"),1)
|
||||
if(length(damaged)>0)
|
||||
for(var/obj/item/organ/external/org in damaged)
|
||||
user.show_message(text("<span class='notice'> []: <span class='[]'>[]</span>-<span class='[]'>[]</span></span>",
|
||||
capitalize(org.name), (org.brute_dam > 0) ? "warning" : "notice", org.brute_dam, (org.burn_dam > 0) ? "warning" : "notice", org.burn_dam),1)
|
||||
user.show_message(span_notice(" [capitalize(org.name)]: [(org.brute_dam > 0) ? span_warning("[org.brute_dam]") : span_notice("[org.brute_dam]")]-\
|
||||
[(org.burn_dam > 0) ? span_warning("[org.burn_dam]") : span_notice("[org.burn_dam]")]"), 1)
|
||||
else
|
||||
user.show_message(span_notice(" Limbs are OK."),1)
|
||||
|
||||
@@ -78,9 +76,9 @@
|
||||
if(istype(C, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = C
|
||||
if(!istype(H.dna, /datum/dna))
|
||||
to_chat(user, "<span class=notice>No fingerprints found on [H]</span>")
|
||||
to_chat(user, span_notice("No fingerprints found on [H]"))
|
||||
else
|
||||
to_chat(user, "<span class=notice>[H]'s Fingerprints: [md5(H.dna.uni_identity)]</span>")
|
||||
to_chat(user, span_notice("[H]'s Fingerprints: [md5(H.dna.uni_identity)]"))
|
||||
scan_blood(C, user)
|
||||
|
||||
/datum/data/pda/utility/scanmode/dna/scan_atom(atom/A as mob|obj|turf|area, mob/user as mob)
|
||||
@@ -88,27 +86,27 @@
|
||||
|
||||
/datum/data/pda/utility/scanmode/dna/proc/scan_blood(atom/A, mob/user)
|
||||
if(!A.blood_DNA)
|
||||
to_chat(user, "<span class=notice>No blood found on [A]</span>")
|
||||
to_chat(user, span_notice("No blood found on [A]"))
|
||||
if(A.blood_DNA)
|
||||
qdel(A.blood_DNA)
|
||||
else
|
||||
to_chat(user, "<span class=notice>Blood found on [A]. Analysing...</span>")
|
||||
to_chat(user, span_notice("Blood found on [A]. Analysing..."))
|
||||
spawn(15)
|
||||
for(var/blood in A.blood_DNA)
|
||||
to_chat(user, "<span class=notice>Blood type: [A.blood_DNA[blood]]\nDNA: [blood]</span>")
|
||||
to_chat(user, span_notice("Blood type: [A.blood_DNA[blood]]\nDNA: [blood]"))
|
||||
|
||||
/datum/data/pda/utility/scanmode/halogen
|
||||
base_name = "Halogen Counter"
|
||||
icon = "exclamation-circle"
|
||||
|
||||
/datum/data/pda/utility/scanmode/halogen/scan_mob(mob/living/C as mob, mob/living/user as mob)
|
||||
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!"))
|
||||
|
||||
user.show_message("<span class=notice>Analyzing Results for [C]:</span>")
|
||||
user.show_message(span_notice("Analyzing Results for [C]:"))
|
||||
if(C.radiation)
|
||||
user.show_message("<span class=notice>Radiation Level: [C.radiation > 0 ? "</span><span class=danger>[C.radiation]" : "0"]</span>")
|
||||
user.show_message(span_notice("Radiation Level: [C.radiation > 0 ? span_danger("[C.radiation]") : "0"]"))
|
||||
else
|
||||
user.show_message("<span class=notice>No radiation detected.</span>")
|
||||
user.show_message(span_notice("No radiation detected."))
|
||||
|
||||
/datum/data/pda/utility/scanmode/reagent
|
||||
base_name = "Reagent Scanner"
|
||||
@@ -189,7 +187,7 @@
|
||||
var/scannedtitle = "Paper"
|
||||
if(!isnull(notes.notetitle) && notes.notetitle != "")
|
||||
scannedtitle = "'[notes.notetitle]'"
|
||||
to_chat(user, "<span class=notice>[scannedtitle] scanned to Notekeeper in note [alphabet_uppercase[notes.currentnote]].</span>")//concept of scanning paper copyright brainoblivion 2009
|
||||
to_chat(user, span_notice("[scannedtitle] scanned to Notekeeper in note [alphabet_uppercase[notes.currentnote]]."))//concept of scanning paper copyright brainoblivion 2009
|
||||
|
||||
else
|
||||
to_chat(user, "<span class=warning>Error scanning [A].</span>")
|
||||
to_chat(user, span_warning("Error scanning [A]."))
|
||||
|
||||
Reference in New Issue
Block a user