fantasy_realms_unofficial_api 0.1.0

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

pub(crate) const LIGHTNING: Card = Card {
    name: Name::Lightning,
    suit: Suit::Flame,
    strength: 11,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(lightning_bonus),
    penalty: None,
};

pub(crate) fn lightning_bonus(hand: &ScoringHand) -> i16 {
    if hand.contains_name(Name::Rainstorm) {
        30
    } else {
        0
    }
}