feat(net)!: client on server-run fights, websocket lobby, server economy (P1-5, P1-6, P1-7, P2-3, P2-4)

- net.js: REST + one WebSocket with reconnect; single-flight refresh shared across tabs; ?slot=N
- lobby.js / netfight.js: server owns presence, challenges and the fight; client shows snapshots
- game.js: every workshop change goes through RC.Eco via act() (server-checked online);
  results, rewards and achievements come from the server (match.end)
- ranking/live/cloudsave on the new REST endpoints; online tournament removed until P2-6

BREAKING CHANGE: needs the new server (protocol v1); old online saves are not migrated.
This commit is contained in:
Benjamin Oezcan
2026-11-19 02:09:07 +01:00
parent 4bd85f68bf
commit 85a19ba242
13 changed files with 494 additions and 798 deletions

View File

@@ -817,6 +817,8 @@
<script src="ltourney.js"></script>
<script src="tourney.js"></script>
<script src="robot.js"></script>
<script src="eco.js"></script>
<script src="protocol.js"></script>
<script src="combat.js"></script>
<script src="ai.js"></script>
<script src="profiles.js"></script>
@@ -828,7 +830,6 @@
<script src="looks.js"></script>
<script src="render3d.js"></script>
<script src="netfight.js"></script>
<script src="netourney.js"></script>
<script src="shop.js"></script>
<script src="painter.js"></script>
<script src="uicheck.js"></script>