pub struct AttackParams {
pub no_counterattack: bool,
pub crit_chance_bonus: f64,
pub is_crit: Option<bool>,
pub power: Option<f64>,
pub dot_power: Option<f64>,
pub derived: bool,
}Expand description
Typed form of the attack params.
Fields§
§no_counterattack: bool§crit_chance_bonus: f64§is_crit: Option<bool>Forced crit value; None => roll crit_chance.
power: Option<f64>§dot_power: Option<f64>§derived: boolThis hit is a DERIVED copy produced by a support stone, not the original
cast. It is tagged derived in the damage payload so no Core-event
reader (laws, resonance, mastery, triggers) counts it, and it never
shakes the screen like an original cast.
Implementations§
Source§impl AttackParams
impl AttackParams
Sourcepub fn default_power() -> Self
pub fn default_power() -> Self
The default attack(caster, target) overload uses power = 1.0.
Trait Implementations§
Source§impl Clone for AttackParams
impl Clone for AttackParams
Source§fn clone(&self) -> AttackParams
fn clone(&self) -> AttackParams
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 moreSource§impl Debug for AttackParams
impl Debug for AttackParams
Source§impl Default for AttackParams
impl Default for AttackParams
Source§fn default() -> AttackParams
fn default() -> AttackParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttackParams
impl RefUnwindSafe for AttackParams
impl Send for AttackParams
impl Sync for AttackParams
impl Unpin for AttackParams
impl UnwindSafe for AttackParams
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