From 54f7a537cabb36a7e0bf4cf224e533fa8cf5d088 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Sat, 28 Sep 2024 22:43:12 +0930 Subject: [PATCH] Add "start_inventory_from_pool" to yaml options --- src/Options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Options.py b/src/Options.py index 19b818c..220ff7d 100644 --- a/src/Options.py +++ b/src/Options.py @@ -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 @@ -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)