From bf17ec0943e941cbbadc3b1c3a3a7ff4f7b5d9bf Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 8 Dec 2023 09:51:57 -0800 Subject: [PATCH] add unknown enemy type 0118 --- src/ItemCreator.cc | 1 - src/Map.cc | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ItemCreator.cc b/src/ItemCreator.cc index 7fe7fb26..3d64f43c 100644 --- a/src/ItemCreator.cc +++ b/src/ItemCreator.cc @@ -39,7 +39,6 @@ ItemCreator::ItemCreator( restrictions(restrictions), random_crypt(random_seed) { this->generate_unit_stars_tables(); - this->pt->print_enemy_table(stderr); } void ItemCreator::set_random_state(uint32_t seed, uint32_t absolute_offset) { diff --git a/src/Map.cc b/src/Map.cc index 1e27fd02..a829c411 100644 --- a/src/Map.cc +++ b/src/Map.cc @@ -109,8 +109,8 @@ Map::Enemy::Enemy(size_t source_index, uint8_t floor, EnemyType type) } string Map::Enemy::str() const { - return string_printf("[Map::Enemy source %zX %s flags=%02hhX last_hit_by_client_id=%hu]", - this->source_index, name_for_enum(this->type), this->state_flags, this->last_hit_by_client_id); + return string_printf("[Map::Enemy source %zX %s floor=%02hhX flags=%02hhX last_hit_by_client_id=%hu]", + this->source_index, name_for_enum(this->type), this->floor, this->state_flags, this->last_hit_by_client_id); } string Map::Object::str(shared_ptr name_index) const { @@ -585,6 +585,7 @@ void Map::add_enemy( case 0x00C6: // TBoss3VoloptMonitor case 0x00C7: // TBoss3VoloptHiraisin case 0x0100: + case 0x0118: add(EnemyType::UNKNOWN); static_game_data_log.warning( "(Entry %zu, offset %zX in file) Unknown enemy type %04hX",