Phase 2: client military/social screens, WebSocket push, trade + endgame, review findings pending
Built: units/movements/reports/send/expansion screens, alliance/messages/rankings screens, ws client + server /ws push (docs/PROTOCOL.md), Internet exchange trade, backbone endgame + world end, shared reports, buildDone relative levels. Tested: npm test 175/175. Two adversarial reviews found issues (trade-leg recall exploit, __proto__ via validate.js, rankings DoS, static headers, ...): fixes follow in the next commit. NOT done: bots/balance, e2e suite, real-device checks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q2MJaQ5LXAHzGnTDgceT14
This commit is contained in:
parent
249818a7aa
commit
b18645dca1
87 changed files with 10201 additions and 71 deletions
|
|
@ -56,6 +56,13 @@ const CODES = {
|
|||
recall_expired: [409, 'The recall window (first 90 seconds) has passed.'],
|
||||
capacity_exceeded: [409, 'More than one transport link can carry.'],
|
||||
no_transport_link: [409, 'All transport links are busy (or there is no Internet exchange).'],
|
||||
// trade and end game
|
||||
trade_ratio: [409, 'The offered and the wanted amount may differ by at most 1:2.'],
|
||||
offer_closed: [409, 'That offer is not open any more.'],
|
||||
own_offer: [409, 'You cannot accept your own offer.'],
|
||||
trade_out_of_range: [409, 'That POP is too far from the offer (its max distance or your Internet exchange reach).'],
|
||||
world_ended: [409, 'This world has ended: it can still be read, but nothing can be changed.'],
|
||||
backbone_closed: [409, 'The backbone landing sites have not appeared yet.'],
|
||||
};
|
||||
|
||||
class GameError extends Error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue