Auto-translated
...and the cannon goes there too.
New here? I'm Roha — want a quick tour?
Is the topic still active? I can add creatures from HotA, as I have the source code.
First, I'll create some new creatures for Heroes (there's a bit of work involved with the aspid) + a ballista/cannon. Then we'll see how much time I have.
Let's hope it's awesome.
Another idea: could the program calculate the division of neutral creatures into stacks? We select our army in the program, enter the number of units, then select the neutral creatures and their estimated number (taken from the guard calculator).
According to the physics model: The distribution of neutral creatures into stacks at the start of the battle follows strict rules and depends on the value of k, which is the ratio of the attacking hero's army strength (A) to the neutral creatures' army strength (H). The army strength is calculated as the sum of the AI Value coefficients.
Ratio | Number of stacks
0.5 | 7 stacks
0.5 … 0.66 | 6 stacks
0.67 … 0.99 | 5 stacks
1 … 1.49 | 4 stacks
1.5 … 1.99 | 3 stacks
2 and more | 2 stacks
That's not entirely correct. There's always a difference in the number of units. As far as I remember, it's something like this: 1-2, 1-3, 2-4, 3-5, 4-6, 5-7, 6-7. And as for the probability that, for example, with our maximum army size, there will be 1 or 2 units of neutral enemies – who knows. It could be 50/50, or it might not be.
With a probability of 40%, 1 will be added to or subtracted from the number of units obtained from the table. It is clear that the number of units cannot be more than 7. One unit can appear only from 2 units with a deduction of 1 with a probability of 20%.
The author probably won't mind, I don't think he'll object.
Improved calculator for creatures from HotA + ballista/cannon. Heroes from the Cove have been added. If there are any inconsistencies, please let me know, and I will fix them.
For the ballista, the damage for a direct shot is written as follows:
-no/basic/advanced artillery - no double damage, damage for one shot
-expert - with double damage, damage for one shot
For the cannon, the damage for a direct shot is written as follows:
-no/basic artillery - with normal damage
-advanced - with double damage
-expert - with triple damage.
Ballista/cannon specializations work.
Download link:
http://rgho.st/8kpGyXyf4
Download, unzip, and run H3Calc.exe
Source code is here - https://github.com/Nodl/H3Calc/tree/hota
The Curse spell is not properly implemented. When activated, it causes the calculator to crash.
Also, the Bless spell doesn't work correctly on combat units (damage is reduced to a minimum).
Otherwise, the work is excellent.