dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
751 stars 77 forks source link

Computer Player to build treasure room right up against gems #204

Open mefistotelis opened 9 years ago

mefistotelis commented 9 years ago

Originally reported on Google Code with ID 204

Throughout the original campaign, the rival keeper remains weak because he simply does
not have enough gold to train his creatures to level 10. This happens even on levels
with gems.

One reason seems to be inefficient mining. I think the AI would perform a lot better
if he always tries to build 3 tiles of treasure room around all sides of the gems.
This would address to causes of inefficient mining:
* Not clearing out the dirt all around the gems
* Having the imps walk a long way to a treasure room and back again

Reported by Loobinex on 2014-01-11 00:30:44

mefistotelis commented 9 years ago
Agreed, that would help a lot.

How digging gems should look like:
- Computer Player should find a path to dig to gems using wallhug algorithm.
- Computer Player should try to dig a square area around gems, but only select to dig
those slabs which are connected to the original wallhug path.
- Computer player should try to place treasure room in the area around gems, if there
are any claimed slabs.

The square area around gems:
- Should be 3x3 if it is not possible to claim the tiles around gems
- Should be 5x5 if it is possible to claim these tiles

Reported by mefistotelis on 2014-01-13 11:10:49