swarm-game / swarm

Resource gathering + programming game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Children of system robots do not bypass device requirements

kostmo opened this issue · comments

Normally, system robots are not required to possess devices in order to use any particular command.

However, a robot built by a system robot becomes subject to the requirement (see worker bee code in #1599).

Also related: #1430

Strange. We are correctly setting children of system robots to also be system robots (

isSystemRobot
) so I'm not sure what would cause this. Do you have a simple minimal example to reproduce this behavior?

Do you have a simple minimal example to reproduce this behavior?

Test case created in #1677.

A random thought I just had while reviewing #1677 : it might have something to do with the dynamic checks we do when building child robots. We should look into the logic used to determine which devices need to be installed when executing build.