mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -13,7 +13,7 @@ import forge.deck.DeckIO;
|
||||
import forge.item.PreconDeck;
|
||||
|
||||
/**
|
||||
* Very simple function - store all precons
|
||||
* Very simple function - store all precons.
|
||||
*
|
||||
*/
|
||||
public class QuestPreconManager {
|
||||
@@ -48,10 +48,10 @@ public class QuestPreconManager {
|
||||
*/
|
||||
public List<PreconDeck> getDecksForCurrent(QuestData q) {
|
||||
List<PreconDeck> meetRequirements = new ArrayList<PreconDeck>();
|
||||
for(PreconDeck deck : decks)
|
||||
{
|
||||
if( deck.getRecommendedDeals().meetsRequiremnts(q))
|
||||
for (PreconDeck deck : decks) {
|
||||
if (deck.getRecommendedDeals().meetsRequiremnts(q)) {
|
||||
meetRequirements.add(deck);
|
||||
}
|
||||
}
|
||||
return meetRequirements;
|
||||
}
|
||||
|
||||
@@ -311,8 +311,7 @@ public final class QuestUtilCards {
|
||||
final Predicate<CardSet> filterNotExt = Predicate.and(CardSet.Predicates.CAN_MAKE_BOOSTER,
|
||||
Predicate.not(filterExt));
|
||||
|
||||
public void generateBoostersInShop(int count)
|
||||
{
|
||||
public void generateBoostersInShop(int count) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
final int rollD100 = MyRandom.getRandom().nextInt(100);
|
||||
final Predicate<CardSet> filter = rollD100 < 40 ? filterT2booster : (rollD100 < 75 ? filterExtButT2
|
||||
@@ -321,8 +320,7 @@ public final class QuestUtilCards {
|
||||
}
|
||||
}
|
||||
|
||||
public void generatePreconsInShop(int count)
|
||||
{
|
||||
public void generatePreconsInShop(int count) {
|
||||
List<PreconDeck> validDecks = QuestData.getPreconManager().getDecksForCurrent(q);
|
||||
this.q.getShopList().addAllCards(Predicate.getTrue(PreconDeck.class).random(validDecks, count));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user