mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
A little cleanup on new classes, aimed to remove warnings due to unused imports
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package forge.card;
|
||||
|
||||
import org.apache.tools.ant.taskdefs.Concat;
|
||||
|
||||
import forge.Constant;
|
||||
|
||||
/**
|
||||
* <p>CardColor class.</p>
|
||||
*
|
||||
|
||||
@@ -2,11 +2,9 @@ package forge.card;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Properties;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package forge.card;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package forge.card;
|
||||
|
||||
import forge.card.mana.ManaCost;
|
||||
|
||||
public class CardManaCostShard {
|
||||
|
||||
private final int shard;
|
||||
|
||||
@@ -2,9 +2,6 @@ package forge.card;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import net.slightlymagic.braids.util.lambda.Lambda1;
|
||||
import net.slightlymagic.maxmtg.Predicate;
|
||||
import forge.AllZone;
|
||||
|
||||
@@ -8,17 +8,15 @@ package forge.card;
|
||||
*/
|
||||
|
||||
public enum CardRarity {
|
||||
BasicLand(0, "L"),
|
||||
Common(1, "C"),
|
||||
Uncommon(2, "U"),
|
||||
Rare(3, "R"),
|
||||
MythicRare(4, "M"),
|
||||
Special(10, "S"); // Timeshifted
|
||||
BasicLand("L"),
|
||||
Common("C"),
|
||||
Uncommon("U"),
|
||||
Rare("R"),
|
||||
MythicRare("M"),
|
||||
Special("S"); // Timeshifted
|
||||
|
||||
private final int rating;
|
||||
private final String strValue;
|
||||
private CardRarity(final int value, final String sValue) {
|
||||
rating = value;
|
||||
private CardRarity(final String sValue) {
|
||||
strValue = sValue;
|
||||
}
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ public final class CardRules {
|
||||
|
||||
@Override
|
||||
public boolean isTrue(final CardRules card) {
|
||||
return card.getRarityFromLatestSet().equals(operand);
|
||||
return card.getRarityFromLatestSet().equals(operand) == shouldBeEqual;
|
||||
}
|
||||
|
||||
public PredicateLastesSetRarity(final CardRarity type, final boolean wantEqual) {
|
||||
|
||||
@@ -4,8 +4,6 @@ import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import javax.naming.OperationNotSupportedException;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public final class MtgDataParser implements Iterator<CardRules> {
|
||||
|
||||
Reference in New Issue
Block a user