- More Quest updates.

This commit is contained in:
jendave
2011-08-06 04:21:50 +00:00
parent e79c00232c
commit e533e43edb
3 changed files with 33 additions and 7 deletions

View File

@@ -213,10 +213,13 @@ public class Gui_WinLose extends JFrame implements NewConstants {
if (!Constant.Quest.fantasyQuest[0])
AllZone.GameAction.newGame(Constant.Runtime.HumanDeck[0], Constant.Runtime.ComputerDeck[0]);
else{
if (AllZone.QuestAssignment != null)
QuestUtil.setupQuest(AllZone.QuestAssignment);
//AllZone.GameAction.newGame(Constant.Runtime.HumanDeck[0], Constant.Runtime.ComputerDeck[0], humanList, computerList, humanLife, computerLife);
CardList humanList = QuestUtil.getHumanPlantAndPet(AllZone.QuestData, AllZone.QuestAssignment);
CardList computerList = new CardList();
int humanLife = QuestUtil.getLife(AllZone.QuestData);
int computerLife = 20;
@@ -237,6 +240,8 @@ public class Gui_WinLose extends JFrame implements NewConstants {
AllZone.GameAction.newGame(Constant.Runtime.HumanDeck[0], Constant.Runtime.ComputerDeck[0]);
else{
//AllZone.GameAction.newGame(Constant.Runtime.HumanDeck[0], Constant.Runtime.ComputerDeck[0], humanList, computerList, humanLife, computerLife);
if (AllZone.QuestAssignment != null)
QuestUtil.setupQuest(AllZone.QuestAssignment);
CardList humanList = QuestUtil.getHumanPlantAndPet(AllZone.QuestData, AllZone.QuestAssignment);
CardList computerList = QuestUtil.getComputerCreatures(AllZone.QuestData, AllZone.QuestAssignment);

View File

@@ -217,7 +217,28 @@ public class QuestUtil {
}
else if (id == 8)
{
CardList humanList = new CardList();
for (int i=0;i<3;i++)
{
Card c = CardFactoryUtil.makeToken("Sheep", "G 0 1 Sheep", Constant.Player.Human, "G",
new String[] {"Creature","Sheep"}, 0, 1, new String[]{""}).get(0);
humanList.add(c);
}
qa.setHuman(humanList);
qa.setCardRewardList(pack.getRare(3));
}
else if (id == 9)
{
CardList humanList = new CardList();
Card c = AllZone.CardFactory.getCard("Trusty Machete", Constant.Player.Human);
humanList.add(c);
qa.setHuman(humanList);
for (int i=0;i<3;i++)
qa.addCompy("Wall of Wood");
qa.setCardRewardList(pack.getRare(4, 4));
}
}