mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fixes multi docking port undocking conditions
The undocking conditions for multidocking ports (used by the escape shuttle) were overly strict, failing if any door was open/unlocked. Changed to allow undocking if at least one of the inner or outer doors can close and lock.
This commit is contained in:
@@ -197,7 +197,9 @@
|
|||||||
|
|
||||||
//checks if we are ready for undocking
|
//checks if we are ready for undocking
|
||||||
/datum/computer/file/embedded_program/airlock/multi_docking/proc/ready_for_undocking()
|
/datum/computer/file/embedded_program/airlock/multi_docking/proc/ready_for_undocking()
|
||||||
return check_doors_secured()
|
var/ext_closed = check_exterior_door_secured()
|
||||||
|
var/int_closed = check_interior_door_secured()
|
||||||
|
return (ext_closed || int_closed)
|
||||||
|
|
||||||
/datum/computer/file/embedded_program/airlock/multi_docking/proc/open_doors()
|
/datum/computer/file/embedded_program/airlock/multi_docking/proc/open_doors()
|
||||||
toggleDoor(memory["interior_status"], tag_interior_door, memory["secure"], "open")
|
toggleDoor(memory["interior_status"], tag_interior_door, memory["secure"], "open")
|
||||||
|
|||||||
@@ -137,10 +137,3 @@
|
|||||||
|
|
||||||
/datum/computer/file/embedded_program/docking/simple/escape_pod/prepare_for_undocking()
|
/datum/computer/file/embedded_program/docking/simple/escape_pod/prepare_for_undocking()
|
||||||
eject_time = world.time + eject_delay*10
|
eject_time = world.time + eject_delay*10
|
||||||
|
|
||||||
/*
|
|
||||||
/datum/computer/file/embedded_program/docking/simple/escape_pod/ready_for_undocking()
|
|
||||||
if (world.time < eject_time)
|
|
||||||
return 0
|
|
||||||
return ..()
|
|
||||||
*/
|
|
||||||
Reference in New Issue
Block a user