Skip to content

Commit 994fc5b

Browse files
authored
Merge pull request #87 from ManualForArchipelago/sifp
Add "start_inventory_from_pool" to yaml options
2 parents 90fd2dc + 54f7a53 commit 994fc5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Options.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from Options import FreeText, NumericOption, Toggle, DefaultOnToggle, Choice, TextChoice, Range, NamedRange, PerGameCommonOptions, DeathLink
1+
from Options import FreeText, NumericOption, Toggle, DefaultOnToggle, Choice, TextChoice, Range, PerGameCommonOptions, DeathLink, StartInventoryPool
22
from dataclasses import make_dataclass
33
from .hooks.Options import before_options_defined, after_options_defined
44
from .Data import category_table, game_table
@@ -13,6 +13,8 @@ class FillerTrapPercent(Range):
1313

1414
manual_options = before_options_defined({})
1515

16+
manual_options["start_inventory_from_pool"] = StartInventoryPool
17+
1618
if len(victory_names) > 1:
1719
goal = {'option_' + v: i for i, v in enumerate(victory_names)}
1820
manual_options['goal'] = type('goal', (Choice,), goal)

0 commit comments

Comments
 (0)