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 PROTECTION_RUNE: Card = Card {
    name: Name::ProtectionRune,
    suit: Suit::Artifact,
    strength: 1,
    adder: None,
    wild: None,
    modifier: None,
    immunity: Some(protection_rune_imunity),
    blanks: None,
    bonus: None,
    penalty: None,
};

pub(crate) fn protection_rune_imunity(immunity: &mut CardCollection){
    *immunity += !CardCollection::new()
}