Anyone know what determines how much defense reduction bombardment ACTUALLY causes?
I have a siege ram (reduces city defenses by 20% according to hover text) that only does 4% damage. More annoyingly (since it crashes my entire strategy) I have a stack of 10 ballistas (reduce defenses by 5%) which perform a 0% reduction (even if the entire stack goes, which presumably is because that just applies them individually in sequence and it's rounding down to 0)
Edit - nvm - cities also have bombard defense, and the rounding in these calculations just outright sucks. It's sticky-tape, but I have applied a round-to-nearest instead of round-down which will help MOST cases, but this code could do with some more radical rework - it gets really bad on cities with very high defense and high bombardment defense. Basically a city with 200% total defense and 70% bombard defense will require a bombard unit with at least 8% basic reduction to achieve any reduction at all (and stacks all attacking make no difference). The rounding fix I'm pushing for now will make units with 5%+ do something, but the issue is that it stores damage as a PERCENTAGE of the total defense (so if you have a defense multiplier the damage is actually stored in increments greater than 1% in displayed terms) and cannot change it by less than 1% of the total. Sometime I'll change this to operate in hundredths or something.
I have a siege ram (reduces city defenses by 20% according to hover text) that only does 4% damage. More annoyingly (since it crashes my entire strategy) I have a stack of 10 ballistas (reduce defenses by 5%) which perform a 0% reduction (even if the entire stack goes, which presumably is because that just applies them individually in sequence and it's rounding down to 0)
Edit - nvm - cities also have bombard defense, and the rounding in these calculations just outright sucks. It's sticky-tape, but I have applied a round-to-nearest instead of round-down which will help MOST cases, but this code could do with some more radical rework - it gets really bad on cities with very high defense and high bombardment defense. Basically a city with 200% total defense and 70% bombard defense will require a bombard unit with at least 8% basic reduction to achieve any reduction at all (and stacks all attacking make no difference). The rounding fix I'm pushing for now will make units with 5%+ do something, but the issue is that it stores damage as a PERCENTAGE of the total defense (so if you have a defense multiplier the damage is actually stored in increments greater than 1% in displayed terms) and cannot change it by less than 1% of the total. Sometime I'll change this to operate in hundredths or something.