Military statistical numbers

Frossa

Prince
Joined
Apr 29, 2012
Messages
413
Location
Sweden
I was wondering if anybody knows whether it is possible to modify the military numbers seen in the Demographics screen.


I know that every unit represents just over 1000 soldiers times its combat strength (a Warrior with 8 strength for example comes up as 9798 soldiers, and a 24 strength Musketman shows up as 26000).
I think the numbers as they are presented in the game are very unrealistic and I want to decrease them if possible. Is this by any chance hard coded?
 
Hard-coded but somewhat alterable.

In Demographics.lua

Code:
function GetArmyValue( iPlayer )
    return math.sqrt( Players[iPlayer]:GetMilitaryMight() ) * 2000;
end

So changing the calculation of army size from military might is just a case of editing the Lua file, (to change military might you'd need to recompile the DLL)
 
Top Bottom