wmllint: improve [campaign] rank= validation message

This commit is contained in:
Elvish_Hunter 2022-12-30 23:33:59 +01:00
parent f10f9779eb
commit 937465fb8c

View file

@ -1391,7 +1391,7 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
print(errlead + "rank for add-on campaigns should be greater than or equal to 300")
else:
if campaign_rank >= 300 or (campaign_rank % 5) != 0:
print(errlead + "rank for mainline campaigns should be a multiple of 5 between 0 and 300")
print(errlead + "rank for mainline campaigns should be a multiple of 5 between 0 and 299 (included)")
except ValueError:
print(errlead + "rank must be a numeric value")