Author: crab
Date: Thu Apr 2 17:44:41 2009
New Revision: 34393
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34393&view=rev
Log:
Added some more checks for bad ai parameter placement
Modified:
trunk/data/tools/wmllint
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=34393&r1=34392&r2=34393&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Thu Apr 2 17:44:41 2009
@@ -950,6 +950,26 @@
if not in_ai:
print '"%s", line %d: caution outside [ai]' \
% (filename, i+1)
+ elif key == "recruitment_ignore_bad_movement" and value:
+ if not in_ai:
+ print '"%s", line %d: recruitment_ignore_bad_movement
outside [ai]' \
+ % (filename, i+1)
+ elif key == "recruitment_ignore_bad_combat" and value:
+ if not in_ai:
+ print '"%s", line %d: recruitment_ignore_bad_combat
outside [ai]' \
+ % (filename, i+1)
+ elif key == "recruitment_pattern" and value:
+ if not in_ai:
+ print '"%s", line %d: recruitment_pattern outside [ai]' \
+ % (filename, i+1)
+ elif key == "attack_depth" and value:
+ if not in_ai:
+ print '"%s", line %d: attack_depth outside [ai]' \
+ % (filename, i+1)
+ elif key == "grouping" and value:
+ if not in_ai:
+ print '"%s", line %d: grouping outside [ai]' \
+ % (filename, i+1)
except TypeError:
pass
# Interpret various magic comments
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits