Optional Smart Token Art Selection#9756
Optional Smart Token Art Selection#9756clairchiara wants to merge 7 commits intoCard-Forge:masterfrom
Conversation
6a5500b to
33b26e7
Compare
33b26e7 to
56b2f75
Compare
| boolean pastRealEdition = false; | ||
| final EnumSet<CardEdition.Type> coreExpansionOrReprint = EnumSet.of(CardEdition.Type.CORE, CardEdition.Type.EXPANSION); | ||
| coreExpansionOrReprint.addAll(CardEdition.Type.REPRINT_SET_TYPES); | ||
| for (CardEdition edition : this.editions.getOrderedEditions(false)) { |
There was a problem hiding this comment.
No need for extra function.
editions is already an CardEdition.Collection extending Iterable<CardEdition>
There was a problem hiding this comment.
The goal is to find the closest edition to realEdition rather than stop at the first result (which would be the earliest release)
There was a problem hiding this comment.
@clairchiara no i mean this:
edition : this.editions.getOrderedEditions(false) returns Sorted Collection, but not reversed
Wouldn't edition : this.editions return the same? No need for extra getOrderedEditions with different parameter?
it is already an Iterable
There was a problem hiding this comment.
this.editions isn't sorted as far as I can tell
79d02e3 to
b04d6b8
Compare
|
Messed up the rebase… |
54ecbc4 to
e7dc8da
Compare
e7dc8da to
72b4444
Compare
169efd2 to
bc2ac54
Compare
04a8c3e to
0f0f536
Compare
0f0f536 to
0e42353
Compare
…(smart token art), Card-Forge#9383 (castability highlighting), Card-Forge#9890 (HiDPI deck icons)
93dde2f to
cbf46b8
Compare
cbf46b8 to
1fcbdbd
Compare
If selected, when a token isn't found for a given set, it picks the latest art released before the set or, if still not found, the earliest art released after the set
1fcbdbd to
78df607
Compare
|
It doesn’t seem that this is required anymore (#10518) |
When token art for a specific set is missing, Forge currently selects a random token art. This PR introduces an optional deterministic fallback strategy based on set release order.
When art isn’t found for a given set, it goes through every set in release order and tries to find the latest art released before the set or, if still not found, the earliest art released after the set.