private RequestPlayerGainCardFromSupply ( |
||
gameState | ||
acceptableCard | CardPredicate | |
description | string | |
isOptional | bool | |
defaultLocation | DeckPlacement | |
Résultat | Dominion.Card |
internal Card RequestPlayerGainCardFromSupply(GameState gameState, CardPredicate acceptableCard, string description, bool isOptional = false, DeckPlacement defaultLocation = DeckPlacement.Discard)
{
return RequestPlayerGainCardFromSupply(gameState, this, acceptableCard, description, isOptional, defaultLocation);
}
PlayerState::RequestPlayerGainCardFromSupply ( |
public override DeckPlacement DoSpecializedWhenGain(PlayerState currentPlayer, GameState gameState) { currentPlayer.RequestPlayerGainCardFromSupply( gameState, card => card.CurrentCoinCost(currentPlayer) < this.CurrentCoinCost(currentPlayer) && card.potionCost == 0, "Must gain a card costing less than this"); return DeckPlacement.Default; }