add name for 6xB4x4A
This commit is contained in:
@@ -6992,12 +6992,12 @@ struct G_CardCounts_Ep3_CAx49 {
|
||||
parray<uint8_t, 0x2F0> 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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user