Cohesion test (from shooting)

Byzantine Productions Pike and Shot is a deep strategy game set during the bloody conflict of the Thirty Years War.

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
Athos1660
Major-General - Elite Tiger I
Major-General - Elite Tiger I
Posts: 2682
Joined: Wed May 29, 2019 3:23 pm

Cohesion test (from shooting)

Post 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
                                        }
                                }
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28326
Joined: Sun Dec 04, 2005 6:25 pm

Re: Cohesion test (from shooting)

Post 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.
Richard Bodley Scott

Image
Athos1660
Major-General - Elite Tiger I
Major-General - Elite Tiger I
Posts: 2682
Joined: Wed May 29, 2019 3:23 pm

Re: Cohesion test (from shooting)

Post 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.
ariebraxton
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 1
Joined: Wed Nov 25, 2020 3:13 am

Re: Cohesion test (from shooting)

Post by ariebraxton »

Worked also for me.
Arie
Veles
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 88
Joined: Tue Oct 20, 2020 11:15 pm

Re: Cohesion test (from shooting)

Post by Veles »

This is actually really useful to know
Post Reply

Return to “Pike & Shot”