fix: inconsistent treatment of beemizer

This commit is contained in:
aerinon
2024-11-12 14:10:28 -07:00
parent 82a04dabd7
commit a2075ec992
3 changed files with 3 additions and 3 deletions

View File

@@ -459,7 +459,7 @@ def generate_itempool(world, player):
'3': {'trap': 50, 'bee': 50},
'4': {'trap': 100}}
def beemizer(item):
if world.beemizer[item.player] and not item.advancement and not item.priority and not item.type:
if world.beemizer[item.player] != '0' and not item.advancement and not item.priority and not item.type:
choice = random.choices(list(beeweights[world.beemizer[item.player]].keys()), weights=list(beeweights[world.beemizer[item.player]].values()))[0]
return item if not choice else ItemFactory("Bee Trap", player) if choice == 'trap' else ItemFactory("Bee", player)
return item