KH2: Fix events in datapackage (#2576)
This commit is contained in:
parent
9351fb45ca
commit
a9a6c72d2c
|
@ -1020,10 +1020,9 @@ def create_regions(self):
|
||||||
multiworld.regions += [create_region(multiworld, player, active_locations, region, locations) for region, locations in
|
multiworld.regions += [create_region(multiworld, player, active_locations, region, locations) for region, locations in
|
||||||
KH2REGIONS.items()]
|
KH2REGIONS.items()]
|
||||||
# fill the event locations with events
|
# fill the event locations with events
|
||||||
multiworld.worlds[player].item_name_to_id.update({event_name: None for event_name in Events_Table})
|
|
||||||
for location, item in event_location_to_item.items():
|
for location, item in event_location_to_item.items():
|
||||||
multiworld.get_location(location, player).place_locked_item(
|
multiworld.get_location(location, player).place_locked_item(
|
||||||
multiworld.worlds[player].create_item(item))
|
multiworld.worlds[player].create_event_item(item))
|
||||||
|
|
||||||
|
|
||||||
def connect_regions(self):
|
def connect_regions(self):
|
||||||
|
|
|
@ -119,11 +119,15 @@ class KH2World(World):
|
||||||
item_classification = ItemClassification.useful
|
item_classification = ItemClassification.useful
|
||||||
else:
|
else:
|
||||||
item_classification = ItemClassification.filler
|
item_classification = ItemClassification.filler
|
||||||
|
|
||||||
created_item = KH2Item(name, item_classification, self.item_name_to_id[name], self.player)
|
created_item = KH2Item(name, item_classification, self.item_name_to_id[name], self.player)
|
||||||
|
|
||||||
return created_item
|
return created_item
|
||||||
|
|
||||||
|
def create_event_item(self, name: str) -> Item:
|
||||||
|
item_classification = ItemClassification.progression
|
||||||
|
created_item = KH2Item(name, item_classification, None, self.player)
|
||||||
|
return created_item
|
||||||
|
|
||||||
def create_items(self) -> None:
|
def create_items(self) -> None:
|
||||||
"""
|
"""
|
||||||
Fills ItemPool and manages schmovement, random growth, visit locking and random starting visit locking.
|
Fills ItemPool and manages schmovement, random growth, visit locking and random starting visit locking.
|
||||||
|
|
Loading…
Reference in New Issue