mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
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:
parent
349fbf49a5
commit
b79728e1cc
10 changed files with 1551 additions and 1505 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue