Broken planes grounded + gradual repair (ISS-089, v0.45.0) #92

Merged
kamilkrzywda merged 1 commits from feat/broken-cannot-fly into master 2026-09-21 23:31:09 +02:00
Owner

Fixes #89

  • Broken planes (health 0) can no longer fly: dispatch returns 409 "the plane is broken (health 0) — repair it first" and the engine's auto-chain stops at a broken landing with the queue intact.
  • Repair no longer jumps straight to 100%: health climbs gradually over the repair duration, so the maintenance bar doubles as the progress indicator; the plane returns to service when it reaches full health.
  • REMOVED the now-unreachable ×1.5 broken-burn mechanic (a broken plane can never depart).
Fixes #89 - Broken planes (health 0) can no longer fly: dispatch returns 409 "the plane is broken (health 0) — repair it first" and the engine's auto-chain stops at a broken landing with the queue intact. - Repair no longer jumps straight to 100%: health climbs gradually over the repair duration, so the maintenance bar doubles as the progress indicator; the plane returns to service when it reaches full health. - REMOVED the now-unreachable ×1.5 broken-burn mechanic (a broken plane can never depart).
kamilkrzywda added 1 commit 2026-09-21 23:22:44 +02:00
Broken planes cannot fly; repair heals gradually (ISS-089)
CI / build + unit + e2e (pull_request) Successful in 8m22s
1401a2f6eb
- flyPlane 409s a broken plane (health <= 0) before any refuel math — fuel/cash untouched
- engine auto-chain skips chaining when a landing's wear breaks the plane (queue kept intact)
- finishRepairs heals along round(f x 100) each tick; flip to available at exactly 100 on gate pass
- repairPlane no longer jumps health to 100 — it starts the gradual heal
- REMOVED BROKEN_BURN_MULTIPLIER / conditionBurnMultiplier and all burn sites (unreachable now)
- OpenAPI + route comments reworded; unit tests reworked; e2e maintenance.spec.ts per issue
- v0.45.0
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-09-21 23:23:01 +02:00
kamilkrzywda merged commit 76f5b6f8ce into master 2026-09-21 23:31:09 +02:00
Sign in to join this conversation.