The Great Spanning (#9320)

This PR get rid of all (most of) the span("thing", spans and replaces them with the SPAN_THING( variant, which has gained more popularity recently.
This commit is contained in:
Geeves
2020-07-12 15:53:28 +03:00
committed by GitHub
parent 29cfd74770
commit 33ad8096fb
260 changed files with 1527 additions and 1525 deletions
+2 -2
View File
@@ -1213,14 +1213,14 @@ var/list/admin_verbs_cciaa = list(
if (isnull(P) || !ismob(P))
var/msg = "P_LIST DEBUG: Found null entry in player_list!"
log_debug(msg)
message_admins(span("danger", msg))
message_admins(SPAN_DANGER(msg))
player_list -= P
else
var/mob/M = P
if (!M.client)
var/msg = "P_LIST DEBUG: Found a mob without a client in player_list! [M.name]"
log_debug(msg)
message_admins(span("danger", msg))
message_admins(SPAN_DANGER(msg))
player_list -= M
/client/proc/reset_openturf()
+1 -1
View File
@@ -576,7 +576,7 @@
else if(href_list["remove_psionics"])
var/datum/psi_complexus/psi = locate(href_list["remove_psionics"])
if(psi && psi.owner && !QDELETED(psi))
to_chat(psi.owner, span("notice", "<b>Your psionic powers vanish abruptly, leaving you cold and empty.</b>"))
to_chat(psi.owner, SPAN_NOTICE("<b>Your psionic powers vanish abruptly, leaving you cold and empty.</b>"))
log_and_message_admins("removed all psionics from [key_name(psi.owner)].")
QDEL_NULL(psi)
+13 -13
View File
@@ -30,7 +30,7 @@
return //how did they get here?
if(!ROUND_IS_STARTED)
to_chat(src, span("alert", "The game hasn't started yet!"))
to_chat(src, SPAN_ALERT("The game hasn't started yet!"))
return
bst_cooldown = TRUE
@@ -135,7 +135,7 @@
var/fall_override = TRUE
/mob/living/carbon/human/bst/can_inject(var/mob/user, var/error_msg, var/target_zone)
to_chat(user, span("alert", "The [src] disarms you before you can inject them."))
to_chat(user, SPAN_ALERT("The [src] disarms you before you can inject them."))
user.drop_item()
return 0
@@ -309,10 +309,10 @@
if(!src.incorporeal_move)
src.incorporeal_move = 2
to_chat(src, span("notice", "You will now phase through solid matter."))
to_chat(src, SPAN_NOTICE("You will now phase through solid matter."))
else
src.incorporeal_move = 0
to_chat(src, span("notice", "You will no-longer phase through solid matter."))
to_chat(src, SPAN_NOTICE("You will no-longer phase through solid matter."))
return
/mob/living/carbon/human/bst/verb/bstrecover()
@@ -352,7 +352,7 @@
set category = "BST"
status_flags ^= GODMODE
to_chat(src, span("notice", "God mode is now [status_flags & GODMODE ? "enabled" : "disabled"]"))
to_chat(src, SPAN_NOTICE("God mode is now [status_flags & GODMODE ? "enabled" : "disabled"]"))
//Equipment. All should have canremove set to 0
//All items with a /bst need the attack_hand() proc overrided to stop people getting overpowered items.
@@ -367,7 +367,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -386,7 +386,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -413,7 +413,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -430,7 +430,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -474,7 +474,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -491,7 +491,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -510,7 +510,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
@@ -524,7 +524,7 @@
if(!usr)
return
if(!istype(usr, /mob/living/carbon/human/bst))
to_chat(usr, span("alert", "Your hand seems to go right through the [src]. It's like it doesn't exist."))
to_chat(usr, SPAN_ALERT("Your hand seems to go right through the [src]. It's like it doesn't exist."))
return
else
..()
+2 -2
View File
@@ -24,7 +24,7 @@
if (issilicon(M) && alert(usr, "Synth detected. Would you like to run rename silicon verb automatically?",, "Yes", "No") == "Yes")
var/mob/living/silicon/S = M
S.SetName(new_name)
to_chat(usr, span("notice", "Silicon properly renamed."))
to_chat(usr, SPAN_NOTICE("Silicon properly renamed."))
href_list["datumrefresh"] = href_list["rename"]
@@ -466,7 +466,7 @@
to_chat(usr, "This can only be done on mobs with clients")
return
to_chat(usr, span("alert", "This command is temporarily disabled."))
to_chat(usr, SPAN_ALERT("This command is temporarily disabled."))
//SSnanoui.send_resources(H.client)
//to_chat(usr, "Resource files sent")