Stardew valley: Add Trap Distribution setting (#4601)
Co-authored-by: Jouramie <16137441+Jouramie@users.noreply.github.com> Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
		| @@ -1,16 +1,16 @@ | ||||
| from Options import PerGameCommonOptions, OptionSet | ||||
| from Options import PerGameCommonOptions, OptionSet, OptionDict | ||||
| from .. import SVTestCase | ||||
| from ...options import StardewValleyOptions | ||||
| from ...options import StardewValleyOptions, TrapItems | ||||
| from ...options.presets import sv_options_presets | ||||
|  | ||||
|  | ||||
| class TestPresets(SVTestCase): | ||||
|     def test_all_presets_explicitly_set_all_options(self): | ||||
|         all_option_names = {option_key for option_key in StardewValleyOptions.type_hints} | ||||
|         omitted_option_names = {option_key for option_key in PerGameCommonOptions.type_hints} | ||||
|         omitted_option_names = {option_key for option_key in PerGameCommonOptions.type_hints} | {TrapItems.internal_name} | ||||
|         mandatory_option_names = {option_key for option_key in all_option_names | ||||
|                                   if option_key not in omitted_option_names and | ||||
|                                   not issubclass(StardewValleyOptions.type_hints[option_key], OptionSet)} | ||||
|                                   not issubclass(StardewValleyOptions.type_hints[option_key], OptionSet | OptionDict)} | ||||
|  | ||||
|         for preset_name in sv_options_presets: | ||||
|             with self.subTest(f"{preset_name}"): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 agilbert1412
					agilbert1412