mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 03:56:27 +01:00
I before E (#4287)
* except after C * maroonic mistake * Improved use of sound files. Also more grammar. * now with less fuckup
This commit is contained in:
@@ -1467,7 +1467,7 @@ datum/admins/var/obj/item/weapon/paper/admin/faxreply // var to hold fax replies
|
||||
|
||||
|
||||
|
||||
if(destination.recievefax(P))
|
||||
if(destination.receivefax(P))
|
||||
src.owner << "<span class='notice'>Message reply to transmitted successfully.</span>"
|
||||
if(P.sender) // sent as a reply
|
||||
log_admin("[key_name(src.owner)] replied to a fax message from [key_name(P.sender)]")
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
shuttle.area_offsite = shuttle.area_station
|
||||
shuttle_controller.shuttles[shuttle_tag] = shuttle
|
||||
shuttle_controller.process_shuttles += shuttle
|
||||
testing("Exploration shuttle '[shuttle_tag]' at zlevel [z] successfully added.")
|
||||
testing("Exploration shuttle '[shuttle_tag]' at z-level [z] successfully added.")
|
||||
|
||||
//Sets destination to new sector. Can be null.
|
||||
/obj/machinery/computer/shuttle_control/explore/proc/update_destination(var/obj/effect/map/D)
|
||||
@@ -84,7 +84,7 @@
|
||||
else
|
||||
shuttle_status = "Standing-by at offsite location."
|
||||
if(WAIT_LAUNCH, FORCE_LAUNCH)
|
||||
shuttle_status = "Shuttle has recieved command and will depart shortly."
|
||||
shuttle_status = "Shuttle has received command and will depart shortly."
|
||||
if(WAIT_ARRIVE)
|
||||
shuttle_status = "Proceeding to destination."
|
||||
if(WAIT_FINISH)
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
text = "<hr><font size= \"1\">"
|
||||
text += "This transmission is intended only for the addressee and may contain confidential information. Any unauthorized disclosure is strictly prohibited. <br><br>"
|
||||
text += "If this transmission is recieved in error, please notify both the sender and the office of [using_map.boss_name] Internal Affairs immediately so that corrective action may be taken."
|
||||
text += "If this transmission is received in error, please notify both the sender and the office of [using_map.boss_name] Internal Affairs immediately so that corrective action may be taken."
|
||||
text += "Failure to comply is a breach of regulation and may be prosecuted to the fullest extent of the law, where applicable."
|
||||
text += "</font>"
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
if(copyitem)
|
||||
copyitem.loc = usr.loc
|
||||
usr.put_in_hands(copyitem)
|
||||
usr << "<span class='notice'>You take \the [copyitem] out of \the [src].</span>"
|
||||
to_chat(usr, "<span class='notice'>You take \the [copyitem] out of \the [src].</span>")
|
||||
copyitem = null
|
||||
|
||||
if(href_list["scan"])
|
||||
@@ -124,7 +124,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
var/success = 0
|
||||
for(var/obj/machinery/photocopier/faxmachine/F in allfaxes)
|
||||
if( F.department == destination )
|
||||
success = F.recievefax(copyitem)
|
||||
success = F.receivefax(copyitem)
|
||||
|
||||
if (success)
|
||||
visible_message("[src] beeps, \"Message transmitted successfully.\"")
|
||||
@@ -132,7 +132,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
else
|
||||
visible_message("[src] beeps, \"Error transmitting message.\"")
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/proc/recievefax(var/obj/item/incoming)
|
||||
/obj/machinery/photocopier/faxmachine/proc/receivefax(var/obj/item/incoming)
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
return 0
|
||||
|
||||
@@ -164,7 +164,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
|
||||
use_power(200)
|
||||
|
||||
//recieved copies should not use toner since it's being used by admins only.
|
||||
//received copies should not use toner since it's being used by admins only.
|
||||
var/obj/item/rcvdcopy
|
||||
if (istype(copyitem, /obj/item/weapon/paper))
|
||||
rcvdcopy = copy(copyitem, 0)
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
if (istype(user, /obj/machinery/computer/shuttle_control/emergency))
|
||||
var/obj/machinery/computer/shuttle_control/emergency/C = user
|
||||
|
||||
//initiating or cancelling a launch ALWAYS requires authorization, but if we are already set to launch anyways than forcing does not.
|
||||
//this is so that people can force launch if the docking controller cannot safely undock without needing X heads to swipe.
|
||||
//Initiating or cancelling a launch ALWAYS requires authorization, but if we are already set to launch anyways than forcing does not.
|
||||
//This is so that people can force launch if the docking controller cannot safely undock without needing X heads to swipe.
|
||||
if (!(process_state == WAIT_LAUNCH || C.has_authorization()))
|
||||
return 0
|
||||
return ..()
|
||||
@@ -69,11 +69,11 @@
|
||||
if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console
|
||||
if (emergency_shuttle.autopilot)
|
||||
emergency_shuttle.autopilot = 0
|
||||
world << "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Launch sequence initiated!</b></span>"
|
||||
to_chat(world, "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Launch sequence initiated!</b></span>")
|
||||
|
||||
if(usr)
|
||||
log_admin("[key_name(usr)] has overridden the shuttle autopilot and activated launch sequence")
|
||||
message_admins("[key_name_admin(usr)] has overridden the shuttle autopilot and activated launch sequence")
|
||||
log_admin("[key_name(usr)] has overridden the departure shuttle's autopilot and activated the launch sequence.")
|
||||
message_admins("[key_name_admin(usr)] has overridden the departure shuttle's autopilot and activated the launch sequence.")
|
||||
|
||||
..(user)
|
||||
|
||||
@@ -83,11 +83,11 @@
|
||||
if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console
|
||||
if (emergency_shuttle.autopilot)
|
||||
emergency_shuttle.autopilot = 0
|
||||
world << "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Bluespace drive engaged!</b></span>"
|
||||
to_chat(world, "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Bluespace drive engaged!</b></span>")
|
||||
|
||||
if(usr)
|
||||
log_admin("[key_name(usr)] has overridden the shuttle autopilot and forced immediate launch")
|
||||
message_admins("[key_name_admin(usr)] has overridden the shuttle autopilot and forced immediate launch")
|
||||
log_admin("[key_name(usr)] has overridden the departure shuttle's autopilot and forced immediate launch.")
|
||||
message_admins("[key_name_admin(usr)] has overridden the departure shuttle's autopilot and forced immediate launch.")
|
||||
|
||||
..(user)
|
||||
|
||||
@@ -97,11 +97,11 @@
|
||||
if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console
|
||||
if (emergency_shuttle.autopilot)
|
||||
emergency_shuttle.autopilot = 0
|
||||
world << "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Launch sequence aborted!</b></span>"
|
||||
to_chat(world, "<span class='notice'><b>Alert: The shuttle autopilot has been overridden. Launch sequence aborted!</b></span>")
|
||||
|
||||
if(usr)
|
||||
log_admin("[key_name(usr)] has overridden the shuttle autopilot and cancelled launch sequence")
|
||||
message_admins("[key_name_admin(usr)] has overridden the shuttle autopilot and cancelled launch sequence")
|
||||
log_admin("[key_name(usr)] has overridden the departure shuttle's autopilot and cancelled the launch sequence.")
|
||||
message_admins("[key_name_admin(usr)] has overridden the departure shuttle's autopilot and cancelled the launch sequence.")
|
||||
|
||||
..(user)
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
return (authorized.len >= req_authorizations || emagged)
|
||||
|
||||
/obj/machinery/computer/shuttle_control/emergency/proc/reset_authorization()
|
||||
//no need to reset emagged status. If they really want to go back to the station they can.
|
||||
//No need to reset emagged status. If they really want to go back to the station they can.
|
||||
authorized = initial(authorized)
|
||||
|
||||
//returns 1 if the ID was accepted and a new authorization was added, 0 otherwise
|
||||
@@ -145,16 +145,19 @@
|
||||
|
||||
if (dna_hash in authorized)
|
||||
src.visible_message("\The [src] buzzes. That ID has already been scanned.")
|
||||
playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||
return 0
|
||||
|
||||
if (!(access_heads in access))
|
||||
src.visible_message("\The [src] buzzes, rejecting [ident].")
|
||||
playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0)
|
||||
return 0
|
||||
|
||||
src.visible_message("\The [src] beeps as it scans [ident].")
|
||||
playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0)
|
||||
authorized[dna_hash] = auth_name
|
||||
if (req_authorizations - authorized.len)
|
||||
world << "<span class='notice'><b>Alert: [req_authorizations - authorized.len] authorization\s needed to override the shuttle autopilot.</b></span>"
|
||||
to_chat(world, "<span class='notice'><b>Alert: [req_authorizations - authorized.len] authorization\s needed to override the shuttle autopilot.</b></span>") //TODO- Belsima, make this an announcement instead of magic.
|
||||
|
||||
if(usr)
|
||||
log_admin("[key_name(usr)] has inserted [ID] into the shuttle control computer - [req_authorizations - authorized.len] authorisation\s needed")
|
||||
@@ -164,7 +167,7 @@
|
||||
|
||||
/obj/machinery/computer/shuttle_control/emergency/emag_act(var/remaining_charges, var/mob/user)
|
||||
if (!emagged)
|
||||
user << "<span class='notice'>You short out \the [src]'s authorization protocols.</span>"
|
||||
to_chat(user, "<span class='notice'>You short out \the [src]'s authorization protocols.</span>")
|
||||
emagged = 1
|
||||
return 1
|
||||
|
||||
@@ -190,11 +193,11 @@
|
||||
if (shuttle.in_use)
|
||||
shuttle_status = "Busy."
|
||||
else if (!shuttle.location)
|
||||
shuttle_status = "Standing-by at [station_name()]."
|
||||
shuttle_status = "Standing by at [station_name()]."
|
||||
else
|
||||
shuttle_status = "Standing-by at [using_map.dock_name]."
|
||||
shuttle_status = "Standing by at [using_map.dock_name]."
|
||||
if(WAIT_LAUNCH, FORCE_LAUNCH)
|
||||
shuttle_status = "Shuttle has recieved command and will depart shortly."
|
||||
shuttle_status = "Shuttle has received command and will depart shortly."
|
||||
if(WAIT_ARRIVE)
|
||||
shuttle_status = "Proceeding to destination."
|
||||
if(WAIT_FINISH)
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
return
|
||||
|
||||
if (MS.moving_status != SHUTTLE_IDLE)
|
||||
usr << "<font color='blue'>[shuttle_tag] vessel is moving.</font>"
|
||||
to_chat(usr, "<font color='blue'>[shuttle_tag] vessel is moving.</font>")
|
||||
return
|
||||
|
||||
if(href_list["dock_command"])
|
||||
@@ -187,11 +187,11 @@
|
||||
|
||||
if(href_list["start"])
|
||||
if(MS.at_origin)
|
||||
usr << "<font color='red'>You are already at your home base.</font>"
|
||||
to_chat(usr, "<font color='red'>You are already at the home base.</font>")
|
||||
return
|
||||
|
||||
if((MS.last_move + MS.cooldown*10) > 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
|
||||
|
||||
if(!check_docking(MS))
|
||||
@@ -214,11 +214,11 @@
|
||||
if(!MS.can_cloak)
|
||||
return
|
||||
MS.cloaked = !MS.cloaked
|
||||
usr << "<font color='red'>Ship stealth systems have been [(MS.cloaked ? "activated. The station will not" : "deactivated. The station will")] be warned of our arrival.</font>"
|
||||
to_chat(usr, "<font color='red'>Ship stealth systems have been [(MS.cloaked ? "activated. The station will not" : "deactivated. The station will")] be warned of our arrival.</font>")
|
||||
|
||||
if(href_list["move_multi"])
|
||||
if((MS.last_move + MS.cooldown*10) > 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
|
||||
|
||||
if(!check_docking(MS))
|
||||
@@ -228,7 +228,7 @@
|
||||
var/choice = input("Select a destination.") as null|anything in MS.destinations
|
||||
if(!choice) return
|
||||
|
||||
usr << "<font color='blue'>[shuttle_tag] main computer recieved message.</font>"
|
||||
to_chat(usr, "<font color='blue'>[shuttle_tag] main computer received message.</font>")
|
||||
|
||||
if(MS.at_origin)
|
||||
MS.announce_arrival()
|
||||
|
||||
Reference in New Issue
Block a user