mp regeneration

using nethack calcs as a placeholder for now
This commit is contained in:
Llywelwyn 2023-08-22 19:07:50 +01:00
parent c46e302274
commit 4118783597
6 changed files with 64 additions and 11 deletions

View file

@ -190,6 +190,17 @@ pub struct Skills {
pub skills: HashMap<Skill, i32>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct KnownSpell {
pub display_name: String,
pub mana_cost: i32,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct KnownSpells {
pub spells: Vec<KnownSpell>,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct Attributes {
pub strength: Attribute,