(CardEdition edition)
| 31 | private final int hash; |
| 32 | |
| 33 | public static BoosterPack fromSet(CardEdition edition) { |
| 34 | String boosterKind = edition.getRandomBoosterKind(); |
| 35 | if (boosterKind == null) { |
| 36 | return null; |
| 37 | } |
| 38 | |
| 39 | SealedTemplate d = edition.getBoosterTemplate(boosterKind); |
| 40 | StringBuilder sb = new StringBuilder(edition.getName()); |
| 41 | sb.append(" ").append(boosterKind); |
| 42 | return new BoosterPack(sb.toString(), d); |
| 43 | } |
| 44 | |
| 45 | public static BoosterPack fromColor(final String color) { |
| 46 | return new BoosterPack(color, new SealedTemplate("?", ImmutableList.of( |
no test coverage detected