mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Documents and improves the variable names of the shuttle subsystem (#63946)
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
|
||||
/obj/effect/station_crash/proc/shuttle_crash()
|
||||
var/crash_strength = rand(min_crash_strength,max_crash_strength)
|
||||
for (var/S in SSshuttle.stationary)
|
||||
for (var/S in SSshuttle.stationary_docking_ports)
|
||||
var/obj/docking_port/stationary/SM = S
|
||||
if (SM.id == "emergency_home")
|
||||
var/new_dir = turn(SM.dir, 180)
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
if(null, "No")
|
||||
return
|
||||
if("Yes (No Recall)")
|
||||
SSshuttle.adminEmergencyNoRecall = TRUE
|
||||
SSshuttle.admin_emergency_no_recall = TRUE
|
||||
SSshuttle.emergency.mode = SHUTTLE_IDLE
|
||||
|
||||
SSshuttle.emergency.request()
|
||||
@@ -179,8 +179,8 @@
|
||||
if(tgui_alert(usr, "You sure?", "Confirm", list("Yes", "No")) != "Yes")
|
||||
return
|
||||
|
||||
if(SSshuttle.adminEmergencyNoRecall)
|
||||
SSshuttle.adminEmergencyNoRecall = FALSE
|
||||
if(SSshuttle.admin_emergency_no_recall)
|
||||
SSshuttle.admin_emergency_no_recall = FALSE
|
||||
|
||||
if(EMERGENCY_AT_LEAST_DOCKED)
|
||||
return
|
||||
@@ -208,9 +208,9 @@
|
||||
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] disabled the shuttle."))
|
||||
|
||||
SSshuttle.lastMode = SSshuttle.emergency.mode
|
||||
SSshuttle.lastCallTime = SSshuttle.emergency.timeLeft(1)
|
||||
SSshuttle.adminEmergencyNoRecall = TRUE
|
||||
SSshuttle.last_mode = SSshuttle.emergency.mode
|
||||
SSshuttle.last_call_time = SSshuttle.emergency.timeLeft(1)
|
||||
SSshuttle.admin_emergency_no_recall = TRUE
|
||||
SSshuttle.emergency.setTimer(0)
|
||||
SSshuttle.emergency.mode = SHUTTLE_DISABLED
|
||||
priority_announce("Warning: Emergency Shuttle uplink failure, shuttle disabled until further notice.", "Emergency Shuttle Uplink Alert", 'sound/misc/announce_dig.ogg')
|
||||
@@ -230,15 +230,15 @@
|
||||
return
|
||||
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] enabled the emergency shuttle."))
|
||||
SSshuttle.adminEmergencyNoRecall = FALSE
|
||||
SSshuttle.emergencyNoRecall = FALSE
|
||||
if(SSshuttle.lastMode == SHUTTLE_DISABLED) //If everything goes to shit, fix it.
|
||||
SSshuttle.lastMode = SHUTTLE_IDLE
|
||||
SSshuttle.admin_emergency_no_recall = FALSE
|
||||
SSshuttle.emergency_no_recall = FALSE
|
||||
if(SSshuttle.last_mode == SHUTTLE_DISABLED) //If everything goes to shit, fix it.
|
||||
SSshuttle.last_mode = SHUTTLE_IDLE
|
||||
|
||||
SSshuttle.emergency.mode = SSshuttle.lastMode
|
||||
if(SSshuttle.lastCallTime < 10 SECONDS && SSshuttle.lastMode != SHUTTLE_IDLE)
|
||||
SSshuttle.lastCallTime = 10 SECONDS //Make sure no insta departures.
|
||||
SSshuttle.emergency.setTimer(SSshuttle.lastCallTime)
|
||||
SSshuttle.emergency.mode = SSshuttle.last_mode
|
||||
if(SSshuttle.last_call_time < 10 SECONDS && SSshuttle.last_mode != SHUTTLE_IDLE)
|
||||
SSshuttle.last_call_time = 10 SECONDS //Make sure no insta departures.
|
||||
SSshuttle.emergency.setTimer(SSshuttle.last_call_time)
|
||||
priority_announce("Warning: Emergency Shuttle uplink reestablished, shuttle enabled.", "Emergency Shuttle Uplink Alert", 'sound/misc/announce_dig.ogg')
|
||||
|
||||
/client/proc/toggle_nuke(obj/machinery/nuclearbomb/N in GLOB.nuke_list)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/obj/docking_port/mobile/proc/admin_fly_shuttle(mob/user)
|
||||
var/list/options = list()
|
||||
|
||||
for(var/port in SSshuttle.stationary)
|
||||
for(var/port in SSshuttle.stationary_docking_ports)
|
||||
if (istype(port, /obj/docking_port/stationary/transit))
|
||||
continue // please don't do this
|
||||
var/obj/docking_port/stationary/S = port
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
var/list/options = list()
|
||||
|
||||
for(var/port in SSshuttle.stationary)
|
||||
for(var/port in SSshuttle.stationary_docking_ports)
|
||||
if (istype(port, /obj/docking_port/stationary/transit))
|
||||
continue // please don't do this
|
||||
var/obj/docking_port/stationary/S = port
|
||||
|
||||
Reference in New Issue
Block a user