What is the sequence of the battle calculation phases?

Discuss anything related to warbarons.

What is the sequence of the battle calculation phases?

Postby hungrytales » Fri Mar 23, 2012 11:08 am

I posted this question in another thread, but as I didn't get an answer there (it could be seen as an unnecessary revival of the old and settled discussion) I decided I'll do better phrasing it here.

So, what is the actual sequence of battle calculations? Is it something like the order posted in that other thread by LichKing:

1. Base strength (blessing included)
2. Negate Aura and Heroism (reduce F/M/Ch/Lead. accordingly)
3. Stack Bonus with caps
[are those still -25,30?] added to base strength
4. apply min/max unit strength cap (5,75)
5. add wall bonus
6. add swarm/terrain/anti-air
7. apply min/max unit strength cap (5,75) again.
8. apply boat cap, if on boat


or somewhat different? It looks good to me. Apart maybe from grouping anti-air with swarm and terrain whereas it actually needs (like the Sandworm's no-wall ability) a further, seperate phase. There's also the Unicorn's negate terrain ability to remember.

C'mon guys, I'd really appreciate the answer.
hungrytales
 
Posts: 48
Joined: Sun Sep 25, 2011 1:25 pm

Re: What is the sequence of the battle calculation phases?

Postby Fordus » Fri Mar 23, 2012 3:49 pm

What does it matter? As long as all bonuses are additive, units will have same final strenght regardeless of the order...

Of course if there is bugs then it would require some debugging.
Fordus
 
Posts: 4
Joined: Sat Mar 17, 2012 2:55 pm

Re: What is the sequence of the battle calculation phases?

Postby hungrytales » Fri Mar 23, 2012 5:44 pm

Of course, it matters, when you take caps into account. Say, if you first apply cap to leadership/chaos and then negate, it's not the same story as the opposite, right? There's whole 8-screens-of-ranting-worth thread on the subject and you say it doesn't matter... :)
Last edited by hungrytales on Sat Mar 24, 2012 3:52 pm, edited 1 time in total.
hungrytales
 
Posts: 48
Joined: Sun Sep 25, 2011 1:25 pm

Re: What is the sequence of the battle calculation phases?

Postby kenc80 » Fri Mar 23, 2012 6:38 pm

Fordus, yes it definitely matters where everything is applied. We did have a big argument about this a couple of months ago, its still in the archives...a good read if you want to educate up on the topic.
kenc80
 
Posts: 344
Joined: Wed Mar 10, 2010 9:16 pm
Location: South Carolina, USA


Return to Game discussion

Who is online

Users browsing this forum: No registered users and 12 guests

cron
Not able to open ./cache/data_global.php