fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const HYDRA: Card = Card {
    name: Name::Hydra,
    suit: Suit::Beast,
    strength: 12,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(hydra_bonus),
    penalty: None,
};

pub(crate) fn hydra_bonus(hand: &ScoringHand) -> i16 {
    if hand.contains_name(Name::Swamp) {
        28
    } else {
        0
    }
}