mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
KH2: Fix plando breaking because of keyblades (#2678)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from typing import Dict, Callable, TYPE_CHECKING
|
from typing import Dict, Callable, TYPE_CHECKING
|
||||||
|
|
||||||
from BaseClasses import CollectionState
|
from BaseClasses import CollectionState
|
||||||
from .Items import exclusion_item_table, visit_locking_dict, DonaldAbility_Table, GoofyAbility_Table
|
from .Items import exclusion_item_table, visit_locking_dict, DonaldAbility_Table, GoofyAbility_Table, SupportAbility_Table
|
||||||
from .Locations import exclusion_table, popups_set, Goofy_Checks, Donald_Checks
|
from .Locations import exclusion_table, popups_set, Goofy_Checks, Donald_Checks
|
||||||
from .Names import LocationName, ItemName, RegionName
|
from .Names import LocationName, ItemName, RegionName
|
||||||
from worlds.generic.Rules import add_rule, forbid_items, add_item_rule
|
from worlds.generic.Rules import add_rule, forbid_items, add_item_rule
|
||||||
@@ -266,6 +266,8 @@ class KH2WorldRules(KH2Rules):
|
|||||||
add_item_rule(location, lambda item: item.player == self.player and item.name in GoofyAbility_Table.keys())
|
add_item_rule(location, lambda item: item.player == self.player and item.name in GoofyAbility_Table.keys())
|
||||||
elif location.name in Donald_Checks:
|
elif location.name in Donald_Checks:
|
||||||
add_item_rule(location, lambda item: item.player == self.player and item.name in DonaldAbility_Table.keys())
|
add_item_rule(location, lambda item: item.player == self.player and item.name in DonaldAbility_Table.keys())
|
||||||
|
else:
|
||||||
|
add_item_rule(location, lambda item: item.player == self.player and item.name in SupportAbility_Table.keys())
|
||||||
|
|
||||||
def set_kh2_goal(self):
|
def set_kh2_goal(self):
|
||||||
final_xemnas_location = self.multiworld.get_location(LocationName.FinalXemnas, self.player)
|
final_xemnas_location = self.multiworld.get_location(LocationName.FinalXemnas, self.player)
|
||||||
|
Reference in New Issue
Block a user