Final Fantasy: fix outdated advancement flag

This commit is contained in:
Fabian Dill 2022-07-16 23:52:47 +02:00 committed by Fabian Dill
parent 828bcb1266
commit 472e114fb9
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from typing import Dict
from BaseClasses import Item, Location, MultiWorld, Tutorial
from BaseClasses import Item, Location, MultiWorld, Tutorial, ItemClassification
from .Items import ItemData, FF1Items, FF1_STARTER_ITEMS, FF1_PROGRESSION_LIST, FF1_BRIDGE
from .Locations import EventId, FF1Locations, generate_rule, CHAOS_TERMINATED_EVENT
from .Options import ff1_options
@ -55,7 +55,7 @@ class FF1World(World):
rules = get_options(self.world, 'rules', self.player)
menu_region = self.ff1_locations.create_menu_region(self.player, locations, rules)
terminated_event = Location(self.player, CHAOS_TERMINATED_EVENT, EventId, menu_region)
terminated_item = Item(CHAOS_TERMINATED_EVENT, True, EventId, self.player)
terminated_item = Item(CHAOS_TERMINATED_EVENT, ItemClassification.progression, EventId, self.player)
terminated_event.place_locked_item(terminated_item)
items = get_options(self.world, 'items', self.player)
@ -114,5 +114,6 @@ class FF1World(World):
def get_filler_item_name(self) -> str:
return self.world.random.choice(["Heal", "Pure", "Soft", "Tent", "Cabin", "House"])
def get_options(world: MultiWorld, name: str, player: int):
return getattr(world, name, None)[player].value