Added script for generating cards list for a set (for unimplemented cards listing)

Updated resource files for unimplemented files
Updated method for reading from the new file format (unimplemented cards)
This commit is contained in:
North 2011-08-01 21:25:09 +03:00
parent 349fbf49a5
commit b79728e1cc
10 changed files with 1551 additions and 1505 deletions

View file

@ -195,22 +195,10 @@ public class CardsStorage {
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
String[] s = line.split("\\|");
if (s.length == 6) {
if (s.length == 2) {
String name = s[1].trim();
if (!names.contains(set + name)) {
Integer cid = Integer.parseInt(s[5]);
Card card = tmp.copy();
card.setName(name);
card.setExpansionSetCode(set);
card.setCardNumber(cid);
card.setRarity(Constants.Rarity.NA); // mark as not implemented
card.getCardType().clear();
cards.add(card);
}
} else { // for m12 and further
String name = s[0].trim();
if (!names.contains(set + name)) {
Integer cid = Integer.parseInt(s[2]);
Integer cid = Integer.parseInt(s[0]);
Card card = tmp.copy();
card.setName(name);
card.setExpansionSetCode(set);