Reduce lines by removing blank lines added by PJ's script

This commit is contained in:
Tigercat2000
2016-04-05 08:25:57 -07:00
parent 9d430844c3
commit 78f53553f8
1049 changed files with 3 additions and 8630 deletions
@@ -98,7 +98,6 @@
for(var/zone in priority_alarms)
if(ckey(zone) == removing_zone)
to_chat(usr, "\green Priority Alert for area [zone] cleared.")
priority_alarms -= zone
if("minor_clear" in href_list)
@@ -106,7 +105,6 @@
for(var/zone in minor_alarms)
if(ckey(zone) == removing_zone)
to_chat(usr, "\green Minor Alert for area [zone] cleared.")
minor_alarms -= zone
computer.updateUsrDialog()
@@ -317,7 +317,6 @@
interact()
else
to_chat(usr, "The screen turns to static.")
return
// Atlantis: Required for camnetkeys to work.
@@ -80,7 +80,6 @@
proc/RecordsList()
var/dat = "<h3>Current records</h3>"
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
@@ -89,7 +88,6 @@
var/dat = "<h3>Selected Record</h3>"
to_chat(dat += topic_link(src,"menu=2",", Back") + "<br><br>")
if (!active_record)
dat += "<font class='bad'>Record not found.</font>"
else
@@ -61,7 +61,6 @@
return
if (!(computer.z in config.station_levels))
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)
@@ -105,17 +104,14 @@
tmp_alertlevel = 0
else:
to_chat(usr, "You are not authorized to do this.")
tmp_alertlevel = 0
state = STATE_DEFAULT
else
to_chat(usr, "You need to swipe your ID.")
if("announce" in href_list)
if(authenticated==2)
if(message_cooldown)
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())
@@ -197,14 +193,12 @@
if(authenticated==2)
if(centcomm_message_cooldown)
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)
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
@@ -216,14 +210,12 @@
if((authenticated==2) && (computer.emagged))
if(centcomm_message_cooldown)
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)
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
@@ -231,7 +223,6 @@
if("RestoreBackup" in href_list)
to_chat(usr, "Backup routing data restored!")
computer.emagged = 0
computer.updateDialog()
-11
View File
@@ -18,17 +18,14 @@
opened = !opened
if(opened)
to_chat(usr, "\blue The access panel is now open.")
else
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)
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)
@@ -39,21 +36,17 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
return
src.current = select_active_ai(user)
if (!src.current)
to_chat(usr, "No active AIs detected.")
else
to_chat(usr, "[src.current.name] selected for law changes.")
return
@@ -75,19 +68,15 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
return
src.current = freeborg()
if (!src.current)
to_chat(usr, "No free cyborgs detected.")
else
to_chat(usr, "[src.current.name] selected for law changes.")
return
@@ -51,7 +51,6 @@
return
if (computer.z > 6)
to_chat(usr, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
var/dat
@@ -221,11 +221,9 @@
proc/BruteForce(mob/usr as mob)
if(isnull(linkedServer))
to_chat(usr, "<span class='warning'>Could not complete brute-force: Linked Server Disconnected!</span>")
else
var/currentKey = src.linkedServer.decryptkey
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
@@ -418,7 +416,6 @@
var/mob/living/carbon/human/H = customrecepient.loc
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")
@@ -434,7 +431,6 @@
var/mob/living/carbon/human/H = customrecepient.loc
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")
@@ -451,7 +447,6 @@
// to_chat(usr, href_list["select"])
if ("back" in href_list)
src.screen = 0
interact()
@@ -96,7 +96,6 @@
log_say("PrisonComputer3 message: [key_name(usr)]->[key_name(R)] : [warning]")
to_chat(R, "\green You hear a voice in your head saying: '[warning]'")
interact()
return
@@ -47,13 +47,11 @@ var/prison_shuttle_timeleft = 0
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
new /obj/item/trash/shard( src.loc )
A.state = 3
A.icon_state = "3"
else
to_chat(user, "\blue You disconnect the monitor.")
A.state = 4
A.icon_state = "4"
@@ -61,7 +59,6 @@ var/prison_shuttle_timeleft = 0
else if(istype(I,/obj/item/card/emag) && (!hacked))
hacked = 1
to_chat(user, "\blue You disable the lock.")
else
return src.attack_hand(user)
@@ -69,11 +66,9 @@ var/prison_shuttle_timeleft = 0
attack_hand(var/mob/user as mob)
if(!src.allowed(user) && (!hacked))
to_chat(user, "\red Access Denied.")
return
if(prison_break)
to_chat(user, "\red Unable to locate shuttle.")
return
if(..())
return
@@ -106,12 +101,10 @@ var/prison_shuttle_timeleft = 0
if (href_list["sendtodock"])
if (!prison_can_move())
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")
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
@@ -122,12 +115,10 @@ var/prison_shuttle_timeleft = 0
else if (href_list["sendtostation"])
if (!prison_can_move())
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")
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
@@ -196,7 +187,6 @@ var/prison_shuttle_timeleft = 0
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
var/area/start_location = locate(/area/shuttle/prison/prison)
@@ -226,7 +216,6 @@ var/prison_shuttle_timeleft = 0
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
return
var/area/start_location = locate(/area/shuttle/prison/station)
@@ -127,7 +127,6 @@
else
to_chat(usr, "\red Access Denied.")
if ("stop" in href_list)
src.temp = {"
Stop Robot Destruction Sequence?<BR>
@@ -161,7 +160,6 @@
if(R && istype(R))
if(R.mind && R.mind.special_role && R.emagged)
to_chat(R, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.")
R.ResetSecurityCodes()
else
@@ -171,7 +169,6 @@
else
to_chat(usr, "\red Access Denied.")
if ("stopbot" in href_list)
if(computer.allowed(usr))
var/mob/living/silicon/robot/R = locate(href_list["stopbot"])
@@ -186,17 +183,14 @@
// R.cell.charge = R.lockcharge
R.lockcharge = !R.lockcharge
to_chat(R, "Your lockdown has been lifted!")
else
R.lockcharge = !R.lockcharge
// R.cell.charge = 0
to_chat(R, "You have been locked down!")
else
to_chat(usr, "\red Access Denied.")
if ("magbot" in href_list)
if(computer.allowed(usr))
var/mob/living/silicon/robot/R = locate(href_list["magbot"])
@@ -359,7 +359,6 @@
if(!viable)
return "No viable occupant detected."
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 />"
@@ -374,7 +373,6 @@
if(!viable)
return "No viable occupant detected."
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 />"
@@ -385,7 +383,6 @@
proc/emitter_menu()
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")
@@ -746,7 +743,6 @@
human_occupant.reagents.add_reagent("inaprovaline", round(REJUVENATORS_MAX - 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"])
if (se_block < 14)
@@ -59,7 +59,6 @@
if (computer.z > 6)
to_chat(usr, "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!")
return
var/dat
@@ -20,18 +20,15 @@
W = pda.id
if (!W:access) //no access
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
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
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")
@@ -45,12 +42,10 @@
message_admins("[key_name_admin(user)] has authorized early shuttle launch")
log_game("[user.ckey] has authorized early shuttle launch")
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")
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
@@ -61,10 +56,8 @@
src.authorized -= W:registered_name
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
if("Abort")
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
@@ -77,7 +70,6 @@
switch(choice)
if("Launch")
to_chat(world, "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>")
emergency_shuttle.settimeleft( 10 )
emagged = 1
if("Cancel")
@@ -59,7 +59,6 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
return
//Begin Marauder launchpad.
@@ -156,7 +155,6 @@ var/specops_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
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
else return 1
@@ -173,19 +171,16 @@ 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))
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))
to_chat(user, "\red Access Denied.")
return
if (sent_strike_team == 0)
to_chat(usr, "\red The strike team has not yet deployed.")
return
if(..())
@@ -220,7 +215,6 @@ var/specops_shuttle_timeleft = 0
if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return.")
return
else if (href_list["sendtostation"])
@@ -228,12 +222,10 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
return
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()
@@ -48,7 +48,6 @@
/obj/machinery/computer3/syndicate_station/attack_hand(mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied")
return
user.set_machine(src)
@@ -59,7 +59,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!syndicate_elite_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
return
sleep(600)
@@ -169,7 +168,6 @@ var/syndicate_elite_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
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
else return 1
@@ -186,19 +184,16 @@ 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))
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))
to_chat(user, "\red Access Denied.")
return
// if (sent_syndicate_strike_team == 0)
// to_chat(usr, "\red The strike team has not yet deployed.")
// return
if(..())
@@ -232,7 +227,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.")
return
else if (href_list["sendtostation"])
@@ -240,12 +234,10 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
return
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()