STX: Golden Ratio, Strixhaven Stadium and more

This commit is contained in:
Hythonia
2021-04-01 11:26:34 +02:00
parent 3f3ce39b30
commit 3e3b14779e
9 changed files with 69 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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),