pub enum AbilityEffect {
Show 14 variants
Damage {
base: f32,
element: Element,
scaling: f32,
},
Heal {
amount: f32,
scaling: f32,
},
ApplyStatus {
name: String,
duration: f32,
stacks: u32,
},
Teleport {
range: f32,
},
Knockback {
force: f32,
direction_from_caster: bool,
},
Pull {
force: f32,
},
Stun {
duration: f32,
},
DotDamage {
dps: f32,
element: Element,
duration: f32,
},
Shield {
amount: f32,
duration: f32,
},
Chain {
max_jumps: u32,
falloff: f32,
},
Explosion {
radius: f32,
damage: f32,
element: Element,
},
Summon {
entity_id: String,
duration: f32,
},
ModifyResource {
kind: ResourceType,
amount: f32,
},
StatBuff {
stat_name: String,
multiplier: f32,
duration: f32,
},
}Variants§
Damage
Deal damage to target
Heal
Heal target
ApplyStatus
Apply a status effect
Teleport
Teleport caster
Knockback
Push target
Pull
Pull target
Stun
Stun target
DotDamage
Apply damage over time
Shield
Shield / absorb
Chain
Chain to multiple targets
Explosion
AoE explosion at point
Summon
Summon entity
ModifyResource
Modify resource
StatBuff
Buff stat temporarily
Trait Implementations§
Source§impl Clone for AbilityEffect
impl Clone for AbilityEffect
Source§fn clone(&self) -> AbilityEffect
fn clone(&self) -> AbilityEffect
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 moreAuto Trait Implementations§
impl Freeze for AbilityEffect
impl RefUnwindSafe for AbilityEffect
impl Send for AbilityEffect
impl Sync for AbilityEffect
impl Unpin for AbilityEffect
impl UnsafeUnpin for AbilityEffect
impl UnwindSafe for AbilityEffect
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