Skip to content

Commit

Permalink
fix slime child count in challenge mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Jan 12, 2025
1 parent 4d35956 commit 80dda2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80dda2e

Please sign in to comment.