Skip to content

Commit

Permalink
get_filler_item_name hadded
Browse files Browse the repository at this point in the history
  • Loading branch information
axe-y committed Nov 4, 2023
1 parent 4e59de3 commit 79f1f48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion worlds/dlcquest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from BaseClasses import Tutorial, CollectionState
from worlds.AutoWorld import WebWorld, World
from . import Options
from .Items import DLCQuestItem, ItemData, create_items, item_table
from .Items import DLCQuestItem, ItemData, create_items, item_table, items_by_group, Group
from .Locations import DLCQuestLocation, location_table
from .Options import DLCQuestOptions
from .Regions import create_regions
Expand Down Expand Up @@ -79,6 +79,10 @@ def create_item(self, item: Union[str, ItemData]) -> DLCQuestItem:

return DLCQuestItem(item.name, item.classification, item.code, self.player)

def get_filler_item_name(self) -> str:
trap = self.multiworld.random.choice(items_by_group[Group.Trap])
return trap.name

def fill_slot_data(self):
options_dict = self.options.as_dict(
"death_link", "ending_choice", "campaign", "coinsanity", "item_shuffle"
Expand Down

0 comments on commit 79f1f48

Please sign in to comment.