fantasy_realms_unofficial_api 0.1.0

An unofficial API for the Fantasy Realms card game.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

pub(crate) const WATER_ELEMENTAL: Card = Card {
    name: Name::WaterElemental,
    suit: Suit::Flood,
    strength: 4,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(water_elemental_bonus),
    penalty: None,
};

pub(crate) fn water_elemental_bonus(hand: &ScoringHand) -> i16 {
    15 * (hand.number_of_suit(Suit::Flood) - 1)
}