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
@@ -157,7 +157,7 @@
/obj/structure/closet/attack_animal(mob/living/simple_animal/user as mob)
if(user.environment_smash)
user.do_attack_animation(src)
visible_message("\red [user] destroys the [src]. ")
visible_message("<span class='warning'>[user] destroys the [src]. </span>")
for(var/atom/movable/A as mob|obj in src)
A.forceMove(loc)
qdel(src)
@@ -194,7 +194,7 @@
var/desc = input("Please select a telepad.", "RCS") in L
E.pad = L[desc]
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -216,7 +216,7 @@
E.rand_y = rand(50,200)
var/L = locate(E.rand_x, E.rand_y, 6)
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -23,7 +23,7 @@
if(isrobot(user) || src.locked)
if(istype(O, /obj/item/device/multitool))
to_chat(user, "\red Resetting circuitry...")
to_chat(user, "<span class='warning'>Resetting circuitry...</span>")
playsound(user, 'sound/machines/lockreset.ogg', 50, 1)
if(do_after(user, 20, target = src))
src.locked = 0
@@ -43,7 +43,7 @@
user.do_attack_animation(src)
playsound(user, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time
if(W.force < 15)
to_chat(user, "\blue The cabinet's protective glass glances off the hit.")
to_chat(user, "<span class='notice'>The cabinet's protective glass glances off the hit.</span>")
else
src.hitstaken++
if(src.hitstaken == 4)
@@ -56,12 +56,12 @@
if(istype(O, /obj/item/weapon/twohanded/fireaxe) && src.localopened)
if(!fireaxe)
if(O:wielded)
to_chat(user, "\red Unwield the axe first.")
to_chat(user, "<span class='warning'>Unwield the axe first.</span>")
return
fireaxe = O
user.drop_item(O)
src.contents += O
to_chat(user, "\blue You place the fire axe back in the [src.name].")
to_chat(user, "<span class='notice'>You place the fire axe back in the [src.name].</span>")
update_icon()
else
if(src.smashed)
@@ -84,10 +84,10 @@
spawn(10) update_icon()
return
else
to_chat(user, "\red Resetting circuitry...")
to_chat(user, "<span class='warning'>Resetting circuitry...</span>")
sleep(50)
src.locked = 1
to_chat(user, "\blue You re-enable the locking modules.")
to_chat(user, "<span class='notice'>You re-enable the locking modules.</span>")
playsound(user, 'sound/machines/lockenable.ogg', 50, 1)
if(do_after(user,20, target = src))
src.locked = 1
@@ -112,13 +112,13 @@
hasaxe = 1
if(src.locked)
to_chat(user, "\red The cabinet won't budge!")
to_chat(user, "<span class='warning'>The cabinet won't budge!</span>")
return
if(localopened)
if(fireaxe)
user.put_in_hands(fireaxe)
fireaxe = null
to_chat(user, "\blue You take the fire axe from the [name].")
to_chat(user, "<span class='notice'>You take the fire axe from the [name].</span>")
src.add_fingerprint(user)
update_icon()
else
@@ -145,7 +145,7 @@
attack_tk(mob/user as mob)
if(localopened && fireaxe)
fireaxe.forceMove(loc)
to_chat(user, "\blue You telekinetically remove the fire axe.")
to_chat(user, "<span class='notice'>You telekinetically remove the fire axe.</span>")
fireaxe = null
update_icon()
return
@@ -157,9 +157,9 @@
if(isrobot(usr) || src.locked || src.smashed)
if(src.locked)
to_chat(usr, "\red The cabinet won't budge!")
to_chat(usr, "<span class='warning'>The cabinet won't budge!</span>")
else if(src.smashed)
to_chat(usr, "\blue The protective glass is broken!")
to_chat(usr, "<span class='notice'>The protective glass is broken!</span>")
return
localopened = !localopened
@@ -176,23 +176,23 @@
if(fireaxe)
usr.put_in_hands(fireaxe)
fireaxe = null
to_chat(usr, "\blue You take the Fire axe from the [name].")
to_chat(usr, "<span class='notice'>You take the Fire axe from the [name].</span>")
else
to_chat(usr, "\blue The [src.name] is empty.")
to_chat(usr, "<span class='notice'>The [src.name] is empty.</span>")
else
to_chat(usr, "\blue The [src.name] is closed.")
to_chat(usr, "<span class='notice'>The [src.name] is closed.</span>")
update_icon()
attack_ai(mob/user as mob)
if(src.smashed)
to_chat(user, "\red The security of the cabinet is compromised.")
to_chat(user, "<span class='warning'>The security of the cabinet is compromised.</span>")
return
else
locked = !locked
if(locked)
to_chat(user, "\red Cabinet locked.")
to_chat(user, "<span class='warning'>Cabinet locked.</span>")
else
to_chat(user, "\blue Cabinet unlocked.")
to_chat(user, "<span class='notice'>Cabinet unlocked.</span>")
update_icon() //Template: fireaxe[has fireaxe][is opened][hits taken][is smashed]. If you want the opening or closing animations, add "opening" or "closing" right after the numbers
var/hasaxe = 0
@@ -62,7 +62,7 @@
if(W) W.forceMove(loc)
else if(istype(W, /obj/item/weapon/card/id))
if(src.broken)
to_chat(user, "\red It appears to be broken.")
to_chat(user, "<span class='warning'>It appears to be broken.</span>")
return
var/obj/item/weapon/card/id/I = W
if(!I || !I.registered_name) return
@@ -82,8 +82,8 @@
src.registered_name = I.registered_name
src.desc = "Owned by [I.registered_name]."
else
to_chat(user, "\red Access Denied")
to_chat(user, "<span class='warning'>Access Denied</span>")
else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken)
emag_act(user)
else
to_chat(user, "\red Access Denied")
to_chat(user, "<span class='warning'>Access Denied</span>")
@@ -167,7 +167,7 @@
locked = 0
welded = 0
update_icon()
to_chat(usr, "\red You successfully break out!")
to_chat(usr, "<span class='warning'>You successfully break out!</span>")
for(var/mob/O in viewers(L.loc))
O.show_message("<span class='danger'>\the [usr] successfully broke out of \the [src]!</span>", 1)
if(istype(src.loc, /obj/structure/bigDelivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace)
@@ -114,7 +114,7 @@
/obj/structure/closet/statue/attackby(obj/item/I as obj, mob/user as mob, params)
user.changeNext_move(CLICK_CD_MELEE)
health -= I.force
visible_message("\red [user] strikes [src] with [I].")
visible_message("<span class='warning'>[user] strikes [src] with [I].</span>")
check_health()
/obj/structure/closet/statue/MouseDrop_T()
@@ -136,7 +136,7 @@
if(user)
user.dust()
dump_contents()
visible_message("\red [src] shatters!. ")
visible_message("<span class='warning'>[src] shatters!. </span>")
qdel(src)
@@ -103,7 +103,7 @@
var/desc = input("Please select a telepad.", "RCS") in L
E.pad = L[desc]
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -121,7 +121,7 @@
E.rand_y = rand(50,200)
var/L = locate(E.rand_x, E.rand_y, 6)
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0