attribute component - functionality NYI

This commit is contained in:
Llywelwyn 2023-07-21 21:43:24 +01:00
parent c39f2cb013
commit e2afd47830
4 changed files with 33 additions and 4 deletions

View file

@ -88,6 +88,23 @@ pub struct CombatStats {
pub power: i32,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Attribute {
pub base: i32,
pub modifiers: i32,
pub bonus: i32,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct Attributes {
pub strength: Attribute,
pub dexterity: Attribute,
pub constitution: Attribute,
pub intelligence: Attribute,
pub wisdom: Attribute,
pub charisma: Attribute,
}
#[derive(Component, Debug, ConvertSaveload, Clone)]
pub struct WantsToMelee {
pub target: Entity,