pub struct CombatStats {Show 18 fields
pub attack_power: f64,
pub spell_power: f64,
pub crit_chance: f64,
pub haste: f64,
pub mastery: f64,
pub versatility: f64,
pub leech: f64,
pub crit_damage_bonus: f64,
pub armor: f64,
pub stamina: f64,
pub intellect: f64,
pub agility: f64,
pub strength: f64,
pub positive_strength_bonus: f64,
pub positive_agility_bonus: f64,
pub positive_stamina_bonus: f64,
pub positive_intellect_bonus: f64,
pub primary_stat_mult: f64,
}Expand description
Primary and secondary combat stats; secondary/tertiary stats are percent points (25.0 == 25%), not fractions.
Fields§
§attack_power: f64§spell_power: f64§crit_chance: f64§haste: f64§mastery: f64§versatility: f64§leech: f64§crit_damage_bonus: f64§armor: f64§stamina: f64§intellect: f64§agility: f64§strength: f64§positive_strength_bonus: f64Positive non-create strength included in strength.
positive_agility_bonus: f64Positive non-create agility included in agility.
positive_stamina_bonus: f64Positive non-create stamina included in stamina.
positive_intellect_bonus: f64Positive non-create intellect included in intellect.
primary_stat_mult: f64Implementations§
Source§impl CombatStats
impl CombatStats
pub fn new() -> CombatStats
Trait Implementations§
Source§impl Clone for CombatStats
impl Clone for CombatStats
Source§fn clone(&self) -> CombatStats
fn clone(&self) -> CombatStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CombatStats
impl Debug for CombatStats
Source§impl Default for CombatStats
impl Default for CombatStats
Source§fn default() -> CombatStats
fn default() -> CombatStats
Returns the “default value” for a type. Read more
Source§impl Serialize for CombatStats
impl Serialize for CombatStats
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
Auto Trait Implementations§
impl Freeze for CombatStats
impl RefUnwindSafe for CombatStats
impl Send for CombatStats
impl Sync for CombatStats
impl Unpin for CombatStats
impl UnsafeUnpin for CombatStats
impl UnwindSafe for CombatStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more