Minecraft: only add egg shards to the pool if at least 1 is required

This commit is contained in:
espeon65536 2022-02-20 12:30:04 -06:00 committed by Fabian Dill
parent a6d78d9af7
commit 5fc1b760f4
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ class MinecraftWorld(World):
for struct_name in structures:
itempool.append(f"Structure Compass ({struct_name})")
# Add dragon egg shards
itempool += ["Dragon Egg Shard"] * self.world.egg_shards_available[self.player]
if self.world.egg_shards_required[self.player] > 0:
itempool += ["Dragon Egg Shard"] * self.world.egg_shards_available[self.player]
# Add bee traps if desired
bee_trap_quantity = ceil(self.world.bee_traps[self.player] * (len(self.location_names)-len(itempool)) * 0.01)
itempool += ["Bee Trap (Minecraft)"] * bee_trap_quantity