rawmaster macros

This commit is contained in:
Llywelwyn 2023-08-21 18:05:08 +01:00
parent 8c11951258
commit fe19a449e3
3 changed files with 147 additions and 190 deletions

View file

@ -8,6 +8,7 @@ pub struct Item {
pub renderable: Option<Renderable>,
pub weight: Option<f32>,
pub value: Option<f32>,
pub equip: Option<Equippable>,
pub flags: Option<Vec<String>>,
pub effects: Option<HashMap<String, String>>,
pub magic: Option<MagicItem>,
@ -19,6 +20,14 @@ pub struct Name {
pub plural: String,
}
#[derive(Deserialize, Debug)]
pub struct Equippable {
pub slot: String,
pub flag: String,
pub damage: String,
pub to_hit: Option<i32>,
}
#[derive(Deserialize, Debug)]
pub struct Renderable {
pub glyph: String,