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 FORGE: Card = Card {
    name: Name::Forge,
    suit: Suit::Flame,
    strength: 9,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(forge_bonus),
    penalty: None,
};

pub(crate) fn forge_bonus(hand: &ScoringHand) -> i16 {
    9 * (hand.number_of_suit(Suit::Weapon) + hand.number_of_suit(Suit::Artifact))
}