darozak / Advolition

1 stars 0 forks source link

Make sense of item equip/activate #77

Closed darozak closed 2 months ago

darozak commented 2 months ago

I need to clarify how item equip/activate work both in terms of variable names and tutorial. Both activate and equip appear to be somewhat redundant. The robot is only permitted to equip or unequip an item. There is not way to specifically control item activation.

darozak commented 2 months ago

I replaced isActive with isEquipped throughout and modified the equipItem function so that it only unequips items in excess of the max (https://github.com/darozak/Advolition/commit/e4ba8e678d4bdb6b557c7d18b60b4a3976411b81). This allows the robot to have equipped fewer items than the max but automatically unequips any items that exceed the maximum. Works great now.