attribute component - functionality NYI
This commit is contained in:
parent
c39f2cb013
commit
e2afd47830
4 changed files with 33 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue