fantasy_realms_unofficial_api 0.1.0

An unofficial API for the Fantasy Realms card game.
Documentation
use super::*;

pub(crate) const WHIRLWIND: Card = Card {
    name: Name::Whirlwind,
    suit: Suit::Weather,
    strength: 13,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(whirlwind_bonus),
    penalty: None,
};

pub(crate) fn whirlwind_bonus(hand: &ScoringHand) -> i16 {
    if hand.contains_name(Name::Rainstorm) && 
      (hand.contains_name(Name::Blizzard) || 
       hand.contains_name(Name::GreatFlood)) {
        40
    } else {
        0
    }
}