mirror of
https://github.com/diangogav/EDOpro-server-ts
synced 2026-08-24 00:23:05 -04:00
Edison joins tcg and jtp as an accepted matchmaking format. Everything it needs already existed on its own — the rule set, the ban list, the bots — so this only wires it into the queue. The join string rides CTOS_JOIN_GAME's fixed utf16[20] pass field as "<token>,mm<5>#<7>", which caps a format's room token at 3 characters. "edison" (6) does not fit. Single duels reuse the existing "ed" alias; ranked human pairs play best-of-3, so "edm" is added to formatRuleMappings. It spreads the shared edisonRuleSet() payload, so the MATCH variant can never drift from "edison"/"ed" — one rule set, three tokens. Bot fallback picks from a new edison roster wired to the three Edison bots already shipped in the botlist. They are hidden there, kept out of the random pool, but stay reachable by explicit name — which is exactly how the roster requests them. Those rooms stay best-of-1: windbot cannot side deck. The existing it.each(MATCHMAKING_FORMATS) wire-budget guards pick edison up automatically and prove both tokens fit the pass field. |
||
|---|---|---|
| .. | ||
| bootstrap | ||
| config | ||
| edopro | ||
| evolution-types@6c63181a66 | ||
| http-server | ||
| shared | ||
| socket-server | ||
| test-support | ||
| utils | ||
| web-socket-server | ||
| ygopro | ||
| index.ts | ||