Adds a to_chat() proc, to pave the way to a non shit chat.

This commit is contained in:
PJB3005
2015-11-25 15:05:25 +01:00
parent 1709a73bdc
commit 99bf59d80e
1110 changed files with 9473 additions and 9348 deletions

View File

@@ -432,20 +432,20 @@
return
if(locked && !broken)
if (allowed(user))
user << "<span class='notice'>You unlock [src].</span>"
to_chat(user, "<span class='notice'>You unlock [src].</span>")
src.locked = 0
overlays.len = 0
overlays += greenlight
return
else
user << "<span class='notice'>[src] is locked.</span>"
to_chat(user, "<span class='notice'>[src] is locked.</span>")
return
else
..()
/obj/structure/closet/crate/secure/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/card) && src.allowed(user) && !locked && !opened && !broken)
user << "<span class='notice'>You lock \the [src].</span>"
to_chat(user, "<span class='notice'>You lock \the [src].</span>")
src.locked = 1
overlays.len = 0
overlays += redlight
@@ -458,7 +458,7 @@
playsound(get_turf(src), "sparks", 60, 1)
src.locked = 0
src.broken = 1
user << "<span class='notice'>You unlock \the [src].</span>"
to_chat(user, "<span class='notice'>You unlock \the [src].</span>")
return
return ..()
@@ -472,21 +472,21 @@
return
else if(istype(W, /obj/item/stack/cable_coil))
if(rigged)
user << "<span class='notice'>[src] is already rigged!</span>"
to_chat(user, "<span class='notice'>[src] is already rigged!</span>")
return
user << "<span class='notice'>You rig [src].</span>"
to_chat(user, "<span class='notice'>You rig [src].</span>")
user.drop_item(W)
del(W)
rigged = 1
return
else if(istype(W, /obj/item/device/radio/electropack))
if(rigged)
user << "<span class='notice'>You attach [W] to [src].</span>"
to_chat(user, "<span class='notice'>You attach [W] to [src].</span>")
user.drop_item(W, src.loc)
return
else if(istype(W, /obj/item/weapon/wirecutters))
if(rigged)
user << "<span class='notice'>You cut away the wiring.</span>"
to_chat(user, "<span class='notice'>You cut away the wiring.</span>")
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)
rigged = 0
return