pub struct DamageCalc {Show 15 fields
pub base: f64,
pub coefficient: f64,
pub attack_power: f64,
pub crit_chance: f64,
pub crit_multiplier: f64,
pub attack_table: AttackTable,
pub versatility: f64,
pub target_armor: f64,
pub armor_k: f64,
pub damage_multiplier: f64,
pub mastery_mult: f64,
pub weapon_min: f64,
pub weapon_max: f64,
pub weapon_multiplier: f64,
pub school: DamageSchool,
}Expand description
All inputs needed to compute a damage hit.
Fields§
§base: f64§coefficient: f64§attack_power: f64§crit_chance: f64§crit_multiplier: f64§attack_table: AttackTable§versatility: f64§target_armor: f64§armor_k: f64§damage_multiplier: f64§mastery_mult: f64§weapon_min: f64§weapon_max: f64§weapon_multiplier: f64§school: DamageSchoolImplementations§
Source§impl DamageCalc
impl DamageCalc
Trait Implementations§
Source§impl Clone for DamageCalc
impl Clone for DamageCalc
Source§fn clone(&self) -> DamageCalc
fn clone(&self) -> DamageCalc
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 moreAuto Trait Implementations§
impl Freeze for DamageCalc
impl RefUnwindSafe for DamageCalc
impl Send for DamageCalc
impl Sync for DamageCalc
impl Unpin for DamageCalc
impl UnsafeUnpin for DamageCalc
impl UnwindSafe for DamageCalc
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