mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- CheckStyle.
This commit is contained in:
@@ -134,7 +134,7 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone {
|
||||
} else {
|
||||
toAdd = Integer.parseInt(numCounters);
|
||||
}
|
||||
|
||||
|
||||
c.addCounter(counter, toAdd);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public class BoosterGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
private void MergeAllFacedCards() {
|
||||
private void mergeAllFacedCards() {
|
||||
for (CardRarity v : CardRarity.values()) {
|
||||
List<CardPrinted> cp = new ArrayList<CardPrinted>(singleFacedByRarity.get(v));
|
||||
cp.addAll(twoFacedByRarity.get(v));
|
||||
@@ -92,7 +92,7 @@ public class BoosterGenerator {
|
||||
for (final CardPrinted c : cards) {
|
||||
this.addToRarity(c);
|
||||
}
|
||||
MergeAllFacedCards();
|
||||
mergeAllFacedCards();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,7 +106,7 @@ public class BoosterGenerator {
|
||||
for (final Entry<CardPrinted, Integer> e : dPool) {
|
||||
this.addToRarity(e.getKey());
|
||||
}
|
||||
MergeAllFacedCards();
|
||||
mergeAllFacedCards();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -124,7 +124,7 @@ public class BoosterGenerator {
|
||||
this.addToRarity(c);
|
||||
// System.out.println(c);
|
||||
}
|
||||
MergeAllFacedCards();
|
||||
mergeAllFacedCards();
|
||||
// System.out.println("done");
|
||||
}
|
||||
|
||||
|
||||
@@ -311,8 +311,8 @@ public class AbilityFactoryAttach {
|
||||
final Card attachSource = sa.getSourceCard();
|
||||
// TODO AttachSource is currently set for the Source of the Spell, but
|
||||
// at some point can support attaching a different card
|
||||
|
||||
// Don't equip if already equipping
|
||||
|
||||
// Don't equip if already equipping
|
||||
if (attachSource.getEquippingCard() != null && attachSource.getEquippingCard().getController().isComputer()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ public class AbilityFactoryEffect {
|
||||
if (params.containsKey("StaticAbilities")) {
|
||||
effectStaticAbilities = params.get("StaticAbilities").split(",");
|
||||
}
|
||||
|
||||
|
||||
if (params.containsKey("ReplacementEffects")) {
|
||||
effectReplacementEffects = params.get("ReplacementEffects").split(",");
|
||||
}
|
||||
@@ -441,12 +441,12 @@ public class AbilityFactoryEffect {
|
||||
eff.addStaticAbility(af.getHostCard().getSVar(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Grant replacement effects
|
||||
if (effectReplacementEffects != null) {
|
||||
for (final String s : effectReplacementEffects) {
|
||||
final String actualReplacement = af.getHostCard().getSVar(s);
|
||||
|
||||
|
||||
final ReplacementEffect parsedReplacement = ReplacementHandler.parseReplacement(actualReplacement, eff);
|
||||
eff.addReplacementEffect(parsedReplacement);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user