fix slime child count in challenge mode

This commit is contained in:
Martin Michelsen
2025-01-11 20:47:09 -08:00
parent 4d3595640a
commit 80dda2e1f9
+3 -2
View File
@@ -2041,8 +2041,9 @@ shared_ptr<SuperMap::Enemy> SuperMap::add_enemy_and_children(
if ((set_entry->num_children != 0) && (set_entry->num_children != 4)) {
this->log.warning("POFUILLY_SLIME has an unusual num_children (0x%hX)", set_entry->num_children.load());
}
default_num_children = -1; // Skip adding children (because we do it here)
for (size_t z = 0; z < 5; z++) {
default_num_children = -1; // Skip adding children later (because we do it here)
size_t num_children = set_entry->num_children ? set_entry->num_children.load() : 4;
for (size_t z = 0; z < num_children + 1; z++) {
add(EnemyType::POFUILLY_SLIME, is_rare_v123, false);
}
break;