pub struct TemporaryStatBoosts {
pub max_health: u32,
pub max_mana: u32,
pub defense: u32,
pub damage: u32,
pub critical_damage_multiplier: f64,
pub critical_hit_rate: f64,
}
Fields§
§max_health: u32
§max_mana: u32
§defense: u32
§damage: u32
§critical_damage_multiplier: f64
§critical_hit_rate: f64
Implementations§
Source§impl TemporaryStatBoosts
impl TemporaryStatBoosts
pub fn reset(&mut self)
pub fn increase_damage(&mut self, amount: u32)
pub fn decrease_damage(&mut self, amount: u32)
pub fn increase_crit_hit_rate(&mut self, amount: f64)
pub fn decrease_crit_hit_rate(&mut self, amount: f64)
pub fn increase_crit_damage_multiplier(&mut self, amount: f64)
pub fn decrease_crit_damage_multiplier(&mut self, amount: f64)
pub fn increase_max_health(&mut self, amount: u32)
pub fn decrease_max_health(&mut self, amount: u32)
pub fn increase_defense(&mut self, amount: u32)
pub fn decrease_defense(&mut self, amount: u32)
pub fn increase_max_mana(&mut self, amount: u32)
pub fn decrease_max_mana(&mut self, amount: u32)
pub fn give_enchantment_values(&mut self, enchantments: &Vec<Enchantment>)
Trait Implementations§
Source§impl Clone for TemporaryStatBoosts
impl Clone for TemporaryStatBoosts
Source§fn clone(&self) -> TemporaryStatBoosts
fn clone(&self) -> TemporaryStatBoosts
Returns a copy 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 TemporaryStatBoosts
impl RefUnwindSafe for TemporaryStatBoosts
impl Send for TemporaryStatBoosts
impl Sync for TemporaryStatBoosts
impl Unpin for TemporaryStatBoosts
impl UnwindSafe for TemporaryStatBoosts
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