darozak / Advolition

1 stars 0 forks source link

Allow robots to activate and inactivate equipment. #45

Closed darozak closed 5 months ago

darozak commented 6 months ago

Robots must be able to activate or deactivate equipped items as a means of saving power without unequipping them. May want to call these actions powerOn and powerOff.

darozak commented 5 months ago

For simplicity, I've decided that the only way for robots to inactivate equipment will be by bumping it off the equipped list or dropping it.

darozak commented 5 months ago

I'm reopening this issue. Powering off items will not only be an important strategy for robots to use when saving power, it may also help them to reduce their vulnerabilities to scans.

darozak commented 5 months ago

I've thought of a way to use activate and inactivate to replace the equip (prioritize) command:

darozak commented 5 months ago

Finished and tested (https://github.com/darozak/Advolition/commit/e61e40264aafff84f8a067761bafc42378bce084).