fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const ELVEN_ARCHERS: Card = Card {
    name: Name::ElvenArchers,
    suit: Suit::Army,
    strength: 10,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(elven_archers_bonus),
    penalty: None,
};

pub(crate) fn elven_archers_bonus(hand: &ScoringHand) -> i16 {
    if hand.number_of_suit(Suit::Weather) == 0 {
        5
    } else {
        0
    }
}