fixed life payment cost text

This commit is contained in:
Evan Kranzler 2020-10-06 19:53:21 -04:00
parent 57022068d3
commit d3484ddc5d

View file

@ -18,13 +18,12 @@ public class PayLifeCost extends CostImpl {
private final DynamicValue amount;
public PayLifeCost(int amount) {
this.amount = StaticValue.get(amount);
this.text = "Pay " + Integer.toString(amount) + " life";
this(StaticValue.get(amount), Integer.toString(amount) + " life");
}
public PayLifeCost(DynamicValue amount, String text) {
this.amount = amount.copy();
this.text = "Pay " + text;
this.text = "pay " + text;
}
public PayLifeCost(PayLifeCost cost) {