add ability to forbid specific quest flag writes

This commit is contained in:
Martin Michelsen
2023-12-18 21:58:39 -08:00
parent e3315822de
commit b7604eb643
11 changed files with 88 additions and 8 deletions
+5
View File
@@ -485,6 +485,11 @@ void Lobby::add_client(shared_ptr<Client> c, ssize_t required_client_id) {
// received. For this reason, we consume item IDs here only if the client is
// NTE or 11/2000.
this->assign_inventory_and_bank_item_ids(c, is_pre_v1(c->version()));
// On BB, we send artificial flag state to fix an Episode 2 bug where the
// CCA door lock state is overwritten by quests.
if (c->version() == Version::BB_V4) {
c->config.set_flag(Client::Flag::SHOULD_SEND_ARTIFICIAL_FLAG_STATE);
}
}
// If the lobby is recording a battle record, add the player join event