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
@@ -97,14 +97,16 @@
var/removing_zone = href_list["priority_clear"]
for(var/zone in priority_alarms)
if(ckey(zone) == removing_zone)
usr << "\green Priority Alert for area [zone] cleared."
to_chat(usr, "\green Priority Alert for area [zone] cleared.")
priority_alarms -= zone
if("minor_clear" in href_list)
var/removing_zone = href_list["minor_clear"]
for(var/zone in minor_alarms)
if(ckey(zone) == removing_zone)
usr << "\green Minor Alert for area [zone] cleared."
to_chat(usr, "\green Minor Alert for area [zone] cleared.")
minor_alarms -= zone
computer.updateUsrDialog()
+2 -1
View File
@@ -316,7 +316,8 @@
if(key)
interact()
else
usr << "The screen turns to static."
to_chat(usr, "The screen turns to static.")
return
// Atlantis: Required for camnetkeys to work.
+4 -2
View File
@@ -79,14 +79,16 @@
proc/RecordsList()
var/dat = "<h3>Current records</h3>"
dat += topic_link(src,"menu=1","<< Back") + "<br><br>"
to_chat(dat += topic_link(src,"menu=1",", Back") + "<br><br>")
for(var/datum/data/record/R in records)
dat += "<h4>[R.fields["name"]]</h4>Scan ID [R.fields["id"]] " + topic_link(src,"view_rec=\ref[R]","View Record")
return dat
proc/ShowRecord()
var/dat = "<h3>Selected Record</h3>"
dat += topic_link(src,"menu=2","<< Back") + "<br><br>"
to_chat(dat += topic_link(src,"menu=2",", Back") + "<br><br>")
if (!active_record)
dat += "<font class='bad'>Record not found.</font>"
@@ -60,7 +60,8 @@
if(!interactable() || !computer.radio || ..(href,href_list) )
return
if (!(computer.z in config.station_levels))
usr << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
to_chat(usr, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
if("main" in href_list)
@@ -103,15 +104,18 @@
feedback_inc("alert_comms_blue",1)
tmp_alertlevel = 0
else:
usr << "You are not authorized to do this."
to_chat(usr, "You are not authorized to do this.")
tmp_alertlevel = 0
state = STATE_DEFAULT
else
usr << "You need to swipe your ID."
to_chat(usr, "You need to swipe your ID.")
if("announce" in href_list)
if(authenticated==2)
if(message_cooldown)
usr << "Please allow at least one minute to pass between announcements"
to_chat(usr, "Please allow at least one minute to pass between announcements")
return
var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement")
if(!input || !interactable())
@@ -192,13 +196,15 @@
return
if(authenticated==2)
if(centcomm_message_cooldown)
usr << "Arrays recycling. Please stand by."
to_chat(usr, "Arrays recycling. Please stand by.")
return
var/input = stripped_input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "")
if(!input || !interactable())
return
Centcomm_announce(input, usr)
usr << "Message transmitted."
to_chat(usr, "Message transmitted.")
log_say("[key_name(usr)] has made a Centcomm announcement: [input]")
centcomm_message_cooldown = 1
spawn(600)//10 minute cooldown
@@ -209,20 +215,23 @@
if("MessageSyndicate" in href_list)
if((authenticated==2) && (computer.emagged))
if(centcomm_message_cooldown)
usr << "Arrays recycling. Please stand by."
to_chat(usr, "Arrays recycling. Please stand by.")
return
var/input = stripped_input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "")
if(!input || !interactable())
return
Syndicate_announce(input, usr)
usr << "Message transmitted."
to_chat(usr, "Message transmitted.")
log_say("[key_name(usr)] has made a Syndicate announcement: [input]")
centcomm_message_cooldown = 1
spawn(600)//10 minute cooldown
centcomm_message_cooldown = 0
if("RestoreBackup" in href_list)
usr << "Backup routing data restored!"
to_chat(usr, "Backup routing data restored!")
computer.emagged = 0
computer.updateDialog()
+22 -11
View File
@@ -17,15 +17,18 @@
opened = !opened
if(opened)
usr << "\blue The access panel is now open."
to_chat(usr, "\blue The access panel is now open.")
else
usr << "\blue The access panel is now closed."
to_chat(usr, "\blue The access panel is now closed.")
return
attackby(obj/item/weapon/aiModule/module as obj, mob/user as mob, params)
if (user.z > 6)
user << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
to_chat(user, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
if(istype(module, /obj/item/weapon/aiModule))
module.install(src)
@@ -35,18 +38,22 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
usr << "The upload computer has no power!"
to_chat(usr, "The upload computer has no power!")
return
if(src.stat & BROKEN)
usr << "The upload computer is broken!"
to_chat(usr, "The upload computer is broken!")
return
src.current = select_active_ai(user)
if (!src.current)
usr << "No active AIs detected."
to_chat(usr, "No active AIs detected.")
else
usr << "[src.current.name] selected for law changes."
to_chat(usr, "[src.current.name] selected for law changes.")
return
@@ -67,16 +74,20 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
usr << "The upload computer has no power!"
to_chat(usr, "The upload computer has no power!")
return
if(src.stat & BROKEN)
usr << "The upload computer is broken!"
to_chat(usr, "The upload computer is broken!")
return
src.current = freeborg()
if (!src.current)
usr << "No free cyborgs detected."
to_chat(usr, "No free cyborgs detected.")
else
usr << "[src.current.name] selected for law changes."
to_chat(usr, "[src.current.name] selected for law changes.")
return
+2 -1
View File
@@ -50,7 +50,8 @@
if(!interactable())
return
if (computer.z > 6)
usr << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
to_chat(usr, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
var/dat
+12 -5
View File
@@ -220,10 +220,12 @@
proc/BruteForce(mob/usr as mob)
if(isnull(linkedServer))
usr << "<span class='warning'>Could not complete brute-force: Linked Server Disconnected!</span>"
to_chat(usr, "<span class='warning'>Could not complete brute-force: Linked Server Disconnected!</span>")
else
var/currentKey = src.linkedServer.decryptkey
usr << "<span class='warning'>Brute-force completed! The key is '[currentKey]'.</span>"
to_chat(usr, "<span class='warning'>Brute-force completed! The key is '[currentKey]'.</span>")
src.hacking = 0
src.active_state = normal_icon
src.screen = 0 // Return the screen back to normal
@@ -414,7 +416,9 @@
O.show_message(text("\icon[customrecepient] *[customrecepient.ttone]*"))
if( customrecepient.loc && ishuman(customrecepient.loc) )
var/mob/living/carbon/human/H = customrecepient.loc
H << "\icon[customrecepient] <b>Message from [customsender] ([customjob]), </b>\"[custommessage]\" (<a href='byond://?src=\ref[src];choice=Message;skiprefresh=1;target=\ref[src]'>Reply</a>)"
to_chat(H, "\icon[customrecepient] <b>Message from [customsender] ([customjob]), </b>\"[custommessage]\" (<a href='byond:)//?src=\ref[src];choice=Message;skiprefresh=1;target=\ref[src]'>Reply</a>)"
log_pda("[usr] (PDA: [customsender]) sent \"[custommessage]\" to [customrecepient.owner]")
customrecepient.overlays.Cut()
customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r")
@@ -428,7 +432,9 @@
O.show_message(text("\icon[customrecepient] *[customrecepient.ttone]*"))
if( customrecepient.loc && ishuman(customrecepient.loc) )
var/mob/living/carbon/human/H = customrecepient.loc
H << "\icon[customrecepient] <b>Message from [PDARec.owner] ([customjob]), </b>\"[custommessage]\" (<a href='byond://?src=\ref[customrecepient];choice=Message;skiprefresh=1;target=\ref[PDARec]'>Reply</a>)"
to_chat(H, "\icon[customrecepient] <b>Message from [PDARec.owner] ([customjob]), </b>\"[custommessage]\" (<a href='byond:)//?src=\ref[customrecepient];choice=Message;skiprefresh=1;target=\ref[PDARec]'>Reply</a>)"
log_pda("[usr] (PDA: [PDARec.owner]) sent \"[custommessage]\" to [customrecepient.owner]")
customrecepient.overlays.Cut()
customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r")
@@ -443,7 +449,8 @@
if(auth)
src.screen = 4
//usr << href_list["select"]
// to_chat(usr, href_list["select"])
if ("back" in href_list)
src.screen = 0
+2 -1
View File
@@ -94,7 +94,8 @@
if( istype(I) && I.imp_in)
var/mob/living/carbon/R = I.imp_in
log_say("PrisonComputer3 message: [key_name(usr)]->[key_name(R)] : [warning]")
R << "\green You hear a voice in your head saying: '[warning]'"
to_chat(R, "\green You hear a voice in your head saying: '[warning]'")
interact()
return
@@ -46,29 +46,34 @@ var/prison_shuttle_timeleft = 0
A.anchored = 1
if (src.stat & BROKEN)
user << "\blue The broken glass falls out."
to_chat(user, "\blue The broken glass falls out.")
new /obj/item/trash/shard( src.loc )
A.state = 3
A.icon_state = "3"
else
user << "\blue You disconnect the monitor."
to_chat(user, "\blue You disconnect the monitor.")
A.state = 4
A.icon_state = "4"
del(src)
else if(istype(I,/obj/item/card/emag) && (!hacked))
hacked = 1
user << "\blue You disable the lock."
to_chat(user, "\blue You disable the lock.")
else
return src.attack_hand(user)
attack_hand(var/mob/user as mob)
if(!src.allowed(user) && (!hacked))
user << "\red Access Denied."
to_chat(user, "\red Access Denied.")
return
if(prison_break)
user << "\red Unable to locate shuttle."
to_chat(user, "\red Unable to locate shuttle.")
return
if(..())
return
@@ -100,11 +105,13 @@ var/prison_shuttle_timeleft = 0
if (href_list["sendtodock"])
if (!prison_can_move())
usr << "\red The prison shuttle is unable to leave."
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
if(!prison_shuttle_at_station|| prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
post_signal("prison")
usr << "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds."
to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
src.temp += "Shuttle sent.<BR><BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
src.updateUsrDialog()
prison_shuttle_moving_to_prison = 1
@@ -114,11 +121,13 @@ var/prison_shuttle_timeleft = 0
else if (href_list["sendtostation"])
if (!prison_can_move())
usr << "\red The prison shuttle is unable to leave."
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
if(prison_shuttle_at_station || prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
post_signal("prison")
usr << "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds."
to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
src.temp += "Shuttle sent.<BR><BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
src.updateUsrDialog()
prison_shuttle_moving_to_station = 1
@@ -186,7 +195,8 @@ var/prison_shuttle_timeleft = 0
if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
if (!prison_can_move())
usr << "\red The prison shuttle is unable to leave."
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
var/area/start_location = locate(/area/shuttle/prison/prison)
@@ -215,7 +225,8 @@ var/prison_shuttle_timeleft = 0
if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
if (!prison_can_move())
usr << "\red The prison shuttle is unable to leave."
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
var/area/start_location = locate(/area/shuttle/prison/station)
+12 -6
View File
@@ -125,7 +125,8 @@
src.temp = null
else
usr << "\red Access Denied."
to_chat(usr, "\red Access Denied.")
if ("stop" in href_list)
src.temp = {"
@@ -159,7 +160,8 @@
if(choice == "Confirm")
if(R && istype(R))
if(R.mind && R.mind.special_role && R.emagged)
R << "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered."
to_chat(R, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.")
R.ResetSecurityCodes()
else
@@ -167,7 +169,8 @@
log_game("\blue [key_name_admin(usr)] detonated [R.name]!")
R.self_destruct()
else
usr << "\red Access Denied."
to_chat(usr, "\red Access Denied.")
if ("stopbot" in href_list)
if(computer.allowed(usr))
@@ -182,14 +185,17 @@
if (R.lockcharge)
// R.cell.charge = R.lockcharge
R.lockcharge = !R.lockcharge
R << "Your lockdown has been lifted!"
to_chat(R, "Your lockdown has been lifted!")
else
R.lockcharge = !R.lockcharge
// R.cell.charge = 0
R << "You have been locked down!"
to_chat(R, "You have been locked down!")
else
usr << "\red Access Denied."
to_chat(usr, "\red Access Denied.")
if ("magbot" in href_list)
if(computer.allowed(usr))
@@ -358,7 +358,8 @@
proc/ui_menu()
if(!viable)
return "No viable occupant detected."
var/dat = topic_link(src,"mode=0","<< Main Menu") + "<br>"
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "<br>")
dat += "<h3>Modify Unique Identifier</h3>"
dat += "<div align='center'>Unique Identifier:<br />[getblockstring(ui=1)]<br /><br />"
@@ -372,7 +373,8 @@
proc/se_menu()
if(!viable)
return "No viable occupant detected."
var/dat = topic_link(src,"mode=0","<< Main Menu") + "<br>"
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "<br>")
dat += "<h3>Modify Structural Enzymes</h3>"
dat += "<div align='center'>Structural Enzymes: [getblockstring(ui=0)]<br /><br />"
dat += "Selected Block: " + block_plus_minus("seblock",se_block,1,MAX_SEBLOCK) + "<br /><br />"
@@ -382,7 +384,8 @@
return dat
proc/emitter_menu()
var/dat = topic_link(src,"mode=0","<< Main Menu") + "<br>"
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "<br>")
dat += "<h3>Radiation Emitter Settings</h3>"
if (viable)
dat += topic_link(src,"pulse","Pulse Radiation")
@@ -741,7 +744,8 @@
human_occupant.reagents.add_reagent("inaprovaline", REJUVENATORS_INJECT)
else
human_occupant.reagents.add_reagent("inaprovaline", round(REJUVENATORS_MAX - human_occupant.reagents.get_reagent_amount("inaprovaline")))
//usr << text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline"))
// to_chat(usr, text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline")))
////////////////////////////////////////////////////////
if (href_list["strucmenuplus"])
+2 -1
View File
@@ -58,7 +58,8 @@
return
if (computer.z > 6)
usr << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
to_chat(usr, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
var/dat
+16 -8
View File
@@ -19,16 +19,19 @@
var/obj/item/device/pda/pda = W
W = pda.id
if (!W:access) //no access
user << "The access level of [W:registered_name]\'s card is not high enough. "
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
return
var/list/cardaccess = W:access
if(!istype(cardaccess, /list) || !cardaccess.len) //no access
user << "The access level of [W:registered_name]\'s card is not high enough. "
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
return
if(!(access_heads in W:access)) //doesn't have this access
user << "The access level of [W:registered_name]\'s card is not high enough. "
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
return 0
var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort")
@@ -41,11 +44,13 @@
if (src.auth_need - src.authorized.len > 0)
message_admins("[key_name_admin(user)] has authorized early shuttle launch")
log_game("[user.ckey] has authorized early shuttle launch")
world << text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len)
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
else
message_admins("[key_name_admin(user)] has launched the shuttle")
log_game("[user.ckey] has launched the shuttle early")
world << "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>"
to_chat(world, "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>")
emergency_shuttle.online = 1
emergency_shuttle.settimeleft(10)
//src.authorized = null
@@ -54,10 +59,12 @@
if("Repeal")
src.authorized -= W:registered_name
world << text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len)
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
if("Abort")
world << "\blue <B>All authorizations to shorting time for shuttle launch have been revoked!</B>"
to_chat(world, "\blue <B>All authorizations to shorting time for shuttle launch have been revoked!</B>")
src.authorized.len = 0
src.authorized = list( )
return
@@ -69,7 +76,8 @@
if(!emagged && emergency_shuttle.location == 1)
switch(choice)
if("Launch")
world << "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>"
to_chat(world, "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>")
emergency_shuttle.settimeleft( 10 )
emagged = 1
if("Cancel")
@@ -58,7 +58,8 @@ var/specops_shuttle_timeleft = 0
if (specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
if (!specops_can_move())
usr << "\red The Special Operations shuttle is unable to leave."
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
return
//Begin Marauder launchpad.
@@ -153,7 +154,8 @@ var/specops_shuttle_timeleft = 0
for(var/turf/T in get_area_turfs(end_location) )
var/mob/M = locate(/mob) in T
M << "\red You have arrived to [station_name]. Commence operation!"
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
/proc/specops_can_move()
if(specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return 0
@@ -170,17 +172,20 @@ var/specops_shuttle_timeleft = 0
/obj/machinery/computer3/specops_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/card/emag))
user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals."
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
else
return attack_hand(user)
/obj/machinery/computer3/specops_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
user << "\red Access Denied."
to_chat(user, "\red Access Denied.")
return
if (sent_strike_team == 0)
usr << "\red The strike team has not yet deployed."
to_chat(usr, "\red The strike team has not yet deployed.")
return
if(..())
@@ -214,17 +219,20 @@ var/specops_shuttle_timeleft = 0
if (href_list["sendtodock"])
if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
usr << "\blue Central Command will not allow the Special Operations shuttle to return."
to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return.")
return
else if (href_list["sendtostation"])
if(specops_shuttle_at_station || specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
if (!specops_can_move())
usr << "\red The Special Operations shuttle is unable to leave."
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
return
usr << "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds."
to_chat(usr, "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds.")
temp += "Shuttle departing.<BR><BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
updateUsrDialog()
@@ -47,7 +47,8 @@
/obj/machinery/computer3/syndicate_station/attack_hand(mob/user as mob)
if(!allowed(user))
user << "\red Access Denied"
to_chat(user, "\red Access Denied")
return
user.set_machine(src)
@@ -58,7 +58,8 @@ var/syndicate_elite_shuttle_timeleft = 0
if (syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
if (!syndicate_elite_can_move())
usr << "\red The Syndicate Elite shuttle is unable to leave."
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
return
sleep(600)
@@ -166,7 +167,8 @@ var/syndicate_elite_shuttle_timeleft = 0
for(var/turf/T in get_area_turfs(end_location) )
var/mob/M = locate(/mob) in T
M << "\red You have arrived to [station_name]. Commence operation!"
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
/proc/syndicate_elite_can_move()
if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return 0
@@ -183,17 +185,20 @@ var/syndicate_elite_shuttle_timeleft = 0
/obj/machinery/computer3/syndicate_elite_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/card/emag))
user << "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals."
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
else
return attack_hand(user)
/obj/machinery/computer3/syndicate_elite_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
user << "\red Access Denied."
to_chat(user, "\red Access Denied.")
return
// if (sent_syndicate_strike_team == 0)
// usr << "\red The strike team has not yet deployed."
// to_chat(usr, "\red The strike team has not yet deployed.")
// return
if(..())
@@ -226,17 +231,20 @@ var/syndicate_elite_shuttle_timeleft = 0
if (href_list["sendtodock"])
if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
usr << "\blue The Syndicate will not allow the Elite Squad shuttle to return."
to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.")
return
else if (href_list["sendtostation"])
if(syndicate_elite_shuttle_at_station || syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
if (!specops_can_move())
usr << "\red The Syndicate Elite shuttle is unable to leave."
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
return
usr << "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds."
to_chat(usr, "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds.")
temp = "Shuttle departing.<BR><BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
updateUsrDialog()