mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Modified QuestData_BoosterPack to use SVar:Rarity instead of rarity text files.
This commit is contained in:
@@ -99,9 +99,47 @@ public class QuestData_BoosterPack implements NewConstants {
|
||||
}//colorStats()
|
||||
|
||||
public QuestData_BoosterPack() {
|
||||
setup(ForgeProps.getFile(QUEST.COMMON), commonCreature, commonSpell);
|
||||
setup(ForgeProps.getFile(QUEST.UNCOMMON), uncommonCreature, uncommonSpell);
|
||||
setup(ForgeProps.getFile(QUEST.RARE), rareCreature, rareSpell);
|
||||
//setup(ForgeProps.getFile(QUEST.COMMON), commonCreature, commonSpell);
|
||||
//setup(ForgeProps.getFile(QUEST.UNCOMMON), uncommonCreature, uncommonSpell);
|
||||
//setup(ForgeProps.getFile(QUEST.RARE), rareCreature, rareSpell);
|
||||
|
||||
CardList AllCards = new CardList(AllZone.CardFactory.getAllCards().toArray());
|
||||
|
||||
for (int i=0; i<AllCards.size(); i++)
|
||||
{
|
||||
Card aCard = AllCards.get(i);
|
||||
String rr = aCard.getSVar("Rarity");
|
||||
|
||||
if (rr.equals("Common"))
|
||||
{
|
||||
if (aCard.isCreature())
|
||||
commonCreature.add(aCard.getName());
|
||||
else
|
||||
commonSpell.add(aCard.getName());
|
||||
}
|
||||
else if (rr.equals("Uncommon"))
|
||||
{
|
||||
if (aCard.isCreature())
|
||||
uncommonCreature.add(aCard.getName());
|
||||
else
|
||||
uncommonSpell.add(aCard.getName());
|
||||
}
|
||||
else if (rr.equals("Rare"))
|
||||
{
|
||||
if (aCard.isCreature())
|
||||
rareCreature.add(aCard.getName());
|
||||
else
|
||||
rareSpell.add(aCard.getName());
|
||||
}
|
||||
else if (rr.equals("Mythic"))
|
||||
{
|
||||
if (aCard.isCreature())
|
||||
rareCreature.add(aCard.getName());
|
||||
else
|
||||
rareSpell.add(aCard.getName());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private int getColorIndex(int n) {
|
||||
|
||||
Reference in New Issue
Block a user