From df35c1a3a68920e063e961c0ceaac8227f57ed59 Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Mon, 12 Jul 2021 23:16:18 -0700 Subject: [PATCH] Force uncle to start with a bomb upgrade in bomb-only mode --- ItemList.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ItemList.py b/ItemList.py index f74eb0f8..5057a451 100644 --- a/ItemList.py +++ b/ItemList.py @@ -274,7 +274,15 @@ def generate_itempool(world, player): if (world.mode[player] == 'standard' and not world.state.has_blunt_weapon(player) and not world.state.has_bomb_level(player, 1)): - if "Link's Uncle" not in placed_items: + if world.swords[player] == 'bombs' and "Link's Uncle" not in placed_items: + possible_weapons = [] + for item in pool: + if item in ['Progressive Bombs', 'L1 Bombs', 'L2 Bombs', 'L3 Bombs', 'L4 Bombs', 'L5 Bombs']: + possible_weapons.append(item) + starting_weapon = random.choice(possible_weapons) + placed_items["Link's Uncle"] = starting_weapon + pool.remove(starting_weapon) + elif "Link's Uncle" not in placed_items: found_sword = False found_bow = False possible_weapons = []