Fixes emergency shuttle endgame state
This commit is contained in:
@@ -826,4 +826,27 @@
|
||||
return ..()
|
||||
|
||||
|
||||
//Called when emergency shuttle leaves the station
|
||||
/obj/docking_port/mobile/proc/on_emergency_launch()
|
||||
if(launch_status == UNLAUNCHED) //Pods will not launch from the mine/planet, and other ships won't launch unless we tell them to.
|
||||
launch_status = ENDGAME_LAUNCHED
|
||||
enterTransit()
|
||||
|
||||
/obj/docking_port/mobile/emergency/on_emergency_launch()
|
||||
return
|
||||
|
||||
//Called when emergency shuttle docks at centcom
|
||||
/obj/docking_port/mobile/proc/on_emergency_dock()
|
||||
//Mapping a new docking point for each ship mappers could potentially want docking with centcomm would take up lots of space, just let them keep flying off into the sunset for their greentext
|
||||
if(launch_status == ENDGAME_LAUNCHED)
|
||||
launch_status = ENDGAME_TRANSIT
|
||||
|
||||
/obj/docking_port/mobile/pod/on_emergency_dock()
|
||||
if(launch_status == ENDGAME_LAUNCHED)
|
||||
dock(SSshuttle.getDock("[id]_away")) //Escape pods dock at centcomm
|
||||
launch_status = SHUTTLE_ENDGAME
|
||||
|
||||
/obj/docking_port/mobile/emergency/on_emergency_dock()
|
||||
return
|
||||
|
||||
#undef DOCKING_PORT_HIGHLIGHT
|
||||
|
||||
Reference in New Issue
Block a user