Added option for MC bee traps
This commit is contained in:
parent
ac919f72a8
commit
576521229c
|
@ -68,9 +68,9 @@ item_frequencies = {
|
|||
"4 Lapis Lazuli": 2,
|
||||
"16 Porkchops": 8,
|
||||
"8 Gold Ore": 4,
|
||||
"Rotten Flesh": 2,
|
||||
"Rotten Flesh": 4,
|
||||
"Single Arrow": 0,
|
||||
"Bee Trap (Minecraft)": 2
|
||||
"Bee Trap (Minecraft)": 0
|
||||
}
|
||||
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in item_table.items() if data.code}
|
||||
|
|
|
@ -21,5 +21,6 @@ minecraft_options: typing.Dict[str, type(Option)] = {
|
|||
"include_hard_advancements": Toggle,
|
||||
"include_insane_advancements": Toggle,
|
||||
"include_postgame_advancements": Toggle,
|
||||
"shuffle_structures": Toggle
|
||||
"shuffle_structures": Toggle,
|
||||
"bee_traps": Toggle
|
||||
}
|
|
@ -32,8 +32,11 @@ class MinecraftWorld(World):
|
|||
link_minecraft_structures(self.world, self.player)
|
||||
|
||||
pool = []
|
||||
pool_counts = item_frequencies.copy()
|
||||
if getattr(self.world, "bee_traps")[self.player]:
|
||||
pool_counts.update({"Rotten Flesh": 0, "Bee Trap (Minecraft)": 4})
|
||||
for item_name, item_data in item_table.items():
|
||||
for count in range(item_frequencies.get(item_name, 1)):
|
||||
for count in range(pool_counts.get(item_name, 1)):
|
||||
pool.append(MinecraftItem(item_name, item_data.progression, item_data.code, self.player))
|
||||
|
||||
prefill_pool = {}
|
||||
|
|
Loading…
Reference in New Issue