small update to QuestData_BoosterPack
I recompiled everything from scratch (I deleted all .class files and did "javac *.java") and QuestData_BoosterPack.getNewCards() gave me some odd error message about "Error with ArrayList<?>". So I converted the ArrayList<?> to Arraylist<Object>.
I also change the lines
I also change the lines
- Code: Select all
out.addAll(getCommon(nCommon));
out.addAll(getcommon(nUncommon));
out.addAll(getCommon(nRare));
- Code: Select all
out.addAll(getCommon(nCommon));
out.addAll(getUncommon(nUncommon));
out.addAll(getRare(nRare));
- Code: Select all
private ArrayList<Object> getNewCards(int nCommon, int nUncommon, int nRare) {
ArrayList<Object> out = new ArrayList();
out.addAll(getCommon(nCommon));
out.addAll(getUncommon(nUncommon));
out.addAll(getRare(nRare));
return out;
}//getNewCards()