From 4403cf272eee77edb982beca2d10df66c3a8d92a Mon Sep 17 00:00:00 2001 From: Sloth Date: Thu, 26 Jul 2012 19:05:13 +0000 Subject: [PATCH] - Cleanup in Upkeep. --- src/main/java/forge/game/phase/Upkeep.java | 140 --------------------- 1 file changed, 140 deletions(-) diff --git a/src/main/java/forge/game/phase/Upkeep.java b/src/main/java/forge/game/phase/Upkeep.java index 03b0494798c..e9f043d4598 100644 --- a/src/main/java/forge/game/phase/Upkeep.java +++ b/src/main/java/forge/game/phase/Upkeep.java @@ -78,7 +78,6 @@ public class Upkeep extends Phase implements java.io.Serializable { Upkeep.upkeepEcho(); Upkeep.upkeepTheAbyss(); - //Upkeep.upkeepYawgmothDemon(); Upkeep.upkeepDropOfHoney(); Upkeep.upkeepDemonicHordes(); Upkeep.upkeepTangleWire(); @@ -533,81 +532,6 @@ public class Upkeep extends Phase implements java.io.Serializable { } // end for } // The Abyss - /** - *

- * upkeepYawgmothDemon. - *

- */ - /*private static void upkeepYawgmothDemon() { - /* - * At the beginning of your upkeep, you may sacrifice an artifact. If - * you don't, tap Yawgmoth Demon and it deals 2 damage to you. - */ - /*final Player player = Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn(); - final CardList cards = player.getCardsIn(ZoneType.Battlefield, "Yawgmoth Demon"); - - for (int i = 0; i < cards.size(); i++) { - final Card c = cards.get(i); - - final Ability sacrificeArtifact = new Ability(c, "") { - @Override - public void resolve() { - final CardList artifacts = player.getCardsIn(ZoneType.Battlefield).filter(CardListFilter.ARTIFACTS); - - if (player.isHuman()) { - AllZone.getInputControl().setInput(new Input() { - private static final long serialVersionUID = -1698502376924356936L; - - @Override - public void showMessage() { - CMatchUI.SINGLETON_INSTANCE - .showMessage( - "Yawgmoth Demon - Select one artifact to sacrifice or be dealt 2 damage"); - ButtonUtil.enableOnlyCancel(); - } - - @Override - public void selectButtonCancel() { - tapAndDamage(player); - this.stop(); - } - - @Override - public void selectCard(final Card artifact, final PlayerZone zone) { - // probably need to restrict by controller also - if (artifact.isArtifact() && zone.is(ZoneType.Battlefield) - && zone.getPlayer().isHuman()) { - Singletons.getModel().getGameAction().sacrifice(artifact, null); - this.stop(); - } - } // selectCard() - }); // Input - } else { // computer - final Card target = CardFactoryUtil.getCheapestPermanentAI(artifacts, this, false); - if (null == target) { - this.tapAndDamage(player); - } else { - Singletons.getModel().getGameAction().sacrifice(target, null); - } - } - } // resolve - - private void tapAndDamage(final Player player) { - c.tap(); - player.addDamage(2, c); - } - }; - - final StringBuilder sb = new StringBuilder(); - sb.append(c.getName()).append(" - sacrifice an artifact or "); - sb.append(c.getName()).append(" becomes tapped and deals 2 damage to you."); - sacrificeArtifact.setStackDescription(sb.toString()); - - AllZone.getStack().addSimultaneousStackEntry(sacrificeArtifact); - - } // end for - }*/ - /** *

* upkeepDropOfHoney. @@ -2309,70 +2233,6 @@ public class Upkeep extends Phase implements java.io.Serializable { } } - /** - *

- * upkeepCarnophage. - *

- */ - /*private static void upkeepCarnophage() { - final Player player = Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn(); - - final CardList list = player.getCardsIn(Zone.Battlefield, "Carnophage"); - if (player.isHuman()) { - for (int i = 0; i < list.size(); i++) { - final Card c = list.get(i); - final String[] choices = { "Yes", "No" }; - final Object choice = GuiUtils.getChoice("Pay Carnophage's upkeep?", choices); - if (choice.equals("Yes")) { - player.loseLife(1, c); - } else { - c.tap(); - } - } - } else if (player.isComputer()) { - for (int i = 0; i < list.size(); i++) { - final Card c = list.get(i); - if (AllZone.getComputerPlayer().getLife() > 1) { - player.loseLife(1, c); - } else { - c.tap(); - } - } - } - }*/ // upkeepCarnophage - - /** - *

- * upkeepSangrophage. - *

- */ - /*private static void upkeepSangrophage() { - final Player player = Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn(); - - final CardList list = player.getCardsIn(Zone.Battlefield, "Sangrophage"); - if (player.isHuman()) { - for (int i = 0; i < list.size(); i++) { - final Card c = list.get(i); - final String[] choices = { "Yes", "No" }; - final Object choice = GuiUtils.getChoice("Pay Sangrophage's upkeep?", choices); - if (choice.equals("Yes")) { - player.loseLife(2, c); - } else { - c.tap(); - } - } - } else if (player.isComputer()) { - for (int i = 0; i < list.size(); i++) { - final Card c = list.get(i); - if (AllZone.getComputerPlayer().getLife() > 2) { - player.loseLife(2, c); - } else { - c.tap(); - } - } - } - }*/ // upkeepSangrophage - /** *

* upkeepCurseOfMisfortunes.