Many thanks for the tip on the defines.
Question: "Armies whose morale collapses in the first 5 days and face more than double the amount of enemies will now be eliminated."
Where is this located, or is it hard coded?
What if I wanted, say, a morale collapse within 10 days and facing the same amount of enemies to eliminate the army?
The whole 'must be 2x' is hardcoded.
You could increase the number of days before an army is allowed to retreat by adding retreat_delay = X to base_values in static modifiers. For instance, adding retreat_delay = 5 would make battles last minimum 10 days, and destroy any armies facing twice the numbers whose morale collapses within 10 days.