wmllint: warn about shroud terrain in map files

Just like _f (fog), _s (shroud) is allowed only inside mask files
This commit is contained in:
Elvish_Hunter 2020-12-05 21:57:00 +01:00
parent 5eadebeb3a
commit ab95662720

View file

@ -2882,8 +2882,8 @@ def translator(filename, mapxforms, textxform):
else:
fields = [x for x in line]
outmap.append(fields)
if not maskwarn and maptype == 'map' and "_f" in line:
print('"%s", line %d: warning, fog in map file' \
if not maskwarn and maptype == 'map' and ("_f" in line or "_s" in line):
print('"%s", line %d: warning, fog or shroud in map file' \
% (filename, lineno+1))
maskwarn = True
# Deduce the map type