From 4bde13105e49c3b3b11e0d337592beb0a61b6beb Mon Sep 17 00:00:00 2001 From: AmazingAmpharos Date: Sat, 11 Nov 2017 18:10:34 -0600 Subject: [PATCH] Hard and above difficulty Remove fairies from being pre-stocked in bottles on high difficulties --- Items.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Items.py b/Items.py index ba5bdd25..9b2442c7 100644 --- a/Items.py +++ b/Items.py @@ -14,7 +14,10 @@ def ItemFactory(items): advancement, priority, type, code, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit = item_table[item] if item == 'Bottle': # randomly fill bottle - code = [0x16, 0x2B, 0x2C, 0x2D, 0x3C, 0x3D, 0x48][random.randint(0, 6)] + if world.difficulty in ['hard', 'expert', insane']: + code = [0x16, 0x2B, 0x2C, 0x2D, 0x3C, 0x48][random.randint(0, 5)] + else: + code = [0x16, 0x2B, 0x2C, 0x2D, 0x3C, 0x3D, 0x48][random.randint(0, 6)] ret.append(Item(item, advancement, priority, type, code, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit)) else: logging.getLogger('').warning('Unknown Item: %s' % item)