Phase 4: close loot/refund leaks, landing-site garrisons, speed-scaled shipping, update/offsite tooling, broad e2e
Built: - Economy: raid loot capped to the room the raiders have at home (rest stays with the victim, "lootLeft" in the report); trade escrow reserves its room so refunds always fit; trade accept refuses with no_room_for_goods when the goods would not fit. Loot destroyed per 30-day run 31-61k -> ~1k, refunds clipped ~27k -> 0 (docs/BALANCE.md, 3 seeds). - End game: members of the holding alliance garrison landing sites (migration 005_site_garrison.sql), garrison counts in site defence, 72 h capture shield, withdraw route, POP view lists garrisoned units. Shipping capacity scales with world speed (3x world: winner 76-98 -> ~30-36 days after sites open). Bot runs show real contests (84-194 attacks on held sites at 1x). - Ops: deploy/update.sh (backup, stop, ff-merge, npm ci --ignore-scripts, health check, rollback), deploy/upstream-offsite (rsync only), admin end-world snapshots results, EPIPE fix, docs/workflows/ filled in. - e2e 62 -> 163 checks: units, raids/reports, alliance+messages, trade, end game, nb, PWA, reconnect, slow polling fallback (opt-in). Two app bugs found: message push ignored, "New" button stayed English. Tested: npm test 274/274, openapi check, npm run e2e 163/163 (137 s), bot runs 50x30d seeds 1-3 and 140-day/60-day speed-3 end-game runs INVARIANTS OK, adversarial review pass (findings fixed or documented). NOT tested: update.sh on a real box (systemd, real npm, runuser; stubs only, shellcheck not installed), garrison card/loot text on a phone, Node 22.13, humans. Known leaks left open and documented (BALANCE S6): loot/shipments can still overflow when stock arrives in flight, bounced backbone shipments lose overflow (reported to the sender). Garrison numbers (heldDefenceMult 2, shield 72 h) are first guesses from 2 seeds. Not claimed: balanced. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q2MJaQ5LXAHzGnTDgceT14
This commit is contained in:
parent
9104480463
commit
3c23c51902
92 changed files with 4887 additions and 300 deletions
|
|
@ -219,6 +219,8 @@
|
|||
|
||||
// Resource transport between POPs (trade is built on it): `links` concurrent transports = Internet exchange level.
|
||||
// capacityPerLink was 500; 1000 since docs/BALANCE.md B2 (the end game was shipping-limited: 21.6 M units in 500-unit trips).
|
||||
// It is the capacity at world speed 1: the real capacity is rules.transportCapacity(speed) = capacityPerLink x speed (BALANCE.md B7), because
|
||||
// trips are per sitting, not per hour. Never read this constant directly in the client or in a command.
|
||||
const TRANSPORT = { building: 'internet_exchange', speed: 12, capacityPerLink: 1000 };
|
||||
|
||||
// Which unit roles may go on which movement type.
|
||||
|
|
@ -261,7 +263,10 @@
|
|||
graceDays: 2, // after level maxLevel is reached the world ends this long after (divided by world speed)
|
||||
siteRingMin: 0.35, siteRingMax: 0.8, // landing sites sit between these fractions of the map radius
|
||||
siteMinSpacing: 6, // tiles between two sites
|
||||
defenceMult: 12, // incumbent site defence x this = the heavy defence of a landing site
|
||||
defenceMult: 12, // incumbent site defence x this = the heavy defence of a landing site that NOBODY holds (the opening scramble)
|
||||
captureShieldHours: 72, // a site that has just changed hands cannot be attacked for this long (world hours, / speed): time for its new holders to garrison it (BALANCE.md E6: 24 h let sites flip every few hours)
|
||||
heldDefenceMult: 2, // a site HELD by an alliance: its static defence is incumbent defence x this (x the per-level bonus); units its members
|
||||
// station there (garrison, docs/DECISIONS.md E6) count on top, so a held site is as strong as its garrison
|
||||
defencePerLevel: 0.03, // + 3% per built Backbone node level (the node is a bigger target)
|
||||
scanStrength: 40, // a landing site counts as this many scanners when scanned
|
||||
maxLevel: 100, // = BUILDINGS.backbone_node.maxLevel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue