#[repr(u16)]pub enum Attribute {
Show 20 variants
None = 0,
Power = 1,
Precision = 2,
Toughness = 3,
Vitality = 4,
Ferocity = 5,
Healing = 6,
Condition = 7,
Concentration = 8,
Expertise = 9,
Armor = 10,
Agony = 11,
StatInc = 12,
PhysInc = 13,
CondInc = 14,
PhysRec = 15,
CondRec = 16,
AttackSpeed = 17,
SiphonInc = 18,
SiphonRec = 19,
}
Expand description
Attributes for buff formulas.
Used in StateChange::BuffFormula
events.
This enum is different from the game’s own attribute ids.
Variants§
None = 0
Power = 1
Power.
Precision = 2
Precision.
Toughness = 3
Toughness.
Vitality = 4
Vitality.
Ferocity = 5
Ferocity.
Healing = 6
Healing.
Condition = 7
Condition Damage.
Concentration = 8
Concentration.
Expertise = 9
Expertise.
Armor = 10
Armor.
Agony = 11
Agony Resistance.
StatInc = 12
Stat increase.
PhysInc = 13
Outgoing strike damage.
CondInc = 14
Outgoing condition damage.
PhysRec = 15
Incoming strike damage.
CondRec = 16
Incoming condition damage.
AttackSpeed = 17
Attack speed.
SiphonInc = 18
Outgoing life leech.
SiphonRec = 19
Incoming life leech.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Attribute, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Attribute, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Attribute
impl Ord for Attribute
source§impl PartialEq for Attribute
impl PartialEq for Attribute
source§impl PartialOrd for Attribute
impl PartialOrd for Attribute
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Attribute
impl Serialize for Attribute
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFromPrimitive for Attribute
impl TryFromPrimitive for Attribute
impl Copy for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more