mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Weird cases where to_chat freaks out
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
else
|
else
|
||||||
var/obj/item/stack/tile/E = input("Choose remove tile type.", "Tiles") as null|anything in contents
|
var/obj/item/stack/tile/E = input("Choose remove tile type.", "Tiles") as null|anything in contents
|
||||||
if(E)
|
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
|
E.loc = src.loc
|
||||||
T = null
|
T = null
|
||||||
return
|
return
|
||||||
@@ -68,7 +68,8 @@
|
|||||||
var/dismantle = mode["dismantle"]
|
var/dismantle = mode["dismantle"]
|
||||||
var/laying = mode["laying"]
|
var/laying = mode["laying"]
|
||||||
var/collect = mode["collect"]
|
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()
|
/obj/machinery/floorlayer/proc/reset()
|
||||||
on=0
|
on=0
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
insisting++
|
insisting++
|
||||||
|
|
||||||
else
|
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.")
|
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--
|
charges--
|
||||||
|
|||||||
@@ -1104,7 +1104,8 @@
|
|||||||
|
|
||||||
to_chat(usr, "You must[self ? "" : " both"] remain still until counting is finished.")
|
to_chat(usr, "You must[self ? "" : " both"] remain still until counting is finished.")
|
||||||
if(do_mob(usr, src, 60))
|
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
|
else
|
||||||
to_chat(usr, "<span class='warning'>You failed to check the pulse. Try again.</span>")
|
to_chat(usr, "<span class='warning'>You failed to check the pulse. Try again.</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -408,7 +408,8 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
if(organ.applied_pressure)
|
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
|
return FALSE
|
||||||
|
|
||||||
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
|
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
|
||||||
@@ -430,4 +431,4 @@
|
|||||||
else
|
else
|
||||||
user.visible_message("\The [user] stops applying pressure to [src]'s [organ.name]!", "You stop applying pressure to [src]'s [organ.name]!")
|
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
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
else
|
else
|
||||||
return
|
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)
|
if(aiming_at)
|
||||||
to_chat(aiming_at, "<span class='[use_span]'>You are [message].</span>")
|
to_chat(aiming_at, "<span class='[use_span]'>You are [message].</span>")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user