Fix get_all_state to correctly indicate mirror shield is is available if three progessive shields are in pool.

This commit is contained in:
Kevin Cathcart 2017-12-16 15:38:48 -05:00
parent 24043bce52
commit b36723f2dd
1 changed files with 9 additions and 0 deletions

View File

@ -120,6 +120,15 @@ class World(object):
ret.prog_items.append('Titans Mitts')
else:
ret.prog_items.append('Power Glove')
elif 'Shield' in item.name:
if ret.has('Mirror Shield'):
pass
elif ret.has('Red Shield'):
ret.prog_items.append('Mirror Shield')
elif ret.has('Blue Shield'):
ret.prog_items.append('Red Shield')
else:
ret.prog_items.append('Blue Shield')
elif item.advancement or item.key:
ret.prog_items.append(item.name)