Skip to content

Commit

Permalink
- Add randomized entrances to the spoiler log output
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jan 28, 2024
1 parent 6cb5ecb commit 5d922c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion worlds/stardew_valley/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .logic.logic import StardewLogic
from .logic.time_logic import MAX_MONTHS
from .options import StardewValleyOptions, SeasonRandomization, Goal, BundleRandomization, BundlePrice, NumberOfLuckBuffs, NumberOfMovementBuffs, \
BackpackProgression, BuildingProgression, ExcludeGingerIsland, TrapItems
BackpackProgression, BuildingProgression, ExcludeGingerIsland, TrapItems, EntranceRandomization
from .presets import sv_options_presets
from .regions import create_regions
from .rules import set_rules
Expand Down Expand Up @@ -338,6 +338,12 @@ def get_filler_item_rules(self):
else:
return self.options.trap_items != TrapItems.option_no_traps, self.options.exclude_ginger_island == ExcludeGingerIsland.option_true

def generate_output(self, output_directory: str):
if self.options.entrance_randomization == EntranceRandomization.option_disabled:
return
for original_entrance, replaced_entrance in self.randomized_entrances.items():
self.multiworld.spoiler.set_entrance(original_entrance, replaced_entrance, "entrance", self.player)

def fill_slot_data(self) -> Dict[str, Any]:

bundles = dict()
Expand Down

0 comments on commit 5d922c0

Please sign in to comment.