Ensure that your Cataphracts are not easily lost against Looters in Auto Resolve (Send troop). This mod change Auto Resolve to simulates each individual's HP and damage as in a real battle.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Removed hero protection to prevent prolonged battles
Version 1.7.0.3
Fixed an exception when calculating armor and weapon bonuses
Version 1.7.0.2
Added exceptions handling to prevent random crashes
Version 1.6.5.3
Improved performance with store HP between simulation round
Fixed possible crash when enter ongoing battle
Implement troop number increasing check between round
Version 1.6.5.2
Fixed crash when starting new campaign again without restarting
Version 1.6.5.1
Fixed endless AI battle by storing HP average between rounds
Version 1.6.5.0
Added option to apply/not apply mods to AI battles
Code optimization
Version 1.6.4.5
Expanded Debug option
Fixed possible issue where the battle did not end
Changed Option expression.
Version 1.6.4.4
Implemented MCM(optional)
Removed power value change to improve compatibility.
Added new damage model where increase or decrease damage based on armor and weapons.
Version 1.6.4.3
Fixed error on get hp
Version 1.6.4.2
fixed message spam
added debug option in config
Version 1.6.4.1
First release
Overview In Auto Resolve with vanilla , each unit lives or dies according to an RNG calculation, where the damage is determined based on the tier of each unit, and the higher the damage, the higher the chance of death. In other words, even if the damage a Looter does to some elite unit is infinitesimally small, there is still a few percent chance of death. This mod replaces this calculation and simulates the HP of each individual troop to prevent elite troops from dying too easily. This mod also makes the damage dealt go up or down based on troop's armor and weapon type, not just the their tier.
In AutoResolve(incl. AI vs AI battle) with the mod, HitPoint of each troop is stored individually, and then the damage is subtracted from the stored HP of each troop, and when a troop's HP falls below zero, it is considered wounded or dead.
The damage a troop takes is reduced by the armor value of the troop's equipment.
If the unit is equipped with a shield, the armor value used to reduce damage receives a bonus.
The damage dealt by a troop receives a bonus based on the type of weapon equipped by the attacker and the type of victim.
Two-handed troops receive a bonus to damage when attacking unmounted(Including cavalry during siege) troops.
Ranged troops receive a bonus to damage when attacking troops without shields.
Polearm troops receive a bonus to damage when attacking mounted troops.
Known Issue - Mods that change HitPoints of heroes and soldiers, or change armor stats, may cause battles between AI last longer. If battles between AI last for a very long time, try increase Battle Speed from MCM options. (Also if you think that you only need to apply mod to your party's AutoResolve, uncheck Apply mod for AI battle from MCM options.) - If you start new campaign again without restarting, mod may not work properly. Please restart game before start new campaign.