Class UngoroPackRarityWeightedCardSource
java.lang.Object
net.demilich.metastone.game.spells.desc.source.CardSource
net.demilich.metastone.game.spells.desc.source.CatalogueSource
net.demilich.metastone.game.spells.desc.source.UngoroPackRarityWeightedCardSource
- All Implemented Interfaces:
Serializable,HasDesc<CardSourceDesc>,HasCardCreationSideEffects,HasWeights
This weighted card source returns legendaries and epics more frequently than normal and only cards from the
CardSet.JOURNEY_TO_UNGORO set.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the weight for the Un'Goro pack that Elise the Trailblazer's token gives you.protected CardListmatch(GameContext context, Entity source, Player player) Overridden by card source implementations to return a list of cards that usually get filtered in anEntityFilter.Methods inherited from class net.demilich.metastone.game.spells.desc.source.CatalogueSource
createMethods inherited from class net.demilich.metastone.game.spells.desc.source.CardSource
getArg, getCards, getDesc, getTargetPlayer, hasArg, match, setDesc
-
Constructor Details
-
UngoroPackRarityWeightedCardSource
-
-
Method Details
-
match
Description copied from class:CardSourceOverridden by card source implementations to return a list of cards that usually get filtered in anEntityFilter.See the implementations for examples of how, e.g. the graveyard is turned into a
CardListinstance by iterating through all the actors in the graveyard and retrieving theirEntity.getSourceCard().- Overrides:
matchin classCatalogueSource- Parameters:
context- The game contextsource- The entity that is the origin of this matching operationplayer- The casting player- Returns:
- A list of cards pre-filter.
-
getWeight
Gets the weight for the Un'Goro pack that Elise the Trailblazer's token gives you.The values here are very eyeballed.
- Parameters:
targetPlayer- The player to calculate this with respect to.card- The card.- Returns:
- The weight.
-