add check that every spell either has an effect property or requires_groovy_code property

master
melvin 2014-03-09 08:41:19 +08:00
parent f6438132bd
commit 7a1f79cc8b
1 changed files with 6 additions and 0 deletions

View File

@ -458,6 +458,7 @@ checks: \
check_tokens \
check_unique_property \
check_required_property \
check_spells \
check_groovy_escape \
check_empty_return \
check_url \
@ -541,6 +542,11 @@ check_required_property:
grep ^timing= -L `grep token= -L release/Magarena/scripts/*.txt` | ${NO_OUTPUT}
grep ^url= -L `grep token= -L release/Magarena/scripts/*.txt` | ${NO_OUTPUT}
# Instant and Sorcery must have either effect or requires_groovy_code
check_spells:
grep requires_groovy_code -L $$(grep effect -L $$(grep "^type.*Instant" -lr release/Magarena/scripts)) | ${NO_OUTPUT}
grep requires_groovy_code -L $$(grep effect -L $$(grep "^type.*Sorcery" -lr release/Magarena/scripts)) | ${NO_OUTPUT}
crash.txt: $(wildcard *.log)
for i in `grep "^Excep" -l $^`; do \
tail -n +`grep -n "random seed" $$i | tail -1 | cut -d':' -f1` $$i; \