remove static chat colour tags

This commit is contained in:
Kashargul
2024-01-21 12:34:53 +01:00
parent 956acefc4d
commit e4b62dfa35
242 changed files with 1178 additions and 996 deletions
+6 -7
View File
@@ -54,17 +54,17 @@ var/global/list/rad_collectors = list()
investigate_log("turned [active?"<font color='green'>on</font>":"<font color='red'>off</font>"] by [user.key]. [P?"Fuel: [round(P.air_contents.gas["phoron"]/0.29)]%":"<font color='red'>It is empty</font>"].","singulo")
return
else
to_chat(user, "<font color='red'>The controls are locked!</font>")
to_chat(user, span_red("The controls are locked!"))
return
/obj/machinery/power/rad_collector/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/tank/phoron))
if(!src.anchored)
to_chat(user, "<font color='red'>The [src] needs to be secured to the floor first.</font>")
to_chat(user, span_red("The [src] needs to be secured to the floor first."))
return 1
if(src.P)
to_chat(user, "<font color='red'>There's already a phoron tank loaded.</font>")
to_chat(user, span_red("There's already a phoron tank loaded."))
return 1
user.drop_item()
src.P = W
@@ -77,7 +77,7 @@ var/global/list/rad_collectors = list()
return 1
else if(W.has_tool_quality(TOOL_WRENCH))
if(P)
to_chat(user, "<font color='blue'>Remove the phoron tank first.</font>")
to_chat(user, span_blue("Remove the phoron tank first."))
return 1
playsound(src, W.usesound, 75, 1)
src.anchored = !src.anchored
@@ -96,9 +96,9 @@ var/global/list/rad_collectors = list()
to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]")
else
src.locked = 0 //just in case it somehow gets locked
to_chat(user, "<font color='red'>The controls can only be locked when the [src] is active.</font>")
to_chat(user, span_red("The controls can only be locked when the [src] is active."))
else
to_chat(user, "<font color='red'>Access denied!</font>")
to_chat(user, span_red("Access denied!"))
return 1
return ..()
@@ -157,4 +157,3 @@ var/global/list/rad_collectors = list()
flick("ca_deactive", src)
update_icons()
return
@@ -133,13 +133,13 @@ field_generator power level display
"You hear ratchet")
src.anchored = FALSE
if(2)
to_chat(user, "<font color='red'>The [src.name] needs to be unwelded from the floor.</font>")
to_chat(user, span_red("The [src.name] needs to be unwelded from the floor."))
return
else if(W.has_tool_quality(TOOL_WELDER))
var/obj/item/weapon/weldingtool/WT = W.get_welder()
switch(state)
if(0)
to_chat(user, "<font color='red'>The [src.name] needs to be wrenched to the floor.</font>")
to_chat(user, span_red("The [src.name] needs to be wrenched to the floor."))
return
if(1)
if (WT.remove_fuel(0,user))
@@ -227,7 +227,7 @@ field_generator power level display
return 1
else
for(var/mob/M in viewers(src))
M.show_message("<font color='red'>\The [src] shuts down!</font>")
M.show_message(span_red("\The [src] shuts down!"))
turn_off()
log_game("FIELDGEN([x],[y],[z]) Lost power and was ON.")
investigate_log("ran out of power and <font color='red'>deactivated</font>","singulo")