Skip to content

Commit

Permalink
DLC Quest Stardew: bug (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
axe-y authored Nov 6, 2023
1 parent e1f1bf8 commit 84fb2f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions 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 @@ -60,7 +60,9 @@ def create_items(self):
created_items = create_items(self, self.options, locations_count + len(items_to_exclude), self.multiworld.random)

self.multiworld.itempool += created_items
self.multiworld.early_items[self.player]["Movement Pack"] = 1

if self.options.campaign == Options.Campaign.option_basic or self.options.campaign == Options.Campaign.option_both:
self.multiworld.early_items[self.player]["Movement Pack"] = 1

for item in items_to_exclude:
if item in self.multiworld.itempool:
Expand All @@ -77,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 84fb2f5

Please sign in to comment.