Minor gui fixes

This commit is contained in:
aerinon
2020-02-28 16:35:45 -07:00
parent 47f60b5612
commit a20f5423fd
3 changed files with 13 additions and 3 deletions

View File

@@ -769,6 +769,16 @@ class CollectionState(object):
else:
self.prog_items.add(('Bow', item.player))
changed = True
elif 'Armor' in item.name:
if self.has('Red Mail', item.player):
pass
elif self.has('Blue Mail', item.player):
self.prog_items.add(('Red Mail', item.player))
changed = True
else:
self.prog_items.add(('Blue Mail', item.player))
changed = True
elif item.name.startswith('Bottle'):
if self.bottle_count(item.player) < self.world.difficulty_requirements[item.player].progressive_bottle_limit:
self.prog_items.add((item.name, item.player))

2
CLI.py
View File

@@ -373,7 +373,7 @@ def get_settings():
"uw_palettes": "default",
"create_spoiler": False,
"skip_playthrough": True,
"skip_playthrough": False,
"suppress_rom": False,
"usestartinventory": False,
"custom": False,

4
Rom.py
View File

@@ -981,8 +981,8 @@ def patch_rom(world, rom, player, team, enemized):
startingstate = CollectionState(world)
if startingstate.has('Bow', player):
equip[0x340] = 1
equip[0x38E] |= 0x20 # progressive flag to get the correct hint in all cases
equip[0x340] = 3 if startingstate.has('Silver Arrows', player) else 1
equip[0x38E] |= 0x20 # progressive flag to get the correct hint in all cases
if not world.retro[player]:
equip[0x38E] |= 0x80
if startingstate.has('Silver Arrows', player):