Fixes the robotic cryo storage not linking to the robotic cryo console if there is a human cryo console nearby (#18576)

* Fixes the robotic cryostorage linking to the human cryostorage control

* Fixes indentation error
This commit is contained in:
Adri
2022-07-26 15:52:20 +01:00
committed by GitHub
parent 03ad527083
commit c9089cbf1d
+5 -2
View File
@@ -206,6 +206,7 @@
var/obj/item/radio/intercom/announce
var/silent = FALSE
var/console_type = /obj/machinery/computer/cryopod // The type of control console it should link itself to
var/obj/machinery/computer/cryopod/control_computer
var/last_no_computer_message = 0
@@ -252,8 +253,9 @@
/obj/machinery/cryopod/proc/find_control_computer(urgent=0)
for(var/obj/machinery/computer/cryopod/C in get_area(src).contents)
control_computer = C
break
if(C.type == console_type)
control_computer = C
break
// Don't send messages unless we *need* the computer, and less than five minutes have passed since last time we messaged
if(!control_computer && urgent && last_no_computer_message + 5*60*10 < world.time)
@@ -699,6 +701,7 @@
on_store_message = "has entered robotic storage."
on_store_name = "Robotic Storage Oversight"
on_enter_occupant_message = "The storage unit broadcasts a sleep signal to you. Your systems start to shut down, and you enter low-power mode."
console_type = /obj/machinery/computer/cryopod/robot
allow_occupant_types = list(/mob/living/silicon/robot)
disallow_occupant_types = list(/mob/living/silicon/robot/drone)