[MIRROR] Fixes machines not releasing their contents when opened (such as mobs), when they otherwise should. [MDB IGNORE] (#20059)

* Fixes machines not releasing their contents when opened (such as mobs), when they otherwise should.

* e

---------

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-27 03:27:33 +01:00
committed by GitHub
co-authored by Timberpoes Gandalf
parent 7459d70109
commit 4f983f9b2f
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -104,7 +104,7 @@
return TRUE
/obj/machinery/dna_scannernew/open_machine(density_to_set = FALSE)
/obj/machinery/dna_scannernew/open_machine(drop = TRUE, density_to_set = FALSE)
if(state_open)
return FALSE
@@ -115,6 +115,7 @@
return TRUE
/obj/machinery/dna_scannernew/relaymove(mob/living/user, direction)
if(user.stat || locked)
if(message_cooldown <= world.time)
+1 -1
View File
@@ -94,7 +94,7 @@
if (!state_open)
container_resist_act(user)
/obj/machinery/sleeper/open_machine(density_to_set = FALSE)
/obj/machinery/sleeper/open_machine(drop = TRUE, density_to_set = FALSE)
if(!state_open && !panel_open)
flick("[initial(icon_state)]-anim", src)
return ..()
@@ -28,7 +28,7 @@
return
close_machine(target)
/obj/machinery/abductor/experiment/open_machine(density_to_set = FALSE)
/obj/machinery/abductor/experiment/open_machine(drop = TRUE, density_to_set = FALSE)
if(!state_open && !panel_open)
..()
@@ -48,7 +48,7 @@
/obj/machinery/skill_station/relaymove(mob/living/user, direction)
open_machine()
/obj/machinery/skill_station/open_machine(density_to_set = FALSE)
/obj/machinery/skill_station/open_machine(drop = TRUE, density_to_set = FALSE)
. = ..()
interrupt_operation()
@@ -173,7 +173,7 @@
mod_unit = null
open_machine()
/obj/machinery/mod_installer/open_machine(density_to_set = FALSE)
/obj/machinery/mod_installer/open_machine(drop = TRUE, density_to_set = FALSE)
if(state_open)
return FALSE
..()