to_chat replacing stream operator

This commit is contained in:
Arokha Sieyes
2020-02-17 13:14:08 -05:00
committed by Leshana
parent 5aaba55222
commit 5b15917d32
712 changed files with 4250 additions and 4220 deletions
+1 -1
View File
@@ -112,7 +112,7 @@
/obj/machinery/embedded_controller/radio/simple_docking_controller/escape_pod_berth/emag_act(var/remaining_charges, var/mob/user)
if (!emagged)
user << "<span class='notice'>You emag the [src], arming the escape pod!</span>"
to_chat(user, "<span class='notice'>You emag the [src], arming the escape pod!</span>")
emagged = 1
if (istype(docking_program, /datum/computer/file/embedded_program/docking/simple/escape_pod))
var/datum/computer/file/embedded_program/docking/simple/escape_pod/P = docking_program
+8 -8
View File
@@ -44,7 +44,7 @@
if(docking_controller_tag)
docking_controller = locate(docking_controller_tag)
if(!istype(docking_controller))
world << "<span class='danger'>warning: shuttle with docking tag [docking_controller_tag] could not find it's controller!</span>"
to_world("<span class='danger'>warning: shuttle with docking tag [docking_controller_tag] could not find it's controller!</span>")
// This creates a graphical warning to where the shuttle is about to land, in approximately five seconds.
/datum/shuttle/proc/create_warning_effect(area/landing_area)
@@ -101,7 +101,7 @@
make_sounds(destination, HYPERSPACE_END)
/datum/shuttle/proc/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction)
//world << "shuttle/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]"
//to_world("shuttle/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]")
if(moving_status != SHUTTLE_IDLE)
return
@@ -183,13 +183,13 @@
//If you want to conditionally cancel shuttle launches, that logic must go in short_jump() or long_jump()
/datum/shuttle/proc/move(var/area/origin, var/area/destination, var/direction=null)
//world << "move_shuttle() called for [name] leaving [origin] en route to [destination]."
//to_world("move_shuttle() called for [name] leaving [origin] en route to [destination].")
//world << "area_coming_from: [origin]"
//world << "destination: [destination]"
//to_world("area_coming_from: [origin]")
//to_world("destination: [destination]")
if(origin == destination)
//world << "cancelling move, shuttle will overlap."
//to_world("cancelling move, shuttle will overlap.")
return
if (docking_controller && !docking_controller.undocked())
@@ -220,10 +220,10 @@
if(M.client)
spawn(0)
if(M.buckled)
M << "<font color='red'>Sudden acceleration presses you into \the [M.buckled]!</font>"
to_chat(M, "<font color='red'>Sudden acceleration presses you into \the [M.buckled]!</font>")
shake_camera(M, 3, 1)
else
M << "<font color='red'>The floor lurches beneath you!</font>"
to_chat(M, "<font color='red'>The floor lurches beneath you!</font>")
shake_camera(M, 10, 1)
if(istype(M, /mob/living/carbon))
if(!M.buckled)
+2 -2
View File
@@ -14,7 +14,7 @@
return
//src.add_fingerprint(user) //shouldn't need fingerprints just for looking at it.
if(!allowed(user))
user << "<font color='red'>Access Denied.</font>"
to_chat(user, "<font color='red'>Access Denied.</font>")
return 1
ui_interact(user)
@@ -89,7 +89,7 @@
req_access = list()
req_one_access = list()
hacked = 1
user << "You short out the console's ID checking system. It's now available to everyone!"
to_chat(user, "You short out the console's ID checking system. It's now available to everyone!")
return 1
/obj/machinery/computer/shuttle_control/bullet_act(var/obj/item/projectile/Proj)
+1 -1
View File
@@ -15,7 +15,7 @@
emergency_shuttle.shuttle_arrived()
/datum/shuttle/ferry/emergency/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction)
//world << "shuttle/ferry/emergency/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]"
//to_world("shuttle/ferry/emergency/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]")
if (!location)
travel_time = SHUTTLE_TRANSIT_DURATION_RETURN
else
+2 -2
View File
@@ -41,7 +41,7 @@
..(origin, destination)
/datum/shuttle/ferry/long_jump(var/area/departing, var/area/destination, var/area/interim, var/travel_time, var/direction)
//world << "shuttle/ferry/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]"
//to_world("shuttle/ferry/long_jump: departing=[departing], destination=[destination], interim=[interim], travel_time=[travel_time]")
if(isnull(location))
return
@@ -81,7 +81,7 @@
if (WAIT_LAUNCH)
if (skip_docking_checks() || docking_controller.can_launch())
//world << "shuttle/ferry/process: area_transition=[area_transition], travel_time=[travel_time]"
//to_world("shuttle/ferry/process: area_transition=[area_transition], travel_time=[travel_time]")
if (move_time && area_transition)
long_jump(interim=area_transition, travel_time=move_time, direction=transit_direction)
else
+3 -3
View File
@@ -4,7 +4,7 @@
req_access = list(access_cent_specops)
/obj/machinery/computer/shuttle_control/specops/attack_ai(user as mob)
user << "<font color='red'>Access Denied.</font>"
to_chat(user, "<font color='red'>Access Denied.</font>")
return 1
//for shuttles that may use a different docking port at each location
@@ -95,12 +95,12 @@
if (!location) //just arrived home
for(var/turf/T in get_area_turfs(destination))
var/mob/M = locate(/mob) in T
M << "<span class='danger'>You have arrived at [using_map.boss_name]. Operation has ended!</span>"
to_chat(M, "<span class='danger'>You have arrived at [using_map.boss_name]. Operation has ended!</span>")
else //just left for the station
launch_mauraders()
for(var/turf/T in get_area_turfs(destination))
var/mob/M = locate(/mob) in T
M << "<span class='danger'>You have arrived at [station_name()]. Commence operation!</span>"
to_chat(M, "<span class='danger'>You have arrived at [station_name()]. Commence operation!</span>")
var/obj/machinery/light/small/readylight/light = locate() in T
if(light) light.set_state(1)
+2 -2
View File
@@ -167,7 +167,7 @@
var/datum/shuttle/multi_shuttle/MS = shuttle_controller.shuttles[shuttle_tag]
if(!istype(MS)) return
//world << "multi_shuttle: last_departed=[MS.last_departed], origin=[MS.origin], interim=[MS.interim], travel_time=[MS.move_time]"
//to_world("multi_shuttle: last_departed=[MS.last_departed], origin=[MS.origin], interim=[MS.interim], travel_time=[MS.move_time]")
if(href_list["refresh"])
updateUsrDialog()
@@ -200,7 +200,7 @@
// No point giving a warning if it does literally nothing.
// if(!MS.return_warning)
// usr << "<font color='red'>Returning to your home base will end your mission. If you are sure, press the button again.</font>"
// to_chat(usr, "<font color='red'>Returning to your home base will end your mission. If you are sure, press the button again.</font>")
// //TODO: Actually end the mission.
// MS.return_warning = 1
// return
+3 -3
View File
@@ -191,7 +191,7 @@
var/obj/item/clothing/head/pilot/H = I
H.shuttle_comp = src
shuttle.helmets |= I
to_chat(user,"<span class='notice'>You register the helmet with the ship's console.</span>")
to_chat(user, "<span class='notice'>You register the helmet with the ship's console.</span>")
shuttle.update_helmets()
return
@@ -375,7 +375,7 @@
ui_interact(usr)
if (WS.moving_status != SHUTTLE_IDLE)
usr << "<font color='blue'>[WS.visible_name] is busy moving.</font>"
to_chat(usr, "<font color='blue'>[WS.visible_name] is busy moving.</font>")
return
if(href_list["rename_command"])
@@ -417,7 +417,7 @@
return
if((WS.last_move + WS.cooldown) > world.time)
usr << "<font color='red'>The ship's drive is inoperable while the engines are charging.</font>"
to_chat(usr, "<font color='red'>The ship's drive is inoperable while the engines are charging.</font>")
return
var/index = text2num(href_list["traverse"])
+5 -5
View File
@@ -86,23 +86,23 @@
// This builds destination instances connected to this instance, recursively.
/datum/shuttle_destination/proc/build_destinations(var/list/already_made = list())
already_made += src.type
world << "SHUTTLES: [name] is going to build destinations. already_made list is \[[english_list(already_made)]\]"
to_world("SHUTTLES: [name] is going to build destinations. already_made list is \[[english_list(already_made)]\]")
for(var/type_to_make in destinations_to_create)
if(type_to_make in already_made) // Avoid circular initializations.
world << "SHUTTLES: [name] can't build [type_to_make] due to being a duplicate."
to_world("SHUTTLES: [name] can't build [type_to_make] due to being a duplicate.")
continue
// Instance the new destination, and call this proc on their 'downstream' destinations.
var/datum/shuttle_destination/new_dest = new type_to_make()
world << "SHUTTLES: [name] has created [new_dest.name] and will make it build their own destinations."
to_world("SHUTTLES: [name] has created [new_dest.name] and will make it build their own destinations.")
already_made += new_dest.build_destinations(already_made)
// Now link our new destination to us.
var/travel_delay = destinations_to_create[type_to_make]
link_destinations(new_dest, preferred_interim_area, travel_delay)
world << "SHUTTLES: [name] has linked themselves to [new_dest.name]"
to_world("SHUTTLES: [name] has linked themselves to [new_dest.name]")
world << "SHUTTLES: [name] has finished building destinations. already_made list is \[[english_list(already_made)]\]."
to_world("SHUTTLES: [name] has finished building destinations. already_made list is \[[english_list(already_made)]\].")
return already_made
/datum/shuttle_destination/proc/enter(var/datum/shuttle_destination/old_destination)