add rule to check constraint on cost and color

master
melvinzhang 2016-01-06 09:55:02 +08:00
parent 7d07fecb67
commit 50ddf63c9a
1 changed files with 8 additions and 1 deletions

View File

@ -497,7 +497,8 @@ checks: \
check_meta \
check_rarity \
check_decks \
check_mana_or_combat
check_mana_or_combat \
check_color_or_cost
remove_extra_missing:
git rm `join <(ls -1 release/Magarena/scripts | sort) <(ls -1 release/Magarena/scripts_missing | sort) | sed 's/^/release\/Magarena\/scripts_missing\//'`
@ -594,6 +595,12 @@ check_mana_or_combat:
<(grep mana_or_combat -lr release/Magarena/scripts) \
<(grep "mana pool.*becomes a" -r release/Magarena/scripts -l)
# all cards except lands should have either color, or cost, or both
check_color_or_cost:
diff \
<(grep "cost=\|color=\|type.*Land" -r release/Magarena/scripts/*.txt -l) \
<(ls release/Magarena/scripts/*.txt | sort)
crash.txt: $(wildcard *.log)
for i in `grep "^Excep" -l $^`; do \
tail -n +`grep -n "random seed" $$i | tail -1 | cut -d':' -f1` $$i; \