oot: force itempool to higher settings if required by heart logic

This commit is contained in:
espeon65536 2023-01-13 00:27:39 -06:00 committed by Fabian Dill
parent 11eebbbd32
commit ca724c92ad
1 changed files with 11 additions and 0 deletions
worlds/oot

View File

@ -198,6 +198,17 @@ class OOTWorld(World):
if self.triforce_hunt:
self.shuffle_ganon_bosskey = 'triforce'
# Force itempool to higher settings if it doesn't have enough hearts
max_required_hearts = 3
if self.bridge == 'hearts':
max_required_hearts = max(max_required_hearts, self.bridge_hearts)
if self.shuffle_ganon_bosskey == 'hearts':
max_required_hearts = max(max_required_hearts, self.ganon_bosskey_hearts)
if max_required_hearts > 3 and self.item_pool_value == 'minimal':
self.item_pool_value = 'scarce'
if max_required_hearts > 12 and self.item_pool_value == 'scarce':
self.item_pool_value = 'balanced'
# If songs/keys locked to own world by settings, add them to local_items
local_types = []
if self.shuffle_song_items != 'any':