mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Improved text generation/output
This commit is contained in:
parent
4ec874f8c7
commit
1f8470636f
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue