Skip to content

Commit

Permalink
Merge pull request #87 from ManualForArchipelago/sifp
Browse files Browse the repository at this point in the history
Add "start_inventory_from_pool" to yaml options
  • Loading branch information
FuzzyGamesOn authored Sep 28, 2024
2 parents 90fd2dc + 54f7a53 commit 994fc5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Options import FreeText, NumericOption, Toggle, DefaultOnToggle, Choice, TextChoice, Range, NamedRange, PerGameCommonOptions, DeathLink
from Options import FreeText, NumericOption, Toggle, DefaultOnToggle, Choice, TextChoice, Range, PerGameCommonOptions, DeathLink, StartInventoryPool
from dataclasses import make_dataclass
from .hooks.Options import before_options_defined, after_options_defined
from .Data import category_table, game_table
Expand All @@ -13,6 +13,8 @@ class FillerTrapPercent(Range):

manual_options = before_options_defined({})

manual_options["start_inventory_from_pool"] = StartInventoryPool

if len(victory_names) > 1:
goal = {'option_' + v: i for i, v in enumerate(victory_names)}
manual_options['goal'] = type('goal', (Choice,), goal)
Expand Down

0 comments on commit 994fc5b

Please sign in to comment.