pub struct CombatStats {}Expand description
Stat block for an attacker or defender.
Fields§
§attack: f32§crit_chance: f32§crit_mult: f32§penetration: f32§entropy_amp: f32§armor: f32§dodge_chance: f32§block_chance: f32§block_amount: f32§max_hp: f32§hp: f32§level: u32§entropy: f32Implementations§
Source§impl CombatStats
impl CombatStats
Trait Implementations§
Source§impl Clone for CombatStats
impl Clone for CombatStats
Source§fn clone(&self) -> CombatStats
fn clone(&self) -> CombatStats
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 CombatStats
impl Debug for CombatStats
Auto Trait Implementations§
impl Freeze for CombatStats
impl RefUnwindSafe for CombatStats
impl Send for CombatStats
impl Sync for CombatStats
impl Unpin for CombatStats
impl UnsafeUnpin for CombatStats
impl UnwindSafe for CombatStats
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