mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 11:07:46 +01:00
refactors most spans
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
/obj/machinery/microscope/attackby(obj/item/W as obj, mob/user as mob)
|
||||
|
||||
if(sample)
|
||||
to_chat(user, "<span class='warning'>There is already a slide in the microscope.</span>")
|
||||
to_chat(user, span_warning("There is already a slide in the microscope."))
|
||||
return
|
||||
|
||||
if(istype(W, /obj/item/forensics/swab)|| istype(W, /obj/item/sample/fibers) || istype(W, /obj/item/sample/print))
|
||||
to_chat(user, "<span class='notice'>You insert \the [W] into the microscope.</span>")
|
||||
to_chat(user, span_notice("You insert \the [W] into the microscope."))
|
||||
user.unEquip(W)
|
||||
W.forceMove(src)
|
||||
sample = W
|
||||
@@ -27,16 +27,16 @@
|
||||
/obj/machinery/microscope/attack_hand(mob/user)
|
||||
|
||||
if(!sample)
|
||||
to_chat(user, "<span class='warning'>The microscope has no sample to examine.</span>")
|
||||
to_chat(user, span_warning("The microscope has no sample to examine."))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>The microscope whirrs as you examine \the [sample].</span>")
|
||||
to_chat(user, span_notice("The microscope whirrs as you examine \the [sample]."))
|
||||
|
||||
if(!do_after(user, 2 SECONDS) || !sample)
|
||||
to_chat(user, "<span class='notice'>You stop examining \the [sample].</span>")
|
||||
to_chat(user, span_notice("You stop examining \the [sample]."))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>Printing findings now...</span>")
|
||||
to_chat(user, span_notice("Printing findings now..."))
|
||||
var/obj/item/paper/report = new(get_turf(src))
|
||||
report.stamped = list(/obj/item/stamp)
|
||||
report.overlays = list("paper_stamped")
|
||||
@@ -70,7 +70,7 @@
|
||||
if(card.evidence && card.evidence.len)
|
||||
report.info += "Surface analysis has determined unique fingerprint strings:<br><br>"
|
||||
for(var/prints in card.evidence)
|
||||
report.info += "<span class='notice'>Fingerprint string: </span>"
|
||||
report.info += span_notice("Fingerprint string: ")
|
||||
if(!is_complete_print(card.evidence[prints]))
|
||||
report.info += "INCOMPLETE PRINT:[card.evidence[prints]]"
|
||||
else
|
||||
@@ -89,9 +89,9 @@
|
||||
if(!istype(remover) || remover.incapacitated() || !Adjacent(remover))
|
||||
return
|
||||
if(!sample)
|
||||
to_chat(remover, "<span class='warning'>\The [src] does not have a sample in it.</span>")
|
||||
to_chat(remover, span_warning("\The [src] does not have a sample in it."))
|
||||
return
|
||||
to_chat(remover, "<span class='notice'>You remove \the [sample] from \the [src].</span>")
|
||||
to_chat(remover, span_notice("You remove \the [sample] from \the [src]."))
|
||||
sample.forceMove(get_turf(src))
|
||||
remover.put_in_hands(sample)
|
||||
sample = null
|
||||
|
||||
Reference in New Issue
Block a user