pub struct AutoAttackDef {
pub spell_id: u32,
pub swing_ms: u32,
pub npc_id: Option<u32>,
pub ap_coef: Option<f64>,
pub pet_power_from_owner: Option<f64>,
pub pet_weapon_speed_ms: Option<u32>,
pub pet_weapon_multiplier: Option<f64>,
pub is_pet: bool,
pub uses_spell_power: bool,
pub on_crit_reduce_charge: Option<OnCritReduceCharge>,
pub hook: Option<String>,
}Expand description
[auto_attacks.<name>] block describing a swing-driven physical hit.
Fields§
§spell_id: u32§swing_ms: u32§npc_id: Option<u32>Creature/NPC identity used by NPC-filtered companion modifiers.
ap_coef: Option<f64>§pet_power_from_owner: Option<f64>Pet AP/SP inherited from owner power; converted with the shared /6 weapon formula.
pet_weapon_speed_ms: Option<u32>Unhasted weapon speed used for pet weapon damage; defaults to swing_ms.
pet_weapon_multiplier: Option<f64>§is_pet: bool§uses_spell_power: boolScale the authored coefficient from owner spell power (caster pets) instead of owner attack power.
on_crit_reduce_charge: Option<OnCritReduceCharge>§hook: Option<String>Rust path of a swing hook fired after each landed swing (procs, poisons).
Trait Implementations§
Source§impl Debug for AutoAttackDef
impl Debug for AutoAttackDef
Source§impl<'de> Deserialize<'de> for AutoAttackDef
impl<'de> Deserialize<'de> for AutoAttackDef
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
Auto Trait Implementations§
impl Freeze for AutoAttackDef
impl RefUnwindSafe for AutoAttackDef
impl Send for AutoAttackDef
impl Sync for AutoAttackDef
impl Unpin for AutoAttackDef
impl UnsafeUnpin for AutoAttackDef
impl UnwindSafe for AutoAttackDef
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