fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const ELVEN_LONGBOW: Card = Card {
    name: Name::ElvenLongbow,
    suit: Suit::Weapon,
    strength: 3,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(elven_longbow_bonus),
    penalty: None,
};

pub(crate) fn elven_longbow_bonus(hand: &ScoringHand) -> i16 {
    if hand.contains_name(Name::Beastmaster) ||
       hand.contains_name(Name::Warlord)     || 
       hand.contains_name(Name::ElvenArchers) {
        30
    } else {
        0
    }
}