mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Replaced inefficient list operation
This commit is contained in:
@@ -4,7 +4,9 @@ import forge.CardList;
|
|||||||
import forge.Constant;
|
import forge.Constant;
|
||||||
import forge.properties.NewConstants;
|
import forge.properties.NewConstants;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
// The BoosterPack generates cards for the Card Pool in Quest Mode
|
// The BoosterPack generates cards for the Card Pool in Quest Mode
|
||||||
public class QuestBoosterPack implements NewConstants {
|
public class QuestBoosterPack implements NewConstants {
|
||||||
@@ -33,9 +35,7 @@ public class QuestBoosterPack implements NewConstants {
|
|||||||
if (i != 2)
|
if (i != 2)
|
||||||
started.add(Constant.Color.Colorless);
|
started.add(Constant.Color.Colorless);
|
||||||
|
|
||||||
for(String s : Constant.Color.onlyColors){
|
started.addAll(Arrays.asList(Constant.Color.onlyColors));
|
||||||
started.add(s);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (standardPool){
|
if (standardPool){
|
||||||
|
|||||||
Reference in New Issue
Block a user