Here are my test additions to battle_config of EB2. (for my own mod hitrate is much higher)
I separated hitrate for classes. Didn't have enough time for tests to match carefully the results for a moment
Code:
<melee-hit-rate>0.35
<cavalry>0.5</cavalry>
<elephants>3.5</elephants>
<heavy-infantry>0.6</heavy-infantry>
<missile-infantry>0.2</missile-infantry>
<melee-infantry-vs-phalanx>0.5</melee-infantry-vs-phalanx>
<spearmen>0.65</spearmen>
<melee-infantry-vs-spearmen>0.85</melee-infantry-vs-spearmen>
<spearmen-vs-cavalry>0.85</spearmen-vs-cavalry>
<cavalry-vs-phalanx>0.0000001</cavalry-vs-phalanx>
<cavalry-vs-spearmen>0.1</cavalry-vs-spearmen>
<heavy-cavalry-vs-melee-infantry>0.75</heavy-cavalry-vs-melee-infantry>
<light-infantry-vs-spearmen>0.25</light-infantry-vs-spearmen>
<heavy-infantry-vs-spearmen>0.8</heavy-infantry-vs-spearmen>
<phalanx>0.6</phalanx>
<shield_wall>0.6</shield_wall>
<schiltrom>0.7</schiltrom>
</melee-hit-rate>
Next part I took by the example from Winds of Scandia mod .xml. Not fact that it works. I want to understand difference between intercept-range and engage-distance. Are they similar and duplicating each other or not.
Code:
<!-- unformed charge -->
<unformed-charge>
<!-- proportion of unit that will charge before unit task will finish -->
<finish-proportion-infantry-light>0.7</finish-proportion-infantry-light>
<finish-proportion-cavalry-light>.6</finish-proportion-cavalry-light>
<finish-proportion-infantry-heavy>.9</finish-proportion-infantry-heavy>
<finish-proportion-cavalry-heavy>.9</finish-proportion-cavalry-heavy>
<finish-proportion-infantry-missile>.5</finish-proportion-infantry-missile>
<finish-proportion-cavalry-missile>.7</finish-proportion-cavalry-missile>
<finish-proportion-phalanx>1.0</finish-proportion-phalanx>
<finish-proportion-shield-wall>.95</finish-proportion-shield-wall>
<finish-proportion-siege>1.0</finish-proportion-siege>
<finish-proportion-spearmen>.8</finish-proportion-spearmen>
</unformed-charge>
</unit-tasks>
<unit>
<general_unit>
<intercept-range>15</intercept-range>
<max-range-scale>2.0</max-range-scale>
<collision-reaction-time>5</collision-reaction-time>
<range-factor>
<moving>0.6</moving>
</range-factor>
</general_unit>
<spearmen>
<intercept-range>50</intercept-range>
</spearmen>
<heavy-infantry>
<intercept-range>50</intercept-range>
</heavy-infantry>
<light-infantry>
<intercept-range>50</intercept-range>
</light-infantry>
<heavy-cavalry>
<intercept-range>250</intercept-range>
</heavy-cavalry>
<light-cavalry>
<intercept-range>275</intercept-range>
</light-cavalry>
<missile-infantry>
<intercept-range>175</intercept-range>
</missile-infantry>
<!-- phalanx configuration -->
<phalanx>
<intercept-range>15</intercept-range>
</phalanx>