mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Conversion to StringBuilder. Still working on GameActionUtil.java.
This commit is contained in:
@@ -2116,8 +2116,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a red spell, remove a -1/-1 counter from Belligerent Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a red spell, remove a -1/-1 counter from Belligerent Hatchling.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2135,8 +2138,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability
|
}; // ability
|
||||||
|
|
||||||
ability.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a white spell, remove a -1/-1 counter from Belligerent Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a white spell, remove a -1/-1 counter from Belligerent Hatchling.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2167,8 +2173,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a black spell, remove a -1/-1 counter from Noxious Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a black spell, remove a -1/-1 counter from Noxious Hatchling.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2186,8 +2195,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability
|
}; // ability
|
||||||
|
|
||||||
ability.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a green spell, remove a -1/-1 counter from Noxious Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a green spell, remove a -1/-1 counter from Noxious Hatchling.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2218,8 +2230,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a blue spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a blue spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2237,8 +2252,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability
|
}; // ability
|
||||||
|
|
||||||
ability.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a green spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a green spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2269,8 +2287,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a black spell, remove a -1/-1 counter from Voracious Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a black spell, remove a -1/-1 counter from Voracious Hatchling.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2288,8 +2309,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability
|
}; // ability
|
||||||
|
|
||||||
ability.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a white spell, remove a -1/-1 counter from Voracious Hatchling.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a white spell, remove a -1/-1 counter from Voracious Hatchling.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -2331,8 +2355,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a spell, you may put two +1/+1 counters on Witch-Maw Nephilim.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a spell, you may put two +1/+1 counters on Witch-Maw Nephilim.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2371,8 +2398,11 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played an instant or sorcery spell, you may untap Gelectrode.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played an instant or sorcery spell, you may untap Gelectrode.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2401,7 +2431,8 @@ public class GameActionUtil {
|
|||||||
title.append("Cinder Pyromancer Ability");
|
title.append("Cinder Pyromancer Ability");
|
||||||
StringBuilder message = new StringBuilder();
|
StringBuilder message = new StringBuilder();
|
||||||
message.append("Will you untap your Cinder Pyromancer?");
|
message.append("Will you untap your Cinder Pyromancer?");
|
||||||
int choice = JOptionPane.showConfirmDialog(null, message.toString(), title.toString(), JOptionPane.YES_NO_OPTION);
|
int choice = JOptionPane.showConfirmDialog(
|
||||||
|
null, message.toString(), title.toString(), JOptionPane.YES_NO_OPTION);
|
||||||
|
|
||||||
if (choice == JOptionPane.YES_OPTION) {
|
if (choice == JOptionPane.YES_OPTION) {
|
||||||
card.untap();
|
card.untap();
|
||||||
@@ -2415,7 +2446,8 @@ public class GameActionUtil {
|
|||||||
};// ability2
|
};// ability2
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController()).append(" played a red spell, you may untap Cinder Pyromancer.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a red spell, you may untap Cinder Pyromancer.");
|
||||||
ability2.setStackDescription(sb.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -2444,8 +2476,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
if(!(card.getController().equals(c.getController()))) {
|
if(!(card.getController().equals(c.getController()))) {
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController() + " played a spell, "
|
|
||||||
+ drawer + " draws seven cards.");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a spell, ").append(drawer).append(" draws seven cards.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2476,8 +2512,11 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController() + " played a spell, " + drawer
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " draws three cards.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a spell, ").append(drawer).append(" draws three cards.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2521,10 +2560,13 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
if(!(card.getController().equals(c.getController()))) {
|
if(!(card.getController().equals(c.getController()))) {
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController() + " played a spell, "
|
|
||||||
+ drawer + " puts the top two cards of his or her library into his or her graveyard.");
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
|
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(card.getName()).append(" - ").append(c.getController()).append(" played a spell, ");
|
||||||
|
sb.append(drawer).append(" puts the top two cards of his or her library into his or her graveyard.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2551,8 +2593,11 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController() + " played a black spell, "
|
StringBuilder sb = new StringBuilder();
|
||||||
+ card.getController() + " gains 1 life.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a black spell, ").append(card.getController()).append(" gains 1 life.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2610,13 +2655,14 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController()).append(" plays an enchantment spell and ");
|
sb.append(card.getName()).append(" - ").append(c.getController()).append(" plays an enchantment spell and ");
|
||||||
if (card.getName().equals("Verduran Enchantress") || card.getName().equals("Mesa Enchantress")
|
|
||||||
|
if (card.getName().equals("Verduran Enchantress")
|
||||||
|
|| card.getName().equals("Mesa Enchantress")
|
||||||
|| card.getName().equals("Kor Spiritdancer")) {
|
|| card.getName().equals("Kor Spiritdancer")) {
|
||||||
sb.append("may draw a card.");
|
sb.append("may draw a card.");
|
||||||
} else {
|
} else {
|
||||||
sb.append("draws a card.");
|
sb.append("draws a card.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ability2.setStackDescription(sb.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}// for
|
}// for
|
||||||
@@ -2643,8 +2689,11 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " plays a Druid spell and draws a card");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" plays a Druid spell and draws a card");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
|
|
||||||
} // for
|
} // for
|
||||||
@@ -2670,8 +2719,11 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " plays a Legendary spell and draws a card");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" plays a Legendary spell and draws a card");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
|
|
||||||
} // for
|
} // for
|
||||||
|
|||||||
Reference in New Issue
Block a user