From dba49be1e315ee240a64fa5aee3443c2d53f244b Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 30 Mar 2024 20:47:08 -0700 Subject: [PATCH] add name for 6xB4x4A --- src/CommandFormats.hh | 6 +++--- src/Episode3/PlayerState.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CommandFormats.hh b/src/CommandFormats.hh index 4200960e..d24213d0 100644 --- a/src/CommandFormats.hh +++ b/src/CommandFormats.hh @@ -6992,12 +6992,12 @@ struct G_CardCounts_Ep3_CAx49 { parray card_id_to_count; } __packed__; -// 6xB4x4A: Unknown +// 6xB4x4A: Add to set card log // This command is not valid on Episode 3 Trial Edition. // TODO: Document this from Episode 3 client/server disassembly -struct G_Unknown_Ep3_6xB4x4A { - G_CardBattleCommandHeader header = {0xB4, sizeof(G_Unknown_Ep3_6xB4x4A) / 4, 0, 0x4A, 0, 0, 0}; +struct G_AddToSetCardlog_Ep3_6xB4x4A { + G_CardBattleCommandHeader header = {0xB4, sizeof(G_AddToSetCardlog_Ep3_6xB4x4A) / 4, 0, 0x4A, 0, 0, 0}; // Note: entry_count appears not to be bounds-checked; presumably the server // could send up to 0xFF entries, but those after the 8th would not be // byteswapped before the client handles them. diff --git a/src/Episode3/PlayerState.cc b/src/Episode3/PlayerState.cc index 25b3efb1..7f46f5bb 100644 --- a/src/Episode3/PlayerState.cc +++ b/src/Episode3/PlayerState.cc @@ -1415,7 +1415,7 @@ bool PlayerState::set_card_from_hand( s->send_6xB4x05(); if (!is_nte) { - G_Unknown_Ep3_6xB4x4A cmd; + G_AddToSetCardlog_Ep3_6xB4x4A cmd; cmd.card_refs.clear(0xFFFF); cmd.card_refs[0] = card_ref; cmd.client_id = this->client_id; @@ -1782,7 +1782,7 @@ bool PlayerState::set_action_cards_for_action_state(const ActionState& pa) { card->loc.direction = pa.facing_direction; log.debug("set facing direction to %s", name_for_enum(card->loc.direction)); - G_Unknown_Ep3_6xB4x4A cmd; + G_AddToSetCardlog_Ep3_6xB4x4A cmd; cmd.card_refs.clear(0xFFFF); cmd.client_id = this->client_id; cmd.round_num = s->get_round_num(); @@ -1842,7 +1842,7 @@ bool PlayerState::set_action_cards_for_action_state(const ActionState& pa) { } } if (!is_nte) { - G_Unknown_Ep3_6xB4x4A cmd; + G_AddToSetCardlog_Ep3_6xB4x4A cmd; cmd.card_refs.clear(0xFFFF); cmd.client_id = this->client_id; cmd.round_num = s->get_round_num();