Weird cases where to_chat freaks out

This commit is contained in:
Arokha Sieyes
2020-02-12 17:44:38 -05:00
committed by Leshana
parent 47ccc655db
commit 7f1aabbf25
5 changed files with 11 additions and 7 deletions

View File

@@ -53,7 +53,7 @@
else
var/obj/item/stack/tile/E = input("Choose remove tile type.", "Tiles") as null|anything in contents
if(E)
to_chat(user, "<span class='notice'>You remove the [E] from /the [src].</span>")
to_chat(user, "<span class='notice'>You remove the [E] from \the [src].</span>")
E.loc = src.loc
T = null
return
@@ -68,7 +68,8 @@
var/dismantle = mode["dismantle"]
var/laying = mode["laying"]
var/collect = mode["collect"]
to_chat(user,"<span class='notice'>\The [src] [!T?"don't ":""]has [!T?"":"[T.get_amount()] [T] "]tile\s, dismantle is [dismantle?"on":"off"], laying is [laying?"on":"off"], collect is [collect?"on":"off"].</span>")
var/message = "<span class='notice'>\The [src] [!T ? "don't " : ""]has [!T ? "" : "[T.get_amount()] [T] "]tile\s, dismantle is [dismantle ? "on" : "off"], laying is [laying ? "on" : "off"], collect is [collect ? "on" : "off"].</span>"
to_chat(user,message)
/obj/machinery/floorlayer/proc/reset()
on=0

View File

@@ -28,7 +28,8 @@
insisting++
else
to_chat(user, "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers.")
var/message = "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers."
to_chat(user, message)
to_chat(user, "Your head pounds for a moment, before your vision clears. You are the avatar of the Wish Granter, and your power is LIMITLESS! And it's all yours. You need to make sure no one can take it from you. No one can know, first.")
charges--

View File

@@ -1104,7 +1104,8 @@
to_chat(usr, "You must[self ? "" : " both"] remain still until counting is finished.")
if(do_mob(usr, src, 60))
to_chat(usr,"<span class='notice'>[self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)].</span>")
var/message = "<span class='notice'>[self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)].</span>"
to_chat(usr,message)
else
to_chat(usr, "<span class='warning'>You failed to check the pulse. Try again.</span>")

View File

@@ -408,7 +408,8 @@
return FALSE
if(organ.applied_pressure)
to_chat(user,"<span class='warning'>Someone is already applying pressure to [user == src? "your [organ.name]" : "[src]'s [organ.name]"].</span>")
var/message = "<span class='warning'>Someone is already applying pressure to [user == src ? "your [organ.name]" : "[src]'s [organ.name]"].</span>"
to_chat(user,message)
return FALSE
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
@@ -430,4 +431,4 @@
else
user.visible_message("\The [user] stops applying pressure to [src]'s [organ.name]!", "You stop applying pressure to [src]'s [organ.name]!")
return TRUE
return TRUE

View File

@@ -72,7 +72,7 @@
else
return
to_chat(owner, "<span class='[use_span]'>[aiming_at ? "\The [aiming_at] is" : "Your targets are"] [message].</span>")
to_chat(owner, "<span class='[use_span]'>[aiming_at ? "The [aiming_at] is" : "Your targets are"] [message].</span>")
if(aiming_at)
to_chat(aiming_at, "<span class='[use_span]'>You are [message].</span>")