VT28 update: Keysanity has dungeon items in normal item pool

This commit is contained in:
Kevin Cathcart
2018-01-02 20:01:16 -05:00
parent 3adf4fadd1
commit e3ac7ee4a6
4 changed files with 20 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import random
from Items import ItemFactory
from Fill import fill_restrictive
from Dungeons import get_dungeon_item_pool
#This file sets the item pools for various modes. Timed modes and triforce hunt are enforced first, and then extra items are specified per mode to fill in the remaining space.
#Some basic items that various modes require are placed here, including pendants and crystals. Medallion requirements for the two relevant entrances are also decided.
@@ -203,6 +204,9 @@ def generate_itempool(world):
if treasure_hunt_icon is not None:
world.treasure_hunt_icon = treasure_hunt_icon
if world.keysanity:
world.itempool.extend(get_dungeon_item_pool(world))
# shuffle medallions
mm_medallion = ['Ether', 'Quake', 'Bombos'][random.randint(0, 2)]
tr_medallion = ['Ether', 'Quake', 'Bombos'][random.randint(0, 2)]