pub struct CombatStats {
pub dmg: u32,
pub hit: u32,
pub crit: u32,
pub is_brave: bool,
}Expand description
The stats needed for one side of combat: damage, hit, brave effect, and crit.
Fields§
§dmg: u32The damage dealt.
hit: u32The hit probability (0-100).
crit: u32The critical probability (0-100).
is_brave: boolWhether the weapon strikes twice per normal strike. Although usually called brave weapons, other weapons like gauntlets or the Amiti do this as well.
Implementations§
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
Source§impl Default for CombatStats
impl Default for CombatStats
Source§fn default() -> CombatStats
fn default() -> CombatStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CombatStats
impl<'de> Deserialize<'de> for CombatStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CombatStats
impl Hash for CombatStats
Source§impl PartialEq for CombatStats
impl PartialEq for CombatStats
Source§impl Serialize for CombatStats
impl Serialize for CombatStats
impl Copy for CombatStats
impl Eq for CombatStats
impl StructuralPartialEq 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 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