fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const MAGIC_WAND: Card = Card {
    name: Name::MagicWand,
    suit: Suit::Weapon,
    strength: 1,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(magic_wand_bonus),
    penalty: None,
};

pub(crate) fn magic_wand_bonus(hand: &ScoringHand) -> i16 {
    if hand.number_of_suit(Suit::Wizard) > 0 {
        25
    } else {
        0
    }
}