server: ygol.tag.extra=shared, FEATURE_TAG_SHARED_EXTRA 0x4000, protocol 11 (TICKET-433, v1.6.0)

The fourth server-read pair. TagDuel sets the option in opt, sends the sum of
both partners' Extra Decks in the opening MSG_START, runs the opening
RefreshExtra after start_duel, and adds QUERY_TAG_MEMBER in RefreshExtra. A Tag
room refuses a joiner without the bit; a Single room keeps it. Without the pair
every stream is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Opus 5.5 committed 2026-11-03 00:54:35 -07:00
1 parent 8a73120dbb
commit fa14698115
4 files changed
+33 -8

No files matched your search

+6
View File
@@ -800,6 +800,12 @@ int32_t SideBStartLp(int32_t fallback) { // YGOL life points per side
}
return fallback;
}
bool TagSharedExtra() { // YGOL tag shared extra
for(const auto& pair : setup_pairs)
if(pair == "ygol.tag.extra=shared")
return true;
return false;
}
size_t WriteSetupPairsBlock(unsigned char* dst) {
auto pdst = dst;
BufferIO::Write<uint16_t>(pdst, (uint16_t)setup_pairs.size());