KeywordWithCostAndAmount: add parse

This commit is contained in:
Hanmac
2016-07-20 06:15:33 +00:00
parent 825497833e
commit b448b49380

View File

@@ -13,6 +13,9 @@ public class KeywordWithCostAndAmount extends KeywordInstance<KeywordWithCostAnd
@Override @Override
protected void parse(String details) { protected void parse(String details) {
final String[] k = details.split(":");
amount = Integer.parseInt(k[0]);
cost = new Cost(k[1].split("\\|", 2)[0].trim(), false);
} }
@Override @Override