darozak / Advolition

1 stars 0 forks source link

Allow robots to set the power levels for different functions #15

Closed darozak closed 7 months ago

darozak commented 7 months ago

Robots will be able to set the amount of power that goes to each of the systems such as movement, scanner, shields, and blaster. This will affect how effective each of the systems are. However, robots will need to ration their power usage to survive the game.

darozak commented 7 months ago

Now tracking and displaying robot power levels (https://github.com/darozak/Advolition/commit/f58eb89cadbc58492f97baaf3133762e3c9eb7a7). Will need to reduce power during movement.

darozak commented 7 months ago

The robot must choose between three power levels (0, 1, 2) when moving or scanning. Depending on their race, this will affect the power expenditure and the effect this has on the action. (https://github.com/darozak/Advolition/commit/978e2971c78462e51d2d7fb8b0751d38f8ee0168)

I should take some time to clean up and add descriptive comments to the code.

darozak commented 7 months ago

I completely restructure the equipment so that different equipment subclasses can be used to define diverse sets of equipment and the relations between power levels and effects. This is a very clean and logical structure that should be easy to understand and work (https://github.com/darozak/Advolition/commit/2c95b1cb4eaef935400f33846a97bd703769933c).