mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
KeywordWithCostAndAmount: add parse
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user