Replace all BYOND text macros

This commit is contained in:
Markolie
2017-02-21 15:41:37 +01:00
parent fb1cef8029
commit 6982014a6e
286 changed files with 1303 additions and 1311 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ By design, d1 is the smallest direction and d2 is the highest
return */
///// Z-Level Stuff
/* if(breaker_box)
to_chat(user, "\red This cable is connected to nearby breaker box. Use breaker box to interact with it.")
to_chat(user, "<span class='warning'>This cable is connected to nearby breaker box. Use breaker box to interact with it.</span>")
return */
if(shock(user, 50))
+2 -2
View File
@@ -16,10 +16,10 @@
return
if(istype(W, /obj/item/weapon/wirecutters))
to_chat(usr, "\blue These cables are too tough to be cut with those [W.name].")
to_chat(usr, "<span class='notice'>These cables are too tough to be cut with those [W.name].</span>")
return
else if(istype(W, /obj/item/stack/cable_coil))
to_chat(usr, "\blue You will need heavier cables to connect to these.")
to_chat(usr, "<span class='notice'>You will need heavier cables to connect to these.</span>")
return
else
..()
+1 -1
View File
@@ -39,7 +39,7 @@
else
to_chat(user, "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%.")
if(crit_fail)
to_chat(user, "\red This power cell seems to be faulty.")
to_chat(user, "<span class='warning'>This power cell seems to be faulty.</span>")
/obj/item/weapon/stock_parts/cell/attack_self(mob/user as mob)
src.add_fingerprint(user)
+3 -3
View File
@@ -405,7 +405,7 @@
// Aliens smash the bulb but do not get electrocuted./N
/obj/machinery/light/attack_alien(mob/living/carbon/alien/humanoid/user)//So larva don't go breaking light bulbs.
if(status == LIGHT_EMPTY||status == LIGHT_BROKEN)
to_chat(user, "\green That object is useless to you.")
to_chat(user, "<span class=notice'>That object is useless to you.</span>")
return
else if(status == LIGHT_OK||status == LIGHT_BURNED)
user.do_attack_animation(src)
@@ -416,7 +416,7 @@
/obj/machinery/light/attack_animal(mob/living/simple_animal/M)
if(M.melee_damage_upper == 0) return
if(status == LIGHT_EMPTY||status == LIGHT_BROKEN)
to_chat(M, "\red That object is useless to you.")
to_chat(M, "<span class='warning'>That object is useless to you.</span>")
return
else if(status == LIGHT_OK||status == LIGHT_BURNED)
M.do_attack_animation(src)
@@ -701,7 +701,7 @@
/obj/item/weapon/light/proc/shatter()
if(status == LIGHT_OK || status == LIGHT_BURNED)
src.visible_message("\red [name] shatters.","\red You hear a small glass object shatter.")
src.visible_message("<span class='warning'>[name] shatters.</span>","<span class='warning'>You hear a small glass object shatter.</span>")
status = LIGHT_BROKEN
force = 5
sharp = 1
+6 -6
View File
@@ -44,7 +44,7 @@ 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.toxins/0.29)]%":"<font color='red'>It is empty</font>"].","singulo")
return
else
to_chat(user, "\red The controls are locked!")
to_chat(user, "<span class='warning'>The controls are locked!</span>")
return
..()
@@ -57,10 +57,10 @@ var/global/list/rad_collectors = list()
atmosanalyzer_scan(P.air_contents, user)
else if(istype(W, /obj/item/weapon/tank/plasma))
if(!src.anchored)
to_chat(user, "\red The [src] needs to be secured to the floor first.")
to_chat(user, "<span class='warning'>The [src] needs to be secured to the floor first.</span>")
return 1
if(src.P)
to_chat(user, "\red There's already a plasma tank loaded.")
to_chat(user, "<span class='warning'>There's already a plasma tank loaded.</span>")
return 1
user.drop_item()
src.P = W
@@ -72,7 +72,7 @@ var/global/list/rad_collectors = list()
return 1
else if(istype(W, /obj/item/weapon/wrench))
if(P)
to_chat(user, "\blue Remove the plasma tank first.")
to_chat(user, "<span class='notice'>Remove the plasma tank first.</span>")
return 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
src.anchored = !src.anchored
@@ -90,9 +90,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, "\red The controls can only be locked when the [src] is active")
to_chat(user, "<span class='warning'>The controls can only be locked when the [src] is active</span>")
else
to_chat(user, "\red Access denied!")
to_chat(user, "<span class='warning'>Access denied!</span>")
return 1
else
..()
+10 -10
View File
@@ -154,9 +154,9 @@
investigate_log("turned <font color='green'>on</font> by [key_name(usr)]","singulo")
update_icon()
else
to_chat(user, "\red The controls are locked!")
to_chat(user, "<span class='warning'>The controls are locked!</span>")
else
to_chat(user, "\red The [src] needs to be firmly secured to the floor first.")
to_chat(user, "<span class='warning'>The [src] needs to be firmly secured to the floor first.</span>")
return 1
@@ -249,7 +249,7 @@
"You hear a ratchet")
src.anchored = 0
if(2)
to_chat(user, "\red The [src.name] needs to be unwelded from the floor.")
to_chat(user, "<span class='warning'>The [src.name] needs to be unwelded from the floor.</span>")
return
if(istype(W, /obj/item/weapon/weldingtool))
@@ -259,7 +259,7 @@
return
switch(state)
if(0)
to_chat(user, "\red The [src.name] needs to be wrenched to the floor.")
to_chat(user, "<span class='warning'>The [src.name] needs to be wrenched to the floor.</span>")
if(1)
if(WT.remove_fuel(0,user))
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
@@ -272,7 +272,7 @@
to_chat(user, "You weld the [src] to the floor.")
connect_to_network()
else
to_chat(user, "\red You need more welding fuel to complete this task.")
to_chat(user, "<span class='warning'>You need more welding fuel to complete this task.</span>")
if(2)
if(WT.remove_fuel(0,user))
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
@@ -285,12 +285,12 @@
to_chat(user, "You cut the [src] free from the floor.")
disconnect_from_network()
else
to_chat(user, "\red You need more welding fuel to complete this task.")
to_chat(user, "<span class='warning'>You need more welding fuel to complete this task.</span>")
return
if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda))
if(emagged)
to_chat(user, "\red The lock seems to be broken")
to_chat(user, "<span class='warning'>The lock seems to be broken</span>")
return
if(src.allowed(user))
if(active)
@@ -298,9 +298,9 @@
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, "\red The controls can only be locked when the [src] is online")
to_chat(user, "<span class='warning'>The controls can only be locked when the [src] is online</span>")
else
to_chat(user, "\red Access denied.")
to_chat(user, "<span class='warning'>Access denied.</span>")
return
if(default_deconstruction_screwdriver(user, "emitter_open", "emitter", W))
@@ -319,4 +319,4 @@
locked = 0
emagged = 1
if(user)
user.visible_message("[user.name] emags the [src.name].","\red You short out the lock.")
user.visible_message("[user.name] emags the [src.name].","<span class='warning'>You short out the lock.</span>")
+1 -1
View File
@@ -438,7 +438,7 @@
if(is_station_level(src.z))
if(prob(1)) //explosion
for(var/mob/M in viewers(src))
M.show_message("\red The [src.name] is making strange noises!", 3, "\red You hear sizzling electronics.", 2)
M.show_message("<span class='warning'>The [src.name] is making strange noises!</span>", 3, "<span class='warning'>You hear sizzling electronics.</span>", 2)
sleep(10*pick(4,5,6,7,10,14))
var/datum/effect/system/harmless_smoke_spread/smoke = new /datum/effect/system/harmless_smoke_spread()
smoke.set_up(3, 0, src.loc)
+7 -7
View File
@@ -66,13 +66,13 @@
/obj/item/weapon/shard/supermatter/attack_hand(var/mob/user)
if(!istype(user,/mob/living/carbon/human/nucleation))
to_chat(user, pick( "\red You think twice before touching that without protection.",)
"\red You don't want to touch that without some protection.",
"\red You probably should get something else to pick that up.",
"\red You aren't sure that's a good idea.",
"\red You aren't in the mood to get vaporized today.",
"\red You really don't feel like frying your hand off.",
"\red You assume that's a bad idea." )
to_chat(user, pick( "<span class='warning'>You think twice before touching that without protection.</span>",)
"<span class='warning'>You don't want to touch that without some protection.</span>",
"<span class='warning'>You probably should get something else to pick that up.</span>",
"<span class='warning'>You aren't sure that's a good idea.</span>",
"<span class='warning'>You aren't in the mood to get vaporized today.</span>",
"<span class='warning'>You really don't feel like frying your hand off.</span>",
"<span class='warning'>You assume that's a bad idea.</span>" )
return
..()
+4 -4
View File
@@ -29,25 +29,25 @@
to_chat(user, "The switch is in the off position")
/obj/structure/powerswitch/attack_ai(mob/user)
to_chat(user, "\red You're an AI. This is a manual switch. It's not going to work.")
to_chat(user, "<span class='warning'>You're an AI. This is a manual switch. It's not going to work.</span>")
return
/obj/structure/powerswitch/attack_hand(mob/user)
if(busy)
to_chat(user, "\red This switch is already being toggled.")
to_chat(user, "<span class='warning'>This switch is already being toggled.</span>")
return
..()
busy = 1
for(var/mob/O in viewers(user))
O.show_message(text("\red [user] starts pulling the [src]."), 1)
O.show_message(text("<span class='warning'>[user] starts pulling the [src].</span>"), 1)
if(do_after(user, 50, target = src))
set_state(!on)
for(var/mob/O in viewers(user))
O.show_message(text("\red [user] flips the [src] into the [on ? "on": "off"] position."), 1)
O.show_message(text("<span class='warning'>[user] flips the [src] into the [on ? </span>"on": "off"] position."), 1)
busy = 0
/obj/structure/powerswitch/proc/set_state(var/state)