devolution
Prince
All,
Many of you may be familiar with a rather popular modcomp for Civ4 BTS: PieceOfMind's Advanced Combat Odds https://forums.civfanatics.com/threads/pieceofminds-advanced-combat-odds.310415/
This mod gives a graphical breakdown of Victory, Retreat and Defeats odds as well as other helpful info like expected HP loss etc.
When I first started modding RaR, this was one of the first modcomps that I considered merging.
However, it mas made complicated by a unique feature, "limited combat rounds" which was introduced several versions ago. This is essentially an upper cap on combat rounds which is currently hard-coded to equal 7. Unfortunately, like I have alluded to in the bug thread, the odds calculation was not updated and it kept assuming that combat would be carried out until either the attacker or the defender died. This is clearly not correct, since a third outcomes is possible, a draw in case the combat round limit has been reached.
To fix this I have corrected the existing function that calculates the victory odds and added another that estimates the odds of a draw. In addition I have selectively chosen the parts of ACO that I deem suitable for inclusion in RaR. The preliminary result is demonstrated in the attached image.
Quick Summary:
- Fixes the wrong calculation and display of combat odds issue.
- Displays a graphical representation of combat odds, including the odds of a draw (shown in yellow)
Advanced Combat Odds for RaR Preview:
Many of you may be familiar with a rather popular modcomp for Civ4 BTS: PieceOfMind's Advanced Combat Odds https://forums.civfanatics.com/threads/pieceofminds-advanced-combat-odds.310415/
This mod gives a graphical breakdown of Victory, Retreat and Defeats odds as well as other helpful info like expected HP loss etc.
When I first started modding RaR, this was one of the first modcomps that I considered merging.
However, it mas made complicated by a unique feature, "limited combat rounds" which was introduced several versions ago. This is essentially an upper cap on combat rounds which is currently hard-coded to equal 7. Unfortunately, like I have alluded to in the bug thread, the odds calculation was not updated and it kept assuming that combat would be carried out until either the attacker or the defender died. This is clearly not correct, since a third outcomes is possible, a draw in case the combat round limit has been reached.
To fix this I have corrected the existing function that calculates the victory odds and added another that estimates the odds of a draw. In addition I have selectively chosen the parts of ACO that I deem suitable for inclusion in RaR. The preliminary result is demonstrated in the attached image.
Quick Summary:
- Fixes the wrong calculation and display of combat odds issue.
- Displays a graphical representation of combat odds, including the odds of a draw (shown in yellow)
Advanced Combat Odds for RaR Preview: