use super::*;
pub(crate) const SWAMP: Card = Card {
name: Name::Swamp,
suit: Suit::Flood,
strength: 18,
adder: None,
wild: None,
modifier: None,
immunity: None,
blanks: None,
bonus: None,
penalty: Some(swamp_penalty),
};
pub(crate) fn swamp_penalty(hand: &ScoringHand, immunity: &CardCollection) -> i16 {
let mut penalty: i16 = 0;
if !immunity.contains(Suit::Army) {
penalty += 3 * hand.number_of_suit(Suit::Army);
}
if !immunity.contains(Suit::Flame) {
penalty += 3 * hand.number_of_suit(Suit::Flame);
}
penalty
}