mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added Dream Halls.
This commit is contained in:
@@ -2264,6 +2264,8 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
final String costDesc = upkeepCostParams.length > 2 ? "- " + upkeepCostParams[2] : cost;
|
||||
sbLong.append(costDesc);
|
||||
sbLong.append("\r\n");
|
||||
} else if (keyword.get(i).startsWith("Alternative Cost")) {
|
||||
sbLong.append("Has alternative cost.");
|
||||
} else if (keyword.get(i).startsWith("Champion")) {
|
||||
final String k = this.getKeyword().get(i);
|
||||
final String[] kk = k.split(":");
|
||||
|
||||
@@ -1909,7 +1909,7 @@ public final class GameActionUtil {
|
||||
newSA.setBasicSpell(false);
|
||||
newSA.setPayCosts(cost);
|
||||
newSA.setManaCost("");
|
||||
newSA.setDescription(sa.getDescription() + " (by paying " + keyword.substring(17) + " instead of its mana cost)");
|
||||
newSA.setDescription(sa.getDescription() + " (by paying " + cost.toSimpleString() + " instead of its mana cost)");
|
||||
alternatives.add(newSA);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,6 +476,29 @@ public class Cost {
|
||||
return this.spellToString(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* toSimpleString.
|
||||
* </p>
|
||||
*
|
||||
* @return a {@link java.lang.String} object.
|
||||
*/
|
||||
public final String toSimpleString() {
|
||||
final StringBuilder cost = new StringBuilder();
|
||||
boolean first = true;
|
||||
for (final CostPart part : this.costParts) {
|
||||
if (part instanceof CostMana) {
|
||||
continue;
|
||||
}
|
||||
if (!first) {
|
||||
cost.append(" and ");
|
||||
}
|
||||
cost.append(part.toString());
|
||||
first = false;
|
||||
}
|
||||
return cost.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* spellToString.
|
||||
|
||||
Reference in New Issue
Block a user