1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-10-16 17:47:29 +00:00

Add missing sets field

This commit is contained in:
Steffo 2022-08-04 21:23:11 +02:00
parent e933030b80
commit e6a36d6aa7
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,3 +1,5 @@
use crate::schema::corebundle::CoreSet;
use super::keyword::CoreKeyword;
use super::rarity::CoreRarity;
use super::region::CoreRegion;
@ -25,6 +27,9 @@ pub struct CoreGlobals {
/// A [Vec] of all [CoreRarity]s in the game.
pub rarities: Vec<CoreRarity>,
/// A [Vec] of all [CardSet]s in the game.
pub sets: Vec<CoreSet>,
}
@ -116,6 +121,13 @@ mod tests {
name: "COMMON".to_string(),
}
],
sets: vec![
CoreSet {
set: CardSet::CallOfTheMountain,
name: "Call of the Mountain".to_string(),
icon_png: "http://dd.b.pvp.net/3_11_0/core/en_us/img/sets/set3_crispmip.png".to_string(),
}
]
}
)
}