Here are the percentages that are applied to the raise, by category:
Rebel Militias:
aurRebel_NoEnemy_ = 12
aurRebel_EnemyNoCity_ = 25
aurRebel_EnemyLessCity_ = 17
aurRebel_EnemyMoreCity_ = 12
aurRebel_EnemyAllCity_ = 6
aurRebel_EnemyAllCityFewSupport_ = 0
Tory Militia :
aurTory_NoFriend_ = 25
aurTory_FriendNoCity_ = 20
aurTory_FriendLessCity_ = 15
aurTory_FriendMoreCity_ = 10
aurTory_FriendAllCity_ = 7
aurTory_FriendAllCityBigSupport_ = 10
Continental Army:
aurContArmy_NoEnemy_ = 50
aurContArmy_EnemyNoCity_ = 25
aurContArmy_EnemyLessCity_ = 20
aurContArmy_EnemyMoreCity_ = 15
aurContArmy_EnemyAllCity_ = 5
aurContArmy_EnemyAllCityFewSupport_ = 0
Most of the descriptive terms are self-explanatory I guess
Autoraise are made by theater (i.e. New England, Middle States, South Central, Deep South, etc...). To work out a better idea of things, you check how many units are available in the setup autoraise list (last section of the setup xls first thumbnail) + check the units file (for Continental army for instance) to verify from which theater units come, remove those from the list already on map at the time of check, then apply to those that remains the % give by the above keys based on the situation, and this will give you how many units you'll receive next raise...
NB: units in the units file which have a -1 in the Autoraise column means they are not subject to the rule (i.e. not raised nor counted in the process in anyway).
Of course, all this is done automatically by the code
Example
In Middle States, we have potentially 12 Rebel militias and 3 Tory (from 75 setup) that can be raised. 3 Rebs and 1 Tory are already on map. 12 CA units are possible, 4 are already on map. The brits are in the area and control NYC only. In the following raise, we have extra units as follows:
-> Rebs: 12 max - 3 onmap = 9 * 17% [aurEnemy_FriendLessCity_]= 1.56 unit rounded up to 2
-> Tory: 3 max - 1 onmap = 2 * 15% [aurTory_FriendLessCity_] = 0.3 unit, nothing
-> Continental Army: 12 max - 4 onmap = 8 * 25% [aurEnemy_FriendLessCity_]= 2 units
Hope I am clear...do not hesitate to send mails for more details (cc to Pocus, he knows the rule better)
