Bombarding defenses

Koshling

Vorlon
Joined
Apr 11, 2011
Messages
9,254
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 agree about the rework in V30, but I have another question. Is it possible to see what a city's Bombard defense is somewhere? It doesn't seem to be in the hover text or City Screen as far as I can tell.
 
I agree about the rework in V30, but I have another question. Is it possible to see what a city's Bombard defense is somewhere? It doesn't seem to be in the hover text or City Screen as far as I can tell.

Not that I am aware of.
 
If I'm not mistaken, I may have added a display for that in the city defense help hover (hover over the rook in the top right on the city screen) a cycle or two ago. I know I added the espionage defense. If I haven't added the Bombard Resistance I probably should.

I've never fully evaluated the bombardment calculation process so I'm thankful you have Koshling, as that was bothering me too that it was so translucent... not only to the player but to us modders who would manipulate defensive values and bombardment values in a vacuum of full awareness. I'd planned to eventually research it in much greater depth myself at some point. Does sound like you've found a good area to smooth out some.
 
Back
Top Bottom