From 996509531c3fd74e0edadf798d114900e6eb4daf Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 29 Oct 2024 06:20:49 -0700 Subject: [PATCH] fix enemy_type check in ItemCreator --- src/ItemCreator.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ItemCreator.cc b/src/ItemCreator.cc index 27e05d71..d2786671 100644 --- a/src/ItemCreator.cc +++ b/src/ItemCreator.cc @@ -212,7 +212,9 @@ ItemCreator::DropResult ItemCreator::on_box_item_drop_with_area_norm(uint8_t are } ItemCreator::DropResult ItemCreator::on_monster_item_drop_with_area_norm(uint32_t enemy_type, uint8_t area_norm) { - if (enemy_type > 0x58) { + // Note: THe original GC implementation uses (enemy_type > 0x58) here; we + // extend it to the full array size for BB + if (enemy_type >= 0x64) { this->log.warning("Invalid enemy type: %" PRIX32, enemy_type); return DropResult(); }