An idea just came to me, and I haven't thought it out at all yet. I want to capture it before I forget it.
Show which attacker bonuses are subtracted from the defender's strength. For example, CR1, Cover when attacking Archery units, etc.
I was thinking that some defender bonuses apply to the attacker's strength, but upon reflection I don't think that is true. If it is, show those as well.
This should be a simple matter of appending a string to the line items at the bottom of the hover. For a C1 CR1 Cover Swordsman against a C1 Archer:
A different option would be to simply show them as minuses for the defender. This would require looping over the bonuses twice if you wanted them to remain grouped by att/def. Or you could leave them in-place:
- +10% Strength
- +25% vs. Archery Units [defender]
- +30% from City (Unit Ability) [defender]
- +10% Strength
- ...
Another minor enhancement would be to show the total % applied to each strength:
- +10% Strength
- -25% vs. Archery Units
- -30% from City (Unit Ability)
- +10% Strength
- ...
6.60 [+10%] vs. 7.35 [+145%]
Some nice ideas. I'll give them some thought.
One comment regarding the stating whether the bonus applies to attacker or defender. It's literally always the defender except attacker strength bonuses. In other words, it would be easier (in terms of work to do) to simply label the +10% strength (for example) as +10% strength [Attacker] and all others are assumed to be on the defender.
*****
phungus,
Thanks for doing that! Just downloading it now.EDIT.. done