Damage Challenge modes: OHKO and Gloom

This commit is contained in:
2025-05-18 01:00:09 -05:00
parent 04270990cb
commit 53be043af4
8 changed files with 54 additions and 18 deletions

View File

@@ -226,7 +226,10 @@ def generate_itempool(world, player):
raise NotImplementedError('Not supported yet')
if world.timer in ['ohko', 'timed-ohko']:
world.can_take_damage = False
world.can_take_damage[player] = False
if world.damage_challenge[player] in ['ohko', 'gloom']:
world.can_take_damage[player] = False
if world.goal[player] in ['pedestal', 'triforcehunt', 'sanctuary']:
set_event_item(world, player, 'Ganon', 'Nothing')
@@ -1287,7 +1290,7 @@ def modify_pool_for_start_inventory(start_inventory, world, player):
d.big_key = None
def make_custom_item_pool(world, player, progressive, shuffle, difficulty, timer, goal, mode, swords, bombbag, dark_rooms, customitemarray):
def make_custom_item_pool(world, player, progressive, shuffle, difficulty, timer, goal, mode, swords, bombbag, customitemarray):
pool = []
placed_items = {}
precollected_items = []