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>,
}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>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].