Skip to content

Commit

Permalink
actually use the seed
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Mar 10, 2024
1 parent 65e50d2 commit 47c23ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/general/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ def setup_solo_multiworld(
:param world_type: Type of the world to generate a multiworld for
:param steps: The gen steps that should be called on the generated multiworld before returning. Default calls
steps through pre_fill
:param seed: The seed to be used when creating this multiworld
"""
multiworld = MultiWorld(1)
multiworld.game[1] = world_type.game
multiworld.player_name = {1: "Tester"}
multiworld.set_seed()
multiworld.set_seed(seed)
multiworld.state = CollectionState(multiworld)
args = Namespace()
for name, option in world_type.options_dataclass.type_hints.items():
Expand Down

0 comments on commit 47c23ba

Please sign in to comment.