Auto-translated
I suggest the following scheme:
- Divide creatures into arrays: Melee (slow, can be designated as "non-flying"), Melee (fast, can be designated as "flying"), Ranged, Spellcasters.
1) When forming a squad, reduce the number of existing creatures by 75%.
2) Add 25% of the strength of a full squad, graded as follows: Melee-Non-Flying, Melee-Flying, Ranged, Spellcasters (depending on the difficulty of the game, this can be changed).
3) The chance of each subsequent squad appearing is only 50%, with a maximum of 2 full iterations, after which the chance of each subsequent squad appearing is 100%.
4) The levels of the squads can be any; the upper limit will only be the strength (if the attempt fails, either give the same creature or continue the iteration according to the rule described above).
The maximum variation in squad strength is within 15% (85%-115%).