KH2: Using fast_fill instead of fill_restrictive (#4227)

This commit is contained in:
Exempt-Medic 2024-12-26 17:04:21 -05:00 committed by GitHub
parent 33ae68c756
commit b9642a482f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import logging
from typing import List from typing import List
from BaseClasses import Tutorial, ItemClassification from BaseClasses import Tutorial, ItemClassification
from Fill import fill_restrictive from Fill import fast_fill
from worlds.LauncherComponents import Component, components, Type, launch_subprocess from worlds.LauncherComponents import Component, components, Type, launch_subprocess
from worlds.AutoWorld import World, WebWorld from worlds.AutoWorld import World, WebWorld
from .Items import * from .Items import *
@ -287,7 +287,7 @@ class KH2World(World):
def pre_fill(self): def pre_fill(self):
""" """
Plandoing Events and Fill_Restrictive for donald,goofy and sora Plandoing Events and Fast_Fill for donald,goofy and sora
""" """
self.donald_pre_fill() self.donald_pre_fill()
self.goofy_pre_fill() self.goofy_pre_fill()
@ -431,9 +431,10 @@ class KH2World(World):
Fills keyblade slots with abilities determined on player's setting Fills keyblade slots with abilities determined on player's setting
""" """
keyblade_locations = [self.multiworld.get_location(location, self.player) for location in Keyblade_Slots.keys()] keyblade_locations = [self.multiworld.get_location(location, self.player) for location in Keyblade_Slots.keys()]
state = self.multiworld.get_all_state(False)
keyblade_ability_pool_copy = self.keyblade_ability_pool.copy() keyblade_ability_pool_copy = self.keyblade_ability_pool.copy()
fill_restrictive(self.multiworld, state, keyblade_locations, keyblade_ability_pool_copy, True, True, allow_excluded=True) fast_fill(self.multiworld, keyblade_ability_pool_copy, keyblade_locations)
for location in keyblade_locations:
location.locked = True
def starting_invo_verify(self): def starting_invo_verify(self):
""" """