fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const SMOKE: Card = Card {
    name: Name::Smoke,
    suit: Suit::Weather,
    strength: 27,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: Some(smoke_blanks),
    bonus: None,
    penalty: None,
};

pub(crate) fn smoke_blanks(hand: &Vec<Card>, _: &CardCollection, blanks: &mut CardCollection) {
    if !hand.iter().any(|card| card.suit == Suit::Flame) {
        *blanks += Name::Smoke;
    }
}