Improved text generation/output

This commit is contained in:
LevelX2 2012-09-24 07:56:01 +02:00
parent 4ec874f8c7
commit 1f8470636f
2 changed files with 5 additions and 3 deletions

View file

@ -83,6 +83,7 @@ public class RemoveVariableCountersSourceCost extends CostImpl<RemoveVariableCou
permanent.removeCounters(name, amountPaid, game);
this.paid = true;
}
game.informPlayers(player.getName() + " removes " + this.amountPaid + " " + name + " counter from " + permanent.getName());
return paid;
}

View file

@ -53,12 +53,13 @@ public class SacrificeSourceUnlessPaysEffect extends OneShotEffect<SacrificeSour
public String getText(Mode mode) {
StringBuilder sb = new StringBuilder("sacrifice {this} unless you ");
String costText = cost.getText();
if (costText.toLowerCase().startsWith("discard")) {
if (costText.toLowerCase().startsWith("discard") || costText.toLowerCase().startsWith("remove")) {
sb.append(costText.substring(0, 1).toLowerCase());
sb.append(costText.substring(1));
}
else
}
else {
sb.append("pay ").append(costText);
}
return sb.toString();