From 4ee0459aa7ea472954c5110051fcf5749a3f0edc Mon Sep 17 00:00:00 2001 From: ynot01 Date: Wed, 31 Aug 2022 08:46:45 -0400 Subject: [PATCH 1/2] Update robocontrol.dm --- .../file_system/programs/science/robocontrol.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/modular_computers/file_system/programs/science/robocontrol.dm b/code/modules/modular_computers/file_system/programs/science/robocontrol.dm index 0a9bbd6b9ac6..a69f5cfa65e8 100644 --- a/code/modules/modular_computers/file_system/programs/science/robocontrol.dm +++ b/code/modules/modular_computers/file_system/programs/science/robocontrol.dm @@ -5,7 +5,6 @@ category = PROGRAM_CATEGORY_SCI program_icon_state = "robot" extended_desc = "A remote controller used for giving basic commands to non-sentient robots." - transfer_access = ACCESS_ROBOTICS requires_ntnet = TRUE network_destination = "robotics control network" size = 12 @@ -39,8 +38,8 @@ for(var/B in GLOB.bots_list) var/mob/living/simple_animal/bot/Bot = B - if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled) //Only non-emagged bots on the same Z-level are detected! - continue //Also, the PDA must have access to the bot type. + if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled || !Bot.bot_core.check_access(computer.GetAccess())) + continue //Only non-emagged bots on the same Z-level are detected! Also, the PDA must have access to the bot type. var/list/newbot = list("name" = Bot.name, "mode" = Bot.get_mode_ui(), "model" = Bot.model, "locat" = get_area(Bot), "bot_ref" = REF(Bot), "mule_check" = FALSE) if(Bot.bot_type == MULE_BOT) var/mob/living/simple_animal/bot/mulebot/MULE = Bot From 244481ad864e9541f22e0c762b6a914acf27142a Mon Sep 17 00:00:00 2001 From: ynot01 Date: Wed, 31 Aug 2022 08:54:31 -0400 Subject: [PATCH 2/2] Update robocontrol.dm --- .../file_system/programs/science/robocontrol.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/modular_computers/file_system/programs/science/robocontrol.dm b/code/modules/modular_computers/file_system/programs/science/robocontrol.dm index a69f5cfa65e8..c3b0b25bbca3 100644 --- a/code/modules/modular_computers/file_system/programs/science/robocontrol.dm +++ b/code/modules/modular_computers/file_system/programs/science/robocontrol.dm @@ -38,7 +38,7 @@ for(var/B in GLOB.bots_list) var/mob/living/simple_animal/bot/Bot = B - if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled || !Bot.bot_core.check_access(computer.GetAccess())) + if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled || !Bot.bot_core.check_access(computer)) continue //Only non-emagged bots on the same Z-level are detected! Also, the PDA must have access to the bot type. var/list/newbot = list("name" = Bot.name, "mode" = Bot.get_mode_ui(), "model" = Bot.model, "locat" = get_area(Bot), "bot_ref" = REF(Bot), "mule_check" = FALSE) if(Bot.bot_type == MULE_BOT)