Skip to content

Commit

Permalink
Add "start_inventory_from_pool" to yaml options
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Sep 28, 2024
1 parent 84ddcea commit 54f7a53
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 54f7a53

Please sign in to comment.