It is currently 30 Oct 2025, 17:46
   
Text Size

small update to QuestData_BoosterPack

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

small update to QuestData_BoosterPack

Postby mtgrares » 19 Sep 2009, 20:38

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.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 40 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 40 users online :: 0 registered, 0 hidden and 40 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 40 guests

Login Form