From 4b90bbd519785eccb4412b4809cfa1fe29e41904 Mon Sep 17 00:00:00 2001 From: qwint Date: Sat, 10 Aug 2024 15:22:32 -0500 Subject: [PATCH] better error messaging for charm plando --- worlds/hk/Options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/hk/Options.py b/worlds/hk/Options.py index c1206d41ee2c..b72baa1c7937 100644 --- a/worlds/hk/Options.py +++ b/worlds/hk/Options.py @@ -300,7 +300,7 @@ class PlandoCharmCosts(OptionDict): display_name = "Charm Notch Cost Plando" valid_keys = frozenset(charm_names) schema = Schema({ - Optional(name): And(int, lambda n: 6 >= n >= 0) for name in charm_names + Optional(name): And(int, lambda n: 6 >= n >= 0, error="Charm costs must be 0-6") for name in charm_names }) def get_costs(self, charm_costs: typing.List[int]) -> typing.List[int]: