Lua for enhanced flank attacks

Martinov

Chieftain
Joined
May 9, 2018
Messages
16
I'd like to implement an enhanced flank attack system, so that

* the attacker gets a 25% bonus if it has a friend adjacent to the defender (same as the current system)
* but gets 50% if they have two friends adjacent to the defender
* 75% if they have 4 friends adjacent
* 100% if they have 5 friends adjacent

One way to do it might be to have 4 flank promotions, with each 25% kicking in at a different threshold
or maybe there is a code routine which evaluates the current combat situation which i could modify?

Any advice gratefully received!
 
https://forums.civfanatics.com/threads/flanking-and-flanking-bonuses-explained.566280/
OK, great, it appears from this thread flanking bonus calculation already works along the lines of, more units, better.
https://forums.civfanatics.com/threads/flanking-and-flanking-bonuses-explained.566280/
https://forums.civfanatics.com/threads/flanking-and-flanking-bonuses-explained.566280/

I just assumed it only kicked in with the promotion, but in fact the promotion yields a fairly minor improvement on normal flanking bonuses.
 
Back
Top Bottom