pub struct StatScaling {
pub strength_ratio: f32,
pub dexterity_ratio: f32,
pub intelligence_ratio: f32,
}Fields§
§strength_ratio: f32§dexterity_ratio: f32§intelligence_ratio: f32Implementations§
Source§impl StatScaling
impl StatScaling
pub fn strength_weapon() -> Self
pub fn dex_weapon() -> Self
pub fn int_weapon() -> Self
pub fn balanced() -> Self
pub fn total_bonus(&self, str_val: f32, dex_val: f32, int_val: f32) -> f32
Trait Implementations§
Source§impl Clone for StatScaling
impl Clone for StatScaling
Source§fn clone(&self) -> StatScaling
fn clone(&self) -> StatScaling
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 StatScaling
impl RefUnwindSafe for StatScaling
impl Send for StatScaling
impl Sync for StatScaling
impl Unpin for StatScaling
impl UnsafeUnpin for StatScaling
impl UnwindSafe for StatScaling
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