mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
STX: Golden Ratio, Strixhaven Stadium and more
This commit is contained in:
@@ -796,6 +796,20 @@ public class CardFactoryUtil {
|
||||
return doXMath(crdname.size(), m, c);
|
||||
}
|
||||
|
||||
if (l[0].startsWith("DifferentPower_")) {
|
||||
final List<Integer> powers = Lists.newArrayList();
|
||||
final String restriction = l[0].substring(15);
|
||||
final String[] rest = restriction.split(",");
|
||||
CardCollection list = CardLists.getValidCards(cc.getGame().getCardsInGame(), rest, cc, c, null);
|
||||
for (final Card card : list) {
|
||||
Integer pow = card.getNetPower();
|
||||
if (!powers.contains(pow)) {
|
||||
powers.add(pow);
|
||||
}
|
||||
}
|
||||
return doXMath(powers.size(), m, c);
|
||||
}
|
||||
|
||||
if (l[0].startsWith("RememberedSize")) {
|
||||
return doXMath(c.getRememberedCount(), m, c);
|
||||
}
|
||||
|
||||
@@ -141,6 +141,8 @@ public enum CounterEnumType {
|
||||
|
||||
HIT("HIT", 255, 245, 195),
|
||||
|
||||
HONE("HONE", 51, 227, 255),
|
||||
|
||||
HOOFPRINT("HOOF", 233, 189, 170),
|
||||
|
||||
HOUR("HOUR", 198, 197, 210),
|
||||
@@ -231,6 +233,8 @@ public enum CounterEnumType {
|
||||
|
||||
PHYLACTERY("PHYLA", 117, 219, 153),
|
||||
|
||||
POINT("POINT", 153, 255, 130),
|
||||
|
||||
POLYP("POLYP", 236, 185, 198),
|
||||
|
||||
PREY("PREY", 240, 0, 0),
|
||||
|
||||
Reference in New Issue
Block a user