Implement get_filler_item_name for various games (#451)
This commit is contained in:
@@ -8,7 +8,7 @@ from BaseClasses import Item, CollectionState, Tutorial
|
||||
from .SubClasses import ALttPItem
|
||||
from ..AutoWorld import World, WebWorld, LogicMixin
|
||||
from .Options import alttp_options, smallkey_shuffle
|
||||
from .Items import as_dict_item_table, item_name_groups, item_table
|
||||
from .Items import as_dict_item_table, item_name_groups, item_table, GetBeemizerItem
|
||||
from .Regions import lookup_name_to_id, create_regions, mark_light_world_regions
|
||||
from .Rules import set_rules
|
||||
from .ItemPool import generate_itempool, difficulties
|
||||
@@ -17,6 +17,7 @@ from .Dungeons import create_dungeons
|
||||
from .Rom import LocalRom, patch_rom, patch_race_rom, patch_enemizer, apply_rom_settings, get_hash_string, \
|
||||
get_base_rom_path, LttPDeltaPatch
|
||||
import Patch
|
||||
from itertools import chain
|
||||
|
||||
from .InvertedRegions import create_inverted_regions, mark_dark_world_regions
|
||||
from .EntranceShuffle import link_entrances, link_inverted_entrances, plando_connect
|
||||
@@ -479,7 +480,11 @@ class ALTTPWorld(World):
|
||||
trash_count -= 1
|
||||
|
||||
def get_filler_item_name(self) -> str:
|
||||
return "Rupees (5)" # temporary
|
||||
if self.world.goal[self.player] == "icerodhunt":
|
||||
item = "Nothing"
|
||||
else:
|
||||
item = self.world.random.choice(chain(difficulties[self.world.difficulty[self.player]].extras[0:5]))
|
||||
return GetBeemizerItem(self.world, self.player, item)
|
||||
|
||||
def get_pre_fill_items(self):
|
||||
res = []
|
||||
|
||||
Reference in New Issue
Block a user