Skip to content

Commit

Permalink
better error messaging for charm plando
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Aug 10, 2024
1 parent c66a860 commit 4b90bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/hk/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 4b90bbd

Please sign in to comment.