Page 1 of 1

small update to QuestData_BoosterPack

PostPosted: 19 Sep 2009, 20:38
by mtgrares
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

Code: Select all
        out.addAll(getCommon(nCommon));
        out.addAll(getcommon(nUncommon));
        out.addAll(getCommon(nRare));
to

Code: Select all
        out.addAll(getCommon(nCommon));
        out.addAll(getUncommon(nUncommon));
        out.addAll(getRare(nRare));
This is the new code for QuestData_BoosterPack.getNewCards()
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()
I submitted this change awhile ago and somehow it got changed back. I think the compile .class file are correct but the Java files aren't for some reason. I recompiled everything so I could set the date on the version that I packaged up for my Google Project page, which includes Chris's updated quest files.