mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Checkstyle.
This commit is contained in:
@@ -1565,11 +1565,11 @@ public class ComputerUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (destroy) {
|
if (destroy) {
|
||||||
if(!AllZone.getGameAction().destroy(c)) {
|
if (!AllZone.getGameAction().destroy(c)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(!AllZone.getGameAction().sacrifice(c)) {
|
if (!AllZone.getGameAction().sacrifice(c)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3766,7 +3766,8 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
for (final String kw : intrinsicKeywords) {
|
for (final String kw : intrinsicKeywords) {
|
||||||
if (kw.startsWith("HIDDEN")) {
|
if (kw.startsWith("HIDDEN")) {
|
||||||
temp.addExtrinsicKeyword(kw);//extrinsic keywords won't survive the copyStats treatment
|
temp.addExtrinsicKeyword(kw);
|
||||||
|
//extrinsic keywords won't survive the copyStats treatment
|
||||||
} else {
|
} else {
|
||||||
temp.addIntrinsicKeyword(kw);
|
temp.addIntrinsicKeyword(kw);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1007,7 +1007,7 @@ public class TriggerHandler {
|
|||||||
regtrig.getHostCard().getName()));
|
regtrig.getHostCard().getName()));
|
||||||
buildQuestion.append(")\r\n");
|
buildQuestion.append(")\r\n");
|
||||||
if (sa[0].getTriggeringObjects().containsKey("Attacker")) {
|
if (sa[0].getTriggeringObjects().containsKey("Attacker")) {
|
||||||
buildQuestion.append("[Attacker: " +sa[0].getTriggeringObjects().get("Attacker") + "]");
|
buildQuestion.append("[Attacker: " + sa[0].getTriggeringObjects().get("Attacker") + "]");
|
||||||
}
|
}
|
||||||
if (!GameActionUtil.showYesNoDialog(regtrig.getHostCard(), buildQuestion.toString())) {
|
if (!GameActionUtil.showYesNoDialog(regtrig.getHostCard(), buildQuestion.toString())) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ public class Generate2ColorDeck {
|
|||||||
// select cards to build card pools using a mana curve
|
// select cards to build card pools using a mana curve
|
||||||
for (int i = 4; i > 0; i--) {
|
for (int i = 4; i > 0; i--) {
|
||||||
|
|
||||||
if (i==1) {
|
if (i == 1) {
|
||||||
maxCMC[0] = 20; //the last category is open ended
|
maxCMC[0] = 20; //the last category is open ended
|
||||||
i = 0; // this reduces the number of cards in the last category to 4
|
i = 0; // this reduces the number of cards in the last category to 4
|
||||||
}
|
}
|
||||||
@@ -201,7 +201,7 @@ public class Generate2ColorDeck {
|
|||||||
final CardList sp1CMC = sp1.filter(cmcF);
|
final CardList sp1CMC = sp1.filter(cmcF);
|
||||||
final CardList sp2CMC = sp2.filter(cmcF);
|
final CardList sp2CMC = sp2.filter(cmcF);
|
||||||
|
|
||||||
for (int j = 0; j < i+1; j++) {
|
for (int j = 0; j < i + 1; j++) {
|
||||||
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
||||||
cr12.add(c);
|
cr12.add(c);
|
||||||
this.cardCounts.put(c.getName(), 0);
|
this.cardCounts.put(c.getName(), 0);
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ public class Generate3ColorDeck {
|
|||||||
|
|
||||||
// select cards to build card pools using a mana curve
|
// select cards to build card pools using a mana curve
|
||||||
for (int i = 3; i > 0; i--) {
|
for (int i = 3; i > 0; i--) {
|
||||||
if (i==1) {
|
if (i == 1) {
|
||||||
maxCMC[0] = 20; //the last category is open ended
|
maxCMC[0] = 20; //the last category is open ended
|
||||||
i = 0; // this reduces the number of cards in the last category to 6
|
i = 0; // this reduces the number of cards in the last category to 6
|
||||||
}
|
}
|
||||||
@@ -219,7 +219,7 @@ public class Generate3ColorDeck {
|
|||||||
final CardList sp2CMC = sp2.filter(cmcF);
|
final CardList sp2CMC = sp2.filter(cmcF);
|
||||||
final CardList sp3CMC = sp3.filter(cmcF);
|
final CardList sp3CMC = sp3.filter(cmcF);
|
||||||
|
|
||||||
for (int j = 0; j < i+1; j++) {
|
for (int j = 0; j < i + 1; j++) {
|
||||||
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
||||||
cr123.add(c);
|
cr123.add(c);
|
||||||
this.cardCounts.put(c.getName(), 0);
|
this.cardCounts.put(c.getName(), 0);
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ public class Generate5ColorDeck {
|
|||||||
|
|
||||||
// select cards to build card pools using a mana curve
|
// select cards to build card pools using a mana curve
|
||||||
for (int i = 3; i > 0; i--) {
|
for (int i = 3; i > 0; i--) {
|
||||||
if (i==1) {
|
if (i == 1) {
|
||||||
maxCMC[0] = 20; //the last category is open ended
|
maxCMC[0] = 20; //the last category is open ended
|
||||||
}
|
}
|
||||||
final CardList cr1CMC = cr1.filter(cmcF);
|
final CardList cr1CMC = cr1.filter(cmcF);
|
||||||
|
|||||||
Reference in New Issue
Block a user