- Made a bunch of quest updates (updated text for wolf/plant, new plant "Braidwood Cup" ability, + some fixes...).

This commit is contained in:
jendave
2011-08-06 04:28:10 +00:00
parent 842947f8ad
commit 3faac09b3e
3 changed files with 59 additions and 8 deletions

View File

@@ -155,11 +155,12 @@ public class Gui_PetShop extends JFrame implements NewConstants{
sb.append("1/2");
else if (questData.getWolfPetLevel() == 2)
sb.append("2/2");
else if (questData.getWolfPetLevel() == 3)
else /*if (questData.getWolfPetLevel() == 3)*/
sb.append("2/2");
sb.append(" Wolf Pet");
sb.append(" Wolf Pet (current level ");
sb.append(questData.getWolfPetLevel());
sb.append("/4)");
return sb.toString();
}
@@ -187,7 +188,7 @@ public class Gui_PetShop extends JFrame implements NewConstants{
wolfPetStatsLabel.setFont(new Font("sserif", Font.BOLD, 12));
wolfPetStatsLabel.setText(getWolfStats());
wolfPetStatsLabel.setBounds(new Rectangle(10, 65, 100, 15));
wolfPetStatsLabel.setBounds(new Rectangle(10, 65, 200, 15));
wolfPetDescLabel.setFont(new Font("sserif", 0, 12));
wolfPetDescLabel.setText(getDesc());
@@ -208,7 +209,7 @@ public class Gui_PetShop extends JFrame implements NewConstants{
wolfPetIconLabel.setIconTextGap(0);
buyWolfPetButton.setEnabled(true);
if (questData.getCredits() < getPrice())
if (questData.getCredits() < getPrice() || questData.getWolfPetLevel() >= 4)
buyWolfPetButton.setEnabled(false);
quitButton.setBounds(new Rectangle(140, 297, 120, 50));

View File

@@ -111,6 +111,13 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
{
sb.append("Grow venomous thorns on your plant.<br>");
sb.append("<u><b>Level 5</b></u>: Deathtouch<br>");
sb.append("<u><b>Next Level</b></u>: 1/4<br>");
}
else if (questData.getPlantLevel() == 5)
{
sb.append("As well as gaining more toughness,<br>");
sb.append("your plant will have healing properties.<br>");
sb.append("<u><b>Level 6</b></u>: 1/4 and Tap, you gain 1 life.");
}
else
{
@@ -134,6 +141,8 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
l = 300;
else if (questData.getPlantLevel() == 4)
l = 750;
else if (questData.getPlantLevel() == 5)
l = 1000;
return l;
}
@@ -158,8 +167,14 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
sb.append("0/3");
else if (questData.getPlantLevel() == 3)
sb.append("1/3");
else if (questData.getPlantLevel() == 4)
sb.append("1/3");
else
sb.append("1/4");
sb.append(" Plant Wall");
sb.append(" Plant Wall (current level ");
sb.append(questData.getPlantLevel());
sb.append("/6)");
return sb.toString();
}
@@ -175,6 +190,10 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
s = "g_0_3_plant_wall_small.jpg";
else if (questData.getPlantLevel() == 3)
s = "g_1_3_plant_wall_small.jpg";
else if (questData.getPlantLevel() == 4)
s = "g_1_3_plant_wall_deathtouch_small.jpg";
else if (questData.getPlantLevel() == 5)
s = "g_1_4_plant_wall_small.jpg";
return s;
}
@@ -188,7 +207,7 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
plantStatsLabel.setFont(new Font("sserif", Font.BOLD, 12));
plantStatsLabel.setText(getStats());
plantStatsLabel.setBounds(new Rectangle(10, 65, 100, 15));
plantStatsLabel.setBounds(new Rectangle(10, 65, 200, 15));
plantDescLabel.setFont(new Font("sserif", 0, 12));
plantDescLabel.setText(getDesc());
@@ -215,7 +234,7 @@ public class Gui_PlantShop extends JFrame implements NewConstants{
buyPlantButton.setEnabled(true);
if (questData.getCredits() < getPrice() || questData.getPlantLevel() >= 5)
if (questData.getCredits() < getPrice() || questData.getPlantLevel() >= 6)
buyPlantButton.setEnabled(false);
quitButton.setBounds(new Rectangle(140, 297, 120, 50));

View File

@@ -92,6 +92,15 @@ public class QuestUtil {
keyword = "Deathtouch";
}
else if (level == 6)
{
imageName = "G 1 4 Plant Wall";
baseDefense = 4;
baseAttack = 1;
keyword = "Deathtouch";
}
Card c = new Card();
c.setName("Plant Wall");
@@ -115,6 +124,28 @@ public class QuestUtil {
c.setBaseAttack(baseAttack);
c.setBaseDefense(baseDefense);
if (level == 6)
{
final Card crd = c;
final Ability_Tap ability = new Ability_Tap(c) {
private static final long serialVersionUID = 7546242087593613719L;
@Override
public boolean canPlayAI() {
return AllZone.Phase.getPhase().equals(Constant.Phase.Main2);
}
@Override
public void resolve() {
AllZone.GameAction.getPlayerLife(crd.getController()).addLife(1);
}
};
c.addSpellAbility(ability);
ability.setDescription("tap: You gain 1 life.");
ability.setStackDescription("Plant Wall - " + c.getController() + " gains 1 life.");
c.setText("tap: You gain 1 life.");
}
return c;
}//getPlantToken