mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
refactors most spans
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
throw_range = 20
|
||||
var/randomize = TRUE
|
||||
var/square_chance = 10
|
||||
|
||||
|
||||
/obj/item/soap/Initialize()
|
||||
if(randomize && prob(square_chance))
|
||||
icon_state = "[icon_state]-alt"
|
||||
@@ -331,7 +331,7 @@
|
||||
if (C.bugged && C.status)
|
||||
cameras.Add(C)
|
||||
if (length(cameras) == 0)
|
||||
to_chat(usr, "<span class='warning'>No bugged functioning cameras found.</span>")
|
||||
to_chat(usr, span_warning("No bugged functioning cameras found."))
|
||||
return
|
||||
|
||||
var/list/friendly_cameras = new/list()
|
||||
@@ -433,7 +433,7 @@
|
||||
/obj/item/storage/part_replacer/examine(mob/user)
|
||||
. = ..()
|
||||
if(!reskin_ran)
|
||||
. += "<span class='notice'>[src]'s external casing can be modified via alt-click.</span>"
|
||||
. += span_notice("[src]'s external casing can be modified via alt-click.")
|
||||
|
||||
/obj/item/storage/part_replacer/AltClick(mob/user)
|
||||
. = ..()
|
||||
|
||||
@@ -56,9 +56,9 @@
|
||||
for(var/mob/M in player_list)
|
||||
if(!istype(M,/mob/new_player) && !isdeaf(M))
|
||||
to_chat(M, "<h2 class='alert'>[title]</h2>")
|
||||
to_chat(M, "<span class='alert'>[message]</span>")
|
||||
to_chat(M, span_alert("[message]"))
|
||||
if (announcer)
|
||||
to_chat(M, "<span class='alert'> -[html_encode(announcer)]</span>")
|
||||
to_chat(M, span_alert(" -[html_encode(announcer)]"))
|
||||
|
||||
// You'll need to update these to_world usages if you want to make these z-level specific ~Aro
|
||||
/datum/announcement/minor/Message(message as text, message_title as text)
|
||||
@@ -66,9 +66,9 @@
|
||||
|
||||
/datum/announcement/priority/Message(message as text, message_title as text)
|
||||
to_world("<h1 class='alert'>[message_title]</h1>")
|
||||
to_world("<span class='alert'>[message]</span>")
|
||||
to_world(span_alert("[message]"))
|
||||
if(announcer)
|
||||
to_world("<span class='alert'> -[html_encode(announcer)]</span>")
|
||||
to_world(span_alert(" -[html_encode(announcer)]"))
|
||||
to_world("<br>")
|
||||
|
||||
/datum/announcement/priority/command/Message(message as text, message_title as text, var/list/zlevels)
|
||||
@@ -77,7 +77,7 @@
|
||||
if (message_title)
|
||||
command += "<br><h2 class='alert'>[message_title]</h2>"
|
||||
|
||||
command += "<br><span class='alert'>[message]</span><br>"
|
||||
command += "<br>[span_alert(message)]<br>"
|
||||
command += "<br>"
|
||||
for(var/mob/M in player_list)
|
||||
if(zlevels && !(get_z(M) in zlevels))
|
||||
|
||||
Reference in New Issue
Block a user