0ad/binaries/data/mods/public/simulation/ai
Angen df524c31d1 Do not allow minimum size drop to 0 because of population scale [Petra attack plan]
Petra reached maxed population and started spamming attack requests.
Reported at forum
https://wildfiregames.com/forum/index.php?/topic/27319-ai-chat-spamming/.

Cause of problem was that with given population scaling and current
rounding minimal requested size of units dropped to 0.
What leaded to allow to start without units because minimum count have
been reached.

This change requires at least one unit if minimum size is not 0 before
adjustment by pop scaling , what we need to not block attacks with
heroes or healers for example.

Now in case Petra is not able to produce units, aborts plan correctly.

Differential Revision: https://code.wildfiregames.com/D2462
This was SVN commit r23235.
2019-12-14 15:44:22 +00:00
..
common-api Use arrow functions in AI filters 2019-09-22 14:01:49 +00:00
petra Do not allow minimum size drop to 0 because of population scale [Petra attack plan] 2019-12-14 15:44:22 +00:00