mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
CardPool API has been extended by including utility methods to gather specific statistics about a cardPool. These statistics include: - Distribution (card count frequency) of the Card Edition included in the Pool - Distribution of the Card Edition Type included in the Pool - Retrieving the most common Card Edition Type among those included in the Pool - Determine whether or not the Pool "isModern" (i.e. the majority of cards is gathered from Modern Sets) - get the PivotCardEdition: this is the cornerstone of card art optimisation for decks The PivotCardEdition is the edition that will be considered the threshold boundary for cards in the pool. Any decision of card arts for other cards will be considered based on the PivotEdition, that is "alternativeCardPrint" released BEFORE or AFTER (depending on the current Card Art Preference) the PIVOT EDITION RELEASE DATE. Also, this commit includes an optimisation in add method implementation, getting rid of lots of duplicated code!