Problem with moral calculation

Post bug reports and ask for help with other issues here.
Post Reply
vonik
Posts: 262
Joined: Fri Apr 08, 2011 12:12 pm

Problem with moral calculation

Post by vonik »

I have tried to figure out how to best increase the moral of my units and failed .
The manual gives a formula : New moral = OldMoral/10x75% + (Strength - OldMoral/10x75%) x (Supply/10 x OldMoral/100) .

So now my 8 strength units has OldMoral around 50 and supply around 5 .
That gives then :
New Moral = (50/10 x 0.75) + (8 - 50/10 x 0.75)(5/10 x 50/100) ~ 4

Actually because the term (Supply/10 x OldMoral/100) is (almost) always (much) less than 1 , the moral should drop to 0 in a few turns regardless of any parameter .
So basically this formula is saying that moral is 0 for everybody all the time .

What happens in game is obviously not what I computed above so that can only mean that the formula in the manual is wrong .
What is the right formula then ?
And update the manual please too .
User avatar
sPzAbt653
Posts: 10158
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Problem with moral calculation

Post by sPzAbt653 »

So basically this formula is saying that moral is 0 for everybody all the time .
I break it down this way and don't agree that it is zero all the time.

50/10 x .75 + [10 - 50/10 x .75] x [7/10 x 50/10]

5 x .75 + [10 - 5 x .75] + [.7 + 5]

3.75 + [13.75] + [5.7]

= 23.2 [not zero] [;)]
vonik
Posts: 262
Joined: Fri Apr 08, 2011 12:12 pm

RE: Problem with moral calculation

Post by vonik »

ORIGINAL: sPzAbt653
So basically this formula is saying that moral is 0 for everybody all the time .
I break it down this way and don't agree that it is zero all the time.

50/10 x .75 + [10 - 50/10 x .75] x [7/10 x 50/10]

5 x .75 + [10 - 5 x .75] + [.7 + 5]

3.75 + [13.75] + [5.7]

= 23.2 [not zero] [;)]


That would be nice if it was not horribly wrong ;)

50/10 x .75 + [10 - 50/10 x .75] x [7/10 x 50/100]

5 x .75 + [10 - 5 x .75] x [.7 x 0.5]

3.75 + 6.25 x 0.35 ~ 6

And next turn it will be 0 for all practical purposes and stay at 0 forever (if the formula in the manual was right that is).





User avatar
sPzAbt653
Posts: 10158
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Problem with moral calculation

Post by sPzAbt653 »

Yeah that was pretty horrible. I think even my third line was wrong [&:]

Well, now I know I won't be put in charge of fixing it.

But I can agree with you that the manual is wrong, because I posted somewhere else about something similar a while back and from that experience I can confirm that it isn't zero [in the game].
User avatar
sPzAbt653
Posts: 10158
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Problem with moral calculation

Post by sPzAbt653 »

For the record, what it says in the Manual on pg.85 is on Line 2 of Post #1 above.
User avatar
Hubert Cater
Posts: 6098
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Problem with moral calculation

Post by Hubert Cater »

Apologies, there is a typo in the formula and it should read as the following:

New moral = (OldMoral/10 x 75% + (Strength - OldMoral/10 x 75%) x (Supply/10 x OldMoral/100)) * 10

Which in your example would put the new morale at around 48%


Perhaps this is simpler though:

New moral = OldMoral x 75% + (Strength x 10 - OldMoral x 75%) x (Supply/10 x OldMoral/100)

Post Reply

Return to “Tech Support”