From 43d7815165dac0bafe98b6552f2b9267e048d534 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 12 Nov 2023 00:00:31 -0800 Subject: [PATCH] fix some item-related debug messages --- src/ItemCreator.cc | 3 ++- src/ReceiveSubcommands.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ItemCreator.cc b/src/ItemCreator.cc index 27ecca28..f95a031c 100644 --- a/src/ItemCreator.cc +++ b/src/ItemCreator.cc @@ -128,7 +128,8 @@ ItemData ItemCreator::on_monster_item_drop(uint16_t entity_id, uint32_t enemy_ty } ItemData ItemCreator::on_box_item_drop_with_norm_area(uint8_t area_norm) { - this->log.info("Box drop checks; random state: %08" PRIX32 " %08" PRIX32, this->random_crypt.seed(), this->random_crypt.absolute_offset()); + this->log.info("Box drop checks for area_norm %02hhX; random state: %08" PRIX32 " %08" PRIX32, + area_norm, this->random_crypt.seed(), this->random_crypt.absolute_offset()); ItemData item = this->check_rare_specs_and_create_rare_box_item(area_norm); if (item.empty()) { uint8_t item_class = this->get_rand_from_weighted_tables_2d_vertical(this->pt->box_item_class_prob_table(), area_norm); diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index cfbf7c32..46194fbb 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -1462,7 +1462,7 @@ static void on_entity_drop_item_request(shared_ptr c, uint8_t command, u } else { item.id = l->generate_item_id(0xFF); string name = s->item_name_index->describe_item(l->base_version, item); - l->log.info("Box %04hX (area %02hX) created item %s", cmd.entity_id.load(), cmd.effective_area, name.c_str()); + l->log.info("Entity %04hX (area %02hX) created item %s", cmd.entity_id.load(), cmd.effective_area, name.c_str()); l->log.info("Creating item %08" PRIX32 " at %02hhX:%g,%g", item.id.load(), cmd.area, cmd.x.load(), cmd.z.load()); if (l->check_flag(Lobby::Flag::ITEM_TRACKING_ENABLED)) { l->add_item(item, cmd.area, cmd.x, cmd.z);