using DominionBase.Players;
using System;
using System.Collections.Generic;
namespace DominionBase.Cards.Renaissance
{
public class Villager : Token
{
public Villager()
: base("", "Villager")
{
}
public override string Title => "Spendable for 1 per villager during the Action phase";
public override bool IsPlayable => true;
public override IEnumerable PlayablePhases => new List { PhaseEnum.Action, PhaseEnum.ActionTreasure };
///
/// Used internally by the base Card class -- Don't use this.
///
internal override void Play(IPlayer player, int count)
{
if (count <= 0)
throw new ArgumentOutOfRangeException(nameof(count));
player.ReceiveBenefit(this, new CardBenefit { Actions = count });
}
}
}