Update #2
There was a major oversight in the sim that derived from the faulty logic of the game's own sim (Clovis' code¹) where multiple generals with the same role id - AKA "named gens" phenomenon² - did not grant the general buffs multiple times, only once. This also affected the API payload and the calculations.
It has now been fixed. Thanks to Augustus for pointing this out (
https://atwar-game.com/users/profile.php?user_id=17346).
1. Clovis' code: originally, the custom sim's code was taken from the game's own simulator, but since the game does not have multiple general units by default, it was not reflected semantically in the code; it was a simple bool (has General? yes/no instead of counting the generals, plus the general upgrades were not dynamically changeable)
2. Named gens phenomenon: scenario players may know it well that - as you can see it in the game by expanding the 'Stack Bonuses' option - if there are multiple Player General type units in the same stack, all the bonuses you get from the general (+1 def to all units, +1 HP to Ground: Secondary Defence, etc.) are all applied as many times as the amount of distinctively named* generals found in that stack