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

@@ -72,7 +72,7 @@
switch(buildstage)
if(3)
if(iswirecutter(W) && b_stat && wires.IsAllCut())
user << "<span class='notice'>You cut out the intercoms wiring and disconnect its electronics.</span>"
to_chat(user, "<span class='notice'>You cut out the intercoms wiring and disconnect its electronics.</span>")
playsound(get_turf(src), 'sound/items/Wirecutter.ogg', 50, 1)
if(do_after(user, src, 10))
new /obj/item/stack/cable_coil(get_turf(src),5)
@@ -91,7 +91,7 @@
on = 1
b_stat = 0
buildstage = 3
user << "<span class='notice'>You secure the electronics!</span>"
to_chat(user, "<span class='notice'>You secure the electronics!</span>")
update_icon()
processing_objects.Add(src)
for(var/i, i<= 5, i++)
@@ -101,19 +101,19 @@
if(iscoil(W))
var/obj/item/stack/cable_coil/coil = W
if(coil.amount < 5)
user << "<span class='warning'>You need more cable for this!</span>"
to_chat(user, "<span class='warning'>You need more cable for this!</span>")
return
if(do_after(user, src, 10))
coil.use(5)
user << "<span class='notice'>You wire \the [src]!</span>"
to_chat(user, "<span class='notice'>You wire \the [src]!</span>")
buildstage = 2
return 1
if(iscrowbar(W))
user << "<span class='notice'>You begin removing the electronics...</span>"
to_chat(user, "<span class='notice'>You begin removing the electronics...</span>")
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, src, 10))
new /obj/item/weapon/intercom_electronics(get_turf(src))
user << "<span class='notice'>The circuitboard pops out!</span>"
to_chat(user, "<span class='notice'>The circuitboard pops out!</span>")
buildstage = 0
return 1
if(0)
@@ -121,17 +121,17 @@
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, src, 10))
qdel(W)
user << "<span class='notice'>You insert \the [W] into \the [src]!</span>"
to_chat(user, "<span class='notice'>You insert \the [W] into \the [src]!</span>")
buildstage = 1
return 1
if(iswelder(W))
var/obj/item/weapon/weldingtool/WT=W
playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1)
if(!WT.remove_fuel(3, user))
user << "<span class='warning'>You're out of welding fuel.</span>"
to_chat(user, "<span class='warning'>You're out of welding fuel.</span>")
return 1
if(do_after(user, src, 10))
user << "<span class='notice'>You cut the intercom frame from the wall!</span>"
to_chat(user, "<span class='notice'>You cut the intercom frame from the wall!</span>")
new /obj/item/mounted/frame/intercom(get_turf(src))
qdel(src)
return 1