prompt context: announce kind byte, record 23 bytes, STOC 0x44 24 bytes (TICKET-451, v1.7.0)

u8 announce_kind after chain_link, set only while MSG_ANNOUNCE_NUMBER is
open: 1 when the script called Duel.AnnounceLevel (it passes playerid +
0x10000 to the unit), else 2 when the asking effect has CATEGORY_DICE and is
visible to the answering player, else 0. Contract, changelog, binding
PromptContext.AnnounceKind + AnnouncePlain / Level / Dice, codec 24 bytes,
probe: plain 0, AnnounceLevel 1, a dice effect's AnnounceNumber 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Opus 5.5 committed 2026-11-08 16:46:05 -07:00
1 parent 3f84b0b50b
commit 954fbfc65b
12 files changed
+70 -40

No files matched your search

+2 -2
View File
@@ -476,7 +476,7 @@ constexpr uint32_t FEATURE_TAG_SHARED_EXTRA = 0x4000;
// YGOL prompt context (proposal 55): which card and which effect asks (ygol_query_prompt_context), sent to the answering seat right
// before every relayed prompt but rock-paper-scissors; never to observers, never in a replay; a room does not refuse a joiner without it
constexpr uint32_t FEATURE_PROMPT_CONTEXT = 0x8000;
constexpr int PROMPT_CONTEXT_RECORD_SIZE = 22; // the ygol_query_prompt_context answer; the message adds the prompt's MSG id after it
constexpr int PROMPT_CONTEXT_RECORD_SIZE = 23; // the ygol_query_prompt_context answer; the message adds the prompt's MSG id after it
constexpr uint8_t TAG_PARTNER_CARDS_VERSION = 1;
// the one-use bootstrap secret of a replacement server: a host-string token parsed apart from the ygol.* pairs, never stored anywhere else
extern uint8_t bootstrap_secret[16];
@@ -672,7 +672,7 @@ inline bool IsFeatureMessage(unsigned char pktType) {
#define STOC_APPEARANCE 0x41 // uint16_t + CTOS_Appearance
#define STOC_DIALOGUE 0x42 // uint16_t + CTOS_Dialogue
#define STOC_SETUP_PAIRS 0x43 // uint16_t (0xff) + uint16_t count, then per pair uint16_t length + "key=value"
#define STOC_PROMPT_CONTEXT 0x44 // the 22-byte ygol_query_prompt_context record + uint8_t prompt MSG id, no sender stamp, to the answering seat only (YGOL prompt context)
#define STOC_PROMPT_CONTEXT 0x44 // the 23-byte ygol_query_prompt_context record + uint8_t prompt MSG id, no sender stamp, to the answering seat only (YGOL prompt context)
#define STOC_SEAT_PLAN 0x50 // uint16_t (0xff) + STOC_SeatPlan (YGOL host seats)
// YGOL rules restart: uint16_t (0xff) + the struct
#define STOC_ROOM_RESTARTING 0x54 // STOC_RoomRestarting, to each participant with its own seat and token