Deploy mission „Verlegung“
Issue #129, milestone next release (owner, 2026-11-12). Classic rules from
owiki.de („Stationieren“, read 2026-11-12). Before it, ships could only fly
attack, transport, spy and colonize; a transport to an own planet unloads and
the ships fly back.
- [E] In this release, built at once in parallel to #94 and #126 (owner, 2026-11-12).
- [E] Target: an own planet other than the start planet (owner, 2026-11-12).
- [E] Ships and cargo stay at the target; the cargo is unloaded like a transport, also above the storage limit (owner, 2026-11-12).
- [E] Fuel: the rounded-down half of the fuel the flight used is unloaded at the target too (classic since v0.68a; owner, 2026-11-12).
- [E] A recall during the flight brings ships and cargo back to the start planet (owner, 2026-11-12).
- [E] Display name „Verlegung“ in the grimdark style of #94 (owner,
2026-11-12); key
deploy. - [U] owiki.de also lists moons and the sensor phalanx; both do not exist in the game yet (moons #53).
Code, interface and tests
Section titled “Code, interface and tests”- Mission
deployinMISSION(src/core/catalog.ts, „Verlegung“) andMission(src/core/types.ts); the fleet form, the overview and the fleet list take it fromMISSION. Since #116 the mission is the foldersrc/features/missions/deploy/(rules.ts: target kindown, no return;texts.de.ts;arrive.server.ts), andMISSIONis insrc/core/missions.ts(see Design patterns, section 4). - Send (
src/server/game/fleet-actions.ts):checkTarget()(since #116 the target kindowninsendError()) lets a deploy fly only to an own planet; the start planet, an empty position, cargo, fuel and fleet slots are checked like for every mission, noob protection does not apply. The flight takes a fleet slot until it arrives. - Fuel:
Fleet.fuelholds the fuel burnt at the start (fuelFor()), for every mission. [E] (owner, 2026-11-12) Stored in the new columnfleets.fuel(migration 13, which rebuildsfleetsandfleet_shipsfor the new mission in the CHECK; fleets in flight keep everything and get 0, see SQLite storage). - Arrival (
src/server/game/arrival.ts; since #116onArriveinsrc/features/missions/deploy/arrive.server.ts):deploy()puts the ships and the cargo plusdeployFuel()(src/core/flight.ts, ⌊fuel / 2⌋) as Promethium on the target withland()(also above the storage limit, as a transport) and deletes the fleet; there is no return flight.fits(): when the target is gone or no longer the player’s, the fleet turns back with its cargo and the report „Flotte kehrt um“, like a transport to a vanished planet. - The gift of the admin’s „Endzeit“ (#161) is a Verlegung with
fleets.gift: from and to the home planet, no slot, no fuel, no recall, and its own arrival (see Endzeit). - Recall: unchanged; ships and cargo come back to the start planet with the usual return report, the burnt fuel is not refunded (no recall refunds fuel).
- [E] (owner, 2026-11-12) Refusal „Verlegung nur zu einem eigenen Planeten.“; the start planet keeps „Das ist dein eigener Planet.“ and an empty position „An dieser Position gibt es keinen Planeten.“
- [E] (owner, 2026-11-12) Report for the owner, in the style of the transport report: title „Verlegung erreicht [g:s:p]“, text „Deine Flotte bleibt auf ‹Planet› [g:s:p] und liefert ‹Ladung›, davon N übriger Treibstoff.“; push as a message, like the transport report.
- [E] (owner, 2026-11-12) Sternenkarte (galaxy view): a button „Verlegung“ next to „Wechseln · Versorgungsflug“ (#94 names) for another own planet; it opens the fleet form with the target and the mission. On a phone the player and action cells of the galaxy wrap, so the table no longer widens the page (it did with two own planets before). With the names of #94 the longest action, „Versorgungsflug“, still did, so on a phone the galaxy cells are also tighter and its small buttons have no letter spacing ([E], owner, 2026-11-12).
- [E] (owner, 2026-11-12) The fleet form shows „‹Ankunft› / –“ for a deploy, as there is no return; the fleet list has no own colour for a deploy (like colonization).
- Names (#94, Grimdark naming): „Verlegung“ is
already in the grimdark style and stays;
src/test/naming.tslists it inMISSIONSwith the classic „Stationieren“. The report shows the cargo withresLine()in the new resource names (Adamant, Psikristall, Promethium); the new texts say „Treibstoff“, no classic word. - Tests:
src/core/flight.test.ts(deployFuel),src/server/game/fleet.test.ts(target rules, cargo and fuel, slot until arrival, ships and cargo plus half the fuel at the target via the action, recall),arrival.test.ts(above the storage limit, odd fuel rounded down, target lost or foreign),src/server/db/store.test.ts,upgrades/migration-13.test.ts(fleets in flight survive,deployaccepted),upgrades/migration-9.test.ts(writes the fleet with the columns of version 8); E2E „a Verlegung moves part of a fleet with its cargo to an own colony for good (#129)“ and the phone variant from the galaxy ine2e/game.spec.ts(e2e/seed.tsoptionlandFleet).