mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user