Boss item restriction logic added
Reserved location logic started
This commit is contained in:
@@ -72,7 +72,8 @@ SETTINGSTOPROCESS = {
|
||||
"progressives": "progressive",
|
||||
"accessibility": "accessibility",
|
||||
"sortingalgo": "algorithm",
|
||||
"beemizer": "beemizer"
|
||||
"beemizer": "beemizer",
|
||||
"restrict_boss_items": "restrict_boss_items"
|
||||
},
|
||||
"entrance": {
|
||||
"openpyramid": "openpyramid",
|
||||
|
||||
20
source/item/FillUtil.py
Normal file
20
source/item/FillUtil.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from collections import defaultdict
|
||||
|
||||
from Dungeons import dungeon_prize
|
||||
|
||||
class ItemPoolConfig(object):
|
||||
|
||||
def __init__(self):
|
||||
self.reserved_locations = defaultdict(set)
|
||||
|
||||
|
||||
def create_item_pool_config(world):
|
||||
config = ItemPoolConfig()
|
||||
if world.algorithm in ['balanced']:
|
||||
for player in range(1, world.players+1):
|
||||
if world.restrict_boss_items[player]:
|
||||
for dungeon in dungeon_prize:
|
||||
if dungeon.startswith('Thieves'):
|
||||
dungeon = "Thieves' Town"
|
||||
config.reserved_locations[player].add(f'{dungeon} - Boss')
|
||||
world.item_pool_config = config
|
||||
Reference in New Issue
Block a user