Auto-translated
Hello everyone!
While watching Heroes of Might and Magic streams, I had the idea to create a functional damage calculator that would allow for a more accurate assessment of one's strength before tackling a particular guard. I heard that such programs already exist, but the samples I found were, to put it mildly, not impressive, which gave me additional motivation to bring the idea to life.
The calculations take into account the secondary skills of heroes, spells cast on units, hero specialization (by units, by secondary skills, by spells), unit features (for example, bears or unit hatred for each other), and so on – in short, practically any factors that potentially affect damage in battle.
Here's what it looks like:

Testing was conducted on the Heroes of Might and Magic SOD version. The only rare error that occasionally occurs in the calculations is incorrect rounding (a peculiarity of the game) and is expressed in a difference between the actual and calculated damage per unit. We will think about how to overcome this :)
Here is the link to the program: https://dl.dropbox.com/u/1446115/H3Calc.zip
The source code is on GitHub: https://github.com/nickynick/H3Calc
To run the program, you need version 4 of the .NET Framework. Many people probably already have it installed, but you can download it here: http://www.microsoft.com/en-US/download/details.aspx?id=17851
Any suggestions and indications of inaccuracies in the calculations are welcome. :)
While watching Heroes of Might and Magic streams, I had the idea to create a functional damage calculator that would allow for a more accurate assessment of one's strength before tackling a particular guard. I heard that such programs already exist, but the samples I found were, to put it mildly, not impressive, which gave me additional motivation to bring the idea to life.
The calculations take into account the secondary skills of heroes, spells cast on units, hero specialization (by units, by secondary skills, by spells), unit features (for example, bears or unit hatred for each other), and so on – in short, practically any factors that potentially affect damage in battle.
Here's what it looks like:

Testing was conducted on the Heroes of Might and Magic SOD version. The only rare error that occasionally occurs in the calculations is incorrect rounding (a peculiarity of the game) and is expressed in a difference between the actual and calculated damage per unit. We will think about how to overcome this :)
Here is the link to the program: https://dl.dropbox.com/u/1446115/H3Calc.zip
The source code is on GitHub: https://github.com/nickynick/H3Calc
To run the program, you need version 4 of the .NET Framework. Many people probably already have it installed, but you can download it here: http://www.microsoft.com/en-US/download/details.aspx?id=17851
Any suggestions and indications of inaccuracies in the calculations are welcome. :)