Show energy symbols in cost payment

This commit is contained in:
drdev
2016-09-27 02:20:43 +00:00
parent 32a7d0c138
commit b2cbd1353b

View File

@@ -48,7 +48,12 @@ public class CostPayEnergy extends CostPart {
@Override
public final String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("Pay ").append(this.getAmount()).append(" Energy");
sb.append("Pay ");
int count = Integer.parseInt(getAmount()) - paidAmount;
for (int i = 0; i < count; i++) {
sb.append("{E}");
}
return sb.toString();
}