mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
HK: better error messaging for charm plando (#3907)
This commit is contained in:
@@ -300,7 +300,7 @@ class PlandoCharmCosts(OptionDict):
|
|||||||
display_name = "Charm Notch Cost Plando"
|
display_name = "Charm Notch Cost Plando"
|
||||||
valid_keys = frozenset(charm_names)
|
valid_keys = frozenset(charm_names)
|
||||||
schema = Schema({
|
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 integers in the range 0-6.") for name in charm_names
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_costs(self, charm_costs: typing.List[int]) -> typing.List[int]:
|
def get_costs(self, charm_costs: typing.List[int]) -> typing.List[int]:
|
||||||
|
Reference in New Issue
Block a user