Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit bbc838d

Browse files
authored
Makes robo control program free-access and limits bot control to access (#15538)
* Update robocontrol.dm * Update robocontrol.dm
1 parent 786170b commit bbc838d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • code/modules/modular_computers/file_system/programs/science

code/modules/modular_computers/file_system/programs/science/robocontrol.dm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
category = PROGRAM_CATEGORY_SCI
66
program_icon_state = "robot"
77
extended_desc = "A remote controller used for giving basic commands to non-sentient robots."
8-
transfer_access = ACCESS_ROBOTICS
98
requires_ntnet = TRUE
109
network_destination = "robotics control network"
1110
size = 12
@@ -39,8 +38,8 @@
3938

4039
for(var/B in GLOB.bots_list)
4140
var/mob/living/simple_animal/bot/Bot = B
42-
if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled) //Only non-emagged bots on the same Z-level are detected!
43-
continue //Also, the PDA must have access to the bot type.
41+
if(!Bot.on || Bot.z != zlevel || Bot.remote_disabled || !Bot.bot_core.check_access(computer))
42+
continue //Only non-emagged bots on the same Z-level are detected! Also, the PDA must have access to the bot type.
4443
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)
4544
if(Bot.bot_type == MULE_BOT)
4645
var/mob/living/simple_animal/bot/mulebot/MULE = Bot

0 commit comments

Comments
 (0)