pub struct PetOwnerCoefficients {
pub armor: f64,
pub health: f64,
pub attack_power_from_attack_power: f64,
pub attack_power_from_spell_power: f64,
pub spell_power_from_attack_power: f64,
pub spell_power_from_spell_power: f64,
}Expand description
Owner-stat coefficients used to derive a pet’s snapshotted combat stats.
Fields§
§armor: f64§health: f64§attack_power_from_attack_power: f64§attack_power_from_spell_power: f64§spell_power_from_attack_power: f64§spell_power_from_spell_power: f64Implementations§
Source§impl PetOwnerCoefficients
impl PetOwnerCoefficients
pub const fn new() -> Self
Sourcepub const fn owner_identity() -> Self
pub const fn owner_identity() -> Self
Explicit owner identity used by definitions whose actors inherit the owner’s full pools.
pub const fn armor(self, coefficient: f64) -> Self
pub const fn health(self, coefficient: f64) -> Self
pub const fn attack_power( self, from_attack_power: f64, from_spell_power: f64, ) -> Self
pub const fn spell_power( self, from_attack_power: f64, from_spell_power: f64, ) -> Self
Trait Implementations§
Source§impl Clone for PetOwnerCoefficients
impl Clone for PetOwnerCoefficients
Source§fn clone(&self) -> PetOwnerCoefficients
fn clone(&self) -> PetOwnerCoefficients
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 PetOwnerCoefficients
impl Debug for PetOwnerCoefficients
Source§impl Default for PetOwnerCoefficients
impl Default for PetOwnerCoefficients
Source§impl PartialEq for PetOwnerCoefficients
impl PartialEq for PetOwnerCoefficients
impl Copy for PetOwnerCoefficients
impl StructuralPartialEq for PetOwnerCoefficients
Auto Trait Implementations§
impl Freeze for PetOwnerCoefficients
impl RefUnwindSafe for PetOwnerCoefficients
impl Send for PetOwnerCoefficients
impl Sync for PetOwnerCoefficients
impl Unpin for PetOwnerCoefficients
impl UnsafeUnpin for PetOwnerCoefficients
impl UnwindSafe for PetOwnerCoefficients
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