fix meseta transaction command

This commit is contained in:
Martin Michelsen
2023-08-31 09:37:12 -07:00
parent 02b0bf622c
commit ee7c574fdf
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ Tournaments work differently than they did on Sega's servers. Tournaments can be
These tournament semantics mean that there can be multiple matches in the same tournament in play simultaneously, and not all matches in a round must be complete before the next round can begin - only the matches preceding each individual match must be complete for that match to be playable.
Because newserv gives all players 1000000 meseta, there is no reward for winning a tournament. This may change in the future.
Because newserv gives all players 1000000 meseta by default, there is no reward for winning a tournament. This may change in the future.
Episode 3 state and game data is stored in the system/ep3 directory. The files in there are:
* card-definitions.mnr: Compressed card definition list, sent to Episode 3 clients at connect time. Card stats and abilities can be changed by editing this file.
+3
View File
@@ -174,3 +174,6 @@ TODO: Figure out more debug message conditionals (vars/functions) and add them h
(Ep3 USA) Replace Options menu with debug menu
04149E70 38600019
(Ep3 USA) Jukebox is free
0430D1DC 48000024
+1 -1
View File
@@ -6393,7 +6393,7 @@ struct G_ServerVersionStrings_GC_Ep3_6xB4x46 {
struct G_Unknown_GC_Ep3_6xB5x47 {
G_CardBattleCommandHeader header = {0xB5, sizeof(G_Unknown_GC_Ep3_6xB5x47) / 4, 0, 0x47, 0, 0, 0};
// Note: This command uses header_b1, which must be < 12.
le_uint32_t unknown_a1 = 0;
le_uint32_t clv = 0;
} __packed__;
// 6xB3x48 / CAx48: End turn
+3 -2
View File
@@ -884,11 +884,12 @@ static void on_B1(shared_ptr<ServerState> s, shared_ptr<Client> c,
}
}
static void on_BA_Ep3(shared_ptr<ServerState>,
static void on_BA_Ep3(shared_ptr<ServerState> s,
shared_ptr<Client> c, uint16_t command, uint32_t, const string& data) {
const auto& in_cmd = check_size_t<C_Meseta_GC_Ep3_BA>(data);
S_Meseta_GC_Ep3_BA out_cmd = {1000000, 1000000, in_cmd.request_token};
uint32_t meseta = s->ep3_infinite_meseta ? 1000000 : 0;
S_Meseta_GC_Ep3_BA out_cmd = {meseta, meseta, in_cmd.request_token};
send_command(c, command, 0x03, &out_cmd, sizeof(out_cmd));
}