Replace most (if not all) output << operators with to_chat(user, message)

Currently, to_chat is literally just a proc that does user << message.
But it'll let us do output modification in the future, especially for
something like Goon's HTML chat.

Big thanks to PJB for his to_chat script, see
https://github.com/d3athrow/vgstation13/pull/6625 for more details.
This commit is contained in:
Tigercat2000
2016-04-05 08:15:05 -07:00
parent 8556d5ed91
commit 9d430844c3
1054 changed files with 17612 additions and 8898 deletions
+8 -4
View File
@@ -77,11 +77,13 @@
set src in view(1)
if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living))
usr << "\red You can't do that."
to_chat(usr, "\red You can't do that.")
return
if(!Adjacent(usr))
usr << "You can't reach it."
to_chat(usr, "You can't reach it.")
return
Reset()
@@ -365,7 +367,8 @@
os.attack_hand(user)
return
user << "\The [src] won't boot!"
to_chat(user, "\The [src] won't boot!")
attack_ai(var/mob/user as mob) // copypasta because server racks lose attack_hand()
if(stat)
@@ -390,7 +393,8 @@
os.attack_hand(user)
return
user << "\The [src] won't boot!"
to_chat(user, "\The [src] won't boot!")
interact()
if(stat)