- StringBuilder.

This commit is contained in:
Chris
2011-11-12 21:04:42 +00:00
parent b4fca21dfc
commit 3128e10d66

View File

@@ -101,8 +101,12 @@ public class CardFactoryPlaneswalkers {
&& (turn[0] != AllZone.getPhase().getTurn()) && Phase.canCastSorcery(card.getController()); && (turn[0] != AllZone.getPhase().getTurn()) && Phase.canCastSorcery(card.getController());
} // canPlay() } // canPlay()
}; };
ability1.setDescription("0: Reveal the top card of your library and put it " final StringBuilder ab1 = new StringBuilder();
+ "into your hand. Sarkhan the Mad deals damage to himself equal to that card's converted mana cost."); ab1.append("0: Reveal the top card of your library and put it ");
ab1.append("into your hand. Sarkhan the Mad deals damage ");
ab1.append("to himself equal to that card's converted mana cost.");
ability1.setDescription(ab1.toString());
final StringBuilder stack1 = new StringBuilder(); final StringBuilder stack1 = new StringBuilder();
stack1.append(card.getName()).append(" - Reveal top card and do damage."); stack1.append(card.getName()).append(" - Reveal top card and do damage.");
ability1.setStackDescription(stack1.toString()); ability1.setStackDescription(stack1.toString());
@@ -155,10 +159,10 @@ public class CardFactoryPlaneswalkers {
} }
}); });
this.setTargetCard(CardFactoryUtil.getCheapestCreatureAI(cards, this, true)); this.setTargetCard(CardFactoryUtil.getCheapestCreatureAI(cards, this, true));
Log.debug( final StringBuilder sb = new StringBuilder();
"Sarkhan the Mad", sb.append("Sarkhan the Mad caused sacrifice of: ");
"Sarkhan the Mad caused sacrifice of: " sb.append(CardFactoryUtil.getCheapestCreatureAI(cards, this, true));
+ CardFactoryUtil.getCheapestCreatureAI(cards, this, true)); Log.debug("Sarkhan the Mad", sb.toString());
} }
@Override @Override
@@ -168,8 +172,11 @@ public class CardFactoryPlaneswalkers {
&& Phase.canCastSorcery(card.getController()); && Phase.canCastSorcery(card.getController());
} // canPlay() } // canPlay()
}; };
ability2.setDescription("-2: Target creature's controller sacrifices it, " final StringBuilder ab2 = new StringBuilder();
+ "then that player puts a 5/5 red Dragon creature token with flying onto the battlefield."); ab2.append("-2: Target creature's controller sacrifices it, ");
ab2.append("then that player puts a 5/5 red Dragon creature ");
ab2.append("token with flying onto the battlefield.");
ability2.setDescription(ab2.toString());
// ability3 // ability3
/* /*
@@ -211,8 +218,10 @@ public class CardFactoryPlaneswalkers {
&& Phase.canCastSorcery(card.getController()); && Phase.canCastSorcery(card.getController());
} // canPlay() } // canPlay()
}; };
ability3.setDescription("-4: Each Dragon creature you control " final StringBuilder ab3 = new StringBuilder();
+ "deals damage equal to its power to target player."); ab3.append("-4: Each Dragon creature you control ");
ab3.append("deals damage equal to its power to target player.");
ability3.setDescription(ab3.toString());
card.addSpellAbility(ability1); card.addSpellAbility(ability1);
card.addSpellAbility(ability2); card.addSpellAbility(ability2);