Minor shuttle fixes and cleanup

Readds the missing "shuttle has left the station" message, improves the
ETA calculation and reorganizes the procs in shuttle_controller.dm
This commit is contained in:
mwerezak
2014-06-23 01:55:43 -04:00
committed by ZomgPonies
parent d8c02c7b6e
commit 7e057e7eb9
4 changed files with 74 additions and 62 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ var/global/list/shuttles
for(var/mob/living/simple_animal/pest in destination)
pest.gib()
origin.move_contents_to(destination)
origin.move_contents_to(destination) //might need to use the "direction" argument here, I dunno.
for(var/mob/M in destination)
if(M.client)
+11 -7
View File
@@ -1,18 +1,22 @@
/datum/shuttle/ferry/emergency
//pass
var/jump_time = null //the time at which the shuttle last jumped. Used for ETAs
/datum/shuttle/ferry/emergency/arrived()
emergency_shuttle.shuttle_arrived()
/*
/datum/shuttle/ferry/emergency/move()
/datum/shuttle/ferry/emergency/move(var/area/origin,var/area/destination)
if (destination == area_transition)
jump_time = world.time
else
jump_time = null
if (!location) //leaving the station
emergency_shuttle.departed = 1
..()
*/
captain_announce("The Emergency Shuttle has left the station. Estimate [round(emergency_shuttle.estimate_arrival_time()/60,1)] minutes until the shuttle docks at Central Command.")
..(origin, destination)
/datum/shuttle/ferry/escape_pod
//pass
@@ -34,7 +38,7 @@
spawn(0)
D.close()
..(origin, destination) //might need to adjust shuttle/move so that it can take into account the direction argument to area/move_contents_to, I dunno.
..(origin, destination)
for(var/obj/machinery/door/D in destination)
spawn(0)