Construction works

There were two building-related problems that I’ve been wanting to fix for a long time, but I’ve never gotten around to them until now:

- you could place a building anywhere on the map without constraints.
- it was impossible to repair a building in any way.

I fixed both in the usual way: by inventing a new unit: the construction engineer. ‘attack’ one of your own buildings with him and it will be restored to full health. Repairing a building will remove the engineer though, so if you have to choose between a tower and a home base to repair with an engineer, you might want to pick the latter.

Also, construction of new buildings is now more constrained: you have to build them near a home base or a construction engineer. I could consider this into yet another option when creating a game, just like ‘vital homebase’ or ‘multimoves’, but the list of options is growing a bit to long and scary I think so I’ll leave it at that for now.

To make showing a ‘range’ circle when constructing work, I had to rework the code behind this considerably. As an added bonus, because the code is related, there is another improvement: you can now choose any tile (before it was just grass) to serve as the center of your nuke/first aid launch!

Leave a Reply