pub struct MatchingArmorPassive {
strength: Percent,
agility: Percent,
stamina: Percent,
intellect: Percent,
}Expand description
DBC-provided primary-stat percentages gated by matching equipped armor.
Fields§
§strength: Percent§agility: Percent§stamina: Percent§intellect: PercentImplementations§
Source§impl MatchingArmorPassive
impl MatchingArmorPassive
Sourcepub const fn percent_for(self, attribute: Attribute) -> f64
pub const fn percent_for(self, attribute: Attribute) -> f64
Returns the DBC percentage for attribute.
pub(crate) fn add_scaled(&mut self, other: Self, scale: f64)
fn add_effect(&mut self, stat_mask: i32, percent: f64)
Trait Implementations§
Source§impl Clone for MatchingArmorPassive
impl Clone for MatchingArmorPassive
Source§fn clone(&self) -> MatchingArmorPassive
fn clone(&self) -> MatchingArmorPassive
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 MatchingArmorPassive
impl Debug for MatchingArmorPassive
Source§impl Default for MatchingArmorPassive
impl Default for MatchingArmorPassive
Source§fn default() -> MatchingArmorPassive
fn default() -> MatchingArmorPassive
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchingArmorPassive
impl PartialEq for MatchingArmorPassive
impl Copy for MatchingArmorPassive
impl StructuralPartialEq for MatchingArmorPassive
Auto Trait Implementations§
impl Freeze for MatchingArmorPassive
impl RefUnwindSafe for MatchingArmorPassive
impl Send for MatchingArmorPassive
impl Sync for MatchingArmorPassive
impl Unpin for MatchingArmorPassive
impl UnsafeUnpin for MatchingArmorPassive
impl UnwindSafe for MatchingArmorPassive
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