Substitution plans
โ๏ธ You cannot make in-match substitutions live (matches are simulated, not played in real time), so the substitution plan is how you delegate substitution decisions to the engine. A substitution plan is a list of conditional rules that the engine evaluates at preset checkpoints (typically 55', 65', 75' and 85'). Each rule says "if X then sub out player A for player B". X can be a condition threshold (player's condition below 60%), a scoreline (drawing or losing), a minute, a card status (yellow-carded player at risk), or a combination.
Plans are stored per save in club_tactics.substitution_plan and persist across matches. The engine respects plan order โ first matching rule wins. If no rule fires, no substitution is made; you can still finish a match without using all three subs. Conversely, a plan with too many triggers can burn through your bench by 70' and leave you exposed for the closing stages. The art is sequencing โ protect tired key players first, manage scoreline second, deploy fresh attackers last.
