Add real-time sales automation and automatic paid repairs

Add independent toggles for auto-accept in Deals and auto-pay repairs in
NOC. Save both settings and default them off for older or malformed saves.

Check sales every five wall-clock seconds regardless of game speed, and
show a small countdown on Accept buttons in Deals, city offers and fiber
broker offers. Only sign when all requirements, locations, equipment and
service capacity are ready. Trial the added demand before accepting it,
protect healthy existing customers and account for booked future events.

Use the existing paid repair action for affordable active incidents,
including slow router reboots. Skip expired incidents, removed equipment,
DDoS attacks and repairs that were already rushed. Pause both automations
with the game, hidden pages and open dialogs.

Translate the controls into all five supported languages and cover timing,
countdowns, capacity, budgets, repair payments, persistence, mobile controls
and trial rollback with deterministic tests. Chromium checks verify about
five real seconds at both 0.5x and 8x game speed and exercise the supplied
large save without changing the save file.
This commit is contained in:
logfro 2026-10-28 02:19:30 +01:00
parent ad94833ad1
commit abe92fe3b1
14 changed files with 388 additions and 6 deletions

View file

@ -12,6 +12,11 @@
"action_helpers.too_far_even_at_its_slowest":"Trop loin, même au débit le plus lent : ici une portée optique fait {span} km et l’optique va jusqu’à {max} km. Ajoute un site de régénération (Système de ligne).",
"action_helpers.unlocks_at_customer_level_n":"Se débloque au niveau client {n}.",
"actions.your_router_can_t_take_a":"<b>Ton routeur ne supporte pas de port {port}.</b><br>Mets-le à niveau dans l’onglet Infra.",
"automation.auto_accept_sales":"Ventes automatiques : {state}",
"automation.auto_pay_repairs":"Réparations payées auto : {state}",
"automation.next_auto_check":"Temps avant la prochaine vérification automatique des conditions.",
"automation.repairs_when_affordable":"Pendant le jeu, paie automatiquement les réparations urgentes disponibles si les fonds suffisent.",
"automation.sales_every_five_seconds":"Toutes les 5 secondes pendant le jeu, accepte uniquement les offres dont les conditions sont remplies et la capacité de service disponible.",
"badges.a_petabit_a_second":"Un pétabit par seconde",
"badges.a_secret_badge":"Un badge secret",
"badges.attend_a_conference":"Participe à une conférence.",