refine many game command formats; $infhp no longer removes positive effects
This commit is contained in:
@@ -714,7 +714,7 @@ int32_t Card::move_to_location(const Location& loc) {
|
||||
uint8_t trap_type = s->overlay_state.tiles[loc.y][loc.x] & 0x0F;
|
||||
uint16_t trap_card_id = s->overlay_state.trap_card_ids_nte[trap_type];
|
||||
if (other_ps->replace_assist_card_by_id(trap_card_id)) {
|
||||
G_Unknown_Ep3_6xB4x2C cmd;
|
||||
G_EnqueueAnimation_Ep3_6xB4x2C cmd;
|
||||
cmd.change_type = 1;
|
||||
cmd.client_id = other_ps->client_id;
|
||||
cmd.unknown_a2[0] = trap_card_id;
|
||||
@@ -728,7 +728,7 @@ int32_t Card::move_to_location(const Location& loc) {
|
||||
for (size_t warp_end = 0; warp_end < 2; warp_end++) {
|
||||
if ((s->warp_positions[warp_type][warp_end][0] == this->loc.x) &&
|
||||
(s->warp_positions[warp_type][warp_end][1] == this->loc.y)) {
|
||||
G_Unknown_Ep3_6xB4x2C cmd;
|
||||
G_EnqueueAnimation_Ep3_6xB4x2C cmd;
|
||||
cmd.loc.x = this->loc.x;
|
||||
cmd.loc.y = this->loc.y;
|
||||
this->loc.x = s->warp_positions[warp_type][warp_end ^ 1][0];
|
||||
|
||||
@@ -613,7 +613,7 @@ void PlayerState::discard_and_redraw_hand() {
|
||||
}
|
||||
|
||||
if (!s->options.is_nte()) {
|
||||
G_Unknown_Ep3_6xB4x2C cmd;
|
||||
G_EnqueueAnimation_Ep3_6xB4x2C cmd;
|
||||
cmd.change_type = 3;
|
||||
cmd.client_id = this->client_id;
|
||||
cmd.card_refs.clear(0xFFFF);
|
||||
@@ -717,7 +717,7 @@ bool PlayerState::do_mulligan() {
|
||||
}
|
||||
|
||||
if (!s->options.is_nte()) {
|
||||
G_Unknown_Ep3_6xB4x2C cmd;
|
||||
G_EnqueueAnimation_Ep3_6xB4x2C cmd;
|
||||
cmd.change_type = 3;
|
||||
cmd.client_id = this->client_id;
|
||||
cmd.card_refs.clear(0xFFFF);
|
||||
|
||||
@@ -1157,7 +1157,7 @@ void Server::move_phase_after() {
|
||||
(abs(sc_card->loc.x - trap_x) < 2) &&
|
||||
(abs(sc_card->loc.y - trap_y) < 2) &&
|
||||
ps->replace_assist_card_by_id(trap_card_id)) {
|
||||
G_Unknown_Ep3_6xB4x2C cmd;
|
||||
G_EnqueueAnimation_Ep3_6xB4x2C cmd;
|
||||
cmd.change_type = 0x01;
|
||||
cmd.client_id = client_id;
|
||||
cmd.card_refs.clear(0xFFFF);
|
||||
|
||||
Reference in New Issue
Block a user