hide section ID for empty persistent games

This commit is contained in:
Martin Michelsen
2025-10-11 17:35:48 -07:00
parent 41026fbd93
commit 3c32a66064
7 changed files with 53 additions and 39 deletions
+5 -1
View File
@@ -4377,7 +4377,11 @@ static asio::awaitable<void> on_identify_item_bb(shared_ptr<Client> c, Subcomman
p->disp.stats.meseta -= 100;
c->bb_identify_result = p->inventory.items[x].data;
c->bb_identify_result.data1[4] &= 0x7F;
l->item_creator->apply_tekker_deltas(c->bb_identify_result, l->effective_section_id());
uint8_t effective_section_id = l->effective_section_id();
if (effective_section_id >= 10) {
throw std::runtime_error("effective section ID is not valid");
}
l->item_creator->apply_tekker_deltas(c->bb_identify_result, effective_section_id);
send_item_identify_result(c);
} else {