Page 1 of 1

Cohesion test (from shooting)

Posted: Mon Aug 24, 2020 7:24 pm
by Athos1660
Certainly an already asked question. Sorry if so.

Manual says (p. 42) :
Troops take a Cohesion Test if they suffer significant total shooting casualties (> 5%) in a turn
(...)
Unit suffered heavy total shooting casualties this turn (> 8%) : -1 modifier
Is it 5% (or 8%) of the :
- theoretical number of men ?
- actual total number of men of the unit at the start of the game ?
- or current number of men of the unit at a given turn ?

In the case of a P&S unit (500 men) that had 510 men at the start of the game and has already lost 110 men at turn 7, is it :
- 5% of 510 = 26 casualties ?
- 5% of 500 = 25 casualties ?
- 5% of 400 = 20 casualties ?


I looked at the code but did not get it.

Code: Select all

                            if (reason == 0) // Shooting
                                {
                                    Log("M State, Shooting morale damage this turn", morale_state, GetAttribArray(me, "MoraleDamageFromShooting", GetCurrentSide()));
                                    if (GetAttribArray(me, "MoraleDamageFromShooting", GetCurrentSide()) <= 500)
                                        {
                                            test = 0; // No test
                                        }
                                }

Re: Cohesion test (from shooting)

Posted: Tue Aug 25, 2020 7:47 am
by rbodleyscott
Athos1660 wrote: Mon Aug 24, 2020 7:24 pm Certainly an already asked question. Sorry if so.

Manual says (p. 42) :
Troops take a Cohesion Test if they suffer significant total shooting casualties (> 5%) in a turn
(...)
Unit suffered heavy total shooting casualties this turn (> 8%) : -1 modifier
Is it 5% (or 8%) of the :
- theoretical number of men ?
- actual total number of men of the unit at the start of the game ?
- or current number of men of the unit at a given turn ?

In the case of a P&S unit (500 men) that had 510 men at the start of the game and has already lost 110 men at turn 7, is it :
- 5% of 510 = 26 casualties ?
- 5% of 500 = 25 casualties ?
- 5% of 400 = 20 casualties ?


I looked at the code but did not get it.

Code: Select all

                            if (reason == 0) // Shooting
                                {
                                    Log("M State, Shooting morale damage this turn", morale_state, GetAttribArray(me, "MoraleDamageFromShooting", GetCurrentSide()));
                                    if (GetAttribArray(me, "MoraleDamageFromShooting", GetCurrentSide()) <= 500)
                                        {
                                            test = 0; // No test
                                        }
                                }
It is actually calculated from the "UnitSize" after randomised adjustment at the start of the game.

This is equivalent to calculating it from the actual total number of men of the unit at the start of the game.

However, in the case of very large (deep) units only the first (front) 900 "UnitSize" is taken into account.

A standard 480 man unit has 600 "UnitSize", but the ratio of men to "UnitSize" is not constant. It is higher in some of the largest units.

So in the case of your example it would be 25 casualties, but it might be harder for you to calculate for keils, early tercios etc. Personally I wouldn't bother trying.

Re: Cohesion test (from shooting)

Posted: Tue Aug 25, 2020 8:55 am
by Athos1660
Thank you very much for the answer, Richard.

Indeed I won’t bother making such calculations.

As a matter of fact, my main concerns were :
  • to have an approximate idea of when the CT is triggered depending on the shot unit
  • to know whether the number from which the 5 or 8 % were calculated was constant or decreasing. If they were calculated from the actual number of men who are still alive at the time of the shooting (400 in my example), the shooting unit would have more and more chance to cause CTs, as the enemy units lose more and more men over the course of the battle (assuming the shooting unit remained intact of course). This number is constant.
So your reply perfectly answered my questions.

Re: Cohesion test (from shooting)

Posted: Wed Nov 25, 2020 3:16 am
by ariebraxton
Worked also for me.
Arie

Re: Cohesion test (from shooting)

Posted: Wed Nov 25, 2020 6:01 pm
by Veles
This is actually really useful to know