I think that's a good solution.
Something along the lines of : "Garrisons consist of a max of X units (of low quality infantry). If there are more than X units in a settlement, then Y units can be used freely by the Megas, with Y being the number of units in the settlement minus X. Bodyguard units do not count as units in the sense of this article."
Bookmarks