Enum veloren_common::comp::buff::BuffEffect
source · pub enum BuffEffect {
Show 25 variants
HealthChangeOverTime {
rate: f32,
kind: ModifierKind,
instance: u64,
tick_dur: Secs,
},
EnergyChangeOverTime {
rate: f32,
kind: ModifierKind,
tick_dur: Secs,
},
MaxHealthModifier {
value: f32,
kind: ModifierKind,
},
MaxEnergyModifier {
value: f32,
kind: ModifierKind,
},
DamageReduction(f32),
MaxHealthChangeOverTime {
rate: f32,
kind: ModifierKind,
target_fraction: f32,
},
MovementSpeed(f32),
AttackSpeed(f32),
GroundFriction(f32),
PoiseReduction(f32),
HealReduction(f32),
MoveSpeedReduction(f32),
PoiseDamageFromLostHealth(f32),
AttackDamage(f32),
PrecisionOverride(f32),
BodyChange(Body),
BuffImmunity(BuffKind),
SwimSpeed(f32),
AttackEffect(AttackEffect),
AttackPoise(f32),
MitigationsPenetration(f32),
EnergyReward(f32),
DamagedEffect(DamagedEffect),
DeathEffect(DeathEffect),
DisableAuxiliaryAbilities,
}
Expand description
Data indicating and configuring behaviour of a de/buff.
Variants§
HealthChangeOverTime
Periodically damages or heals entity
EnergyChangeOverTime
Periodically consume entity energy
MaxHealthModifier
Changes maximum health by a certain amount
MaxEnergyModifier
Changes maximum energy by a certain amount
DamageReduction(f32)
Reduces damage after armor is accounted for by this fraction
MaxHealthChangeOverTime
Gradually changes an entities max health over time
MovementSpeed(f32)
Modifies move speed of target
AttackSpeed(f32)
Modifies attack speed of target
GroundFriction(f32)
Modifies ground friction of target
PoiseReduction(f32)
Reduces poise damage taken after armor is accounted for by this fraction
HealReduction(f32)
Reduces amount healed by consumables
MoveSpeedReduction(f32)
Reduces amount of speed increase by consumables
PoiseDamageFromLostHealth(f32)
Increases poise damage dealt when health is lost
AttackDamage(f32)
Modifier to the amount of damage dealt with attacks
PrecisionOverride(f32)
Overrides the precision multiplier applied to an attack
BodyChange(Body)
Changes body.
BuffImmunity(BuffKind)
SwimSpeed(f32)
AttackEffect(AttackEffect)
Add an attack effect to attacks made while buff is active
AttackPoise(f32)
Increases poise damage dealt by attacks
MitigationsPenetration(f32)
Ignores some damage reduction on target
EnergyReward(f32)
Modifies energy rewarded on successful strikes
DamagedEffect(DamagedEffect)
Add an effect to the entity when damaged by an attack
DeathEffect(DeathEffect)
Add an effect to the entity when killed
DisableAuxiliaryAbilities
Prevents use of auxiliary abilities
Trait Implementations§
source§impl Clone for BuffEffect
impl Clone for BuffEffect
source§fn clone(&self) -> BuffEffect
fn clone(&self) -> BuffEffect
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuffEffect
impl Debug for BuffEffect
source§impl<'de> Deserialize<'de> for BuffEffect
impl<'de> Deserialize<'de> for BuffEffect
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>,
source§impl PartialEq for BuffEffect
impl PartialEq for BuffEffect
source§fn eq(&self, other: &BuffEffect) -> bool
fn eq(&self, other: &BuffEffect) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BuffEffect
impl Serialize for BuffEffect
impl StructuralPartialEq for BuffEffect
Auto Trait Implementations§
impl RefUnwindSafe for BuffEffect
impl Send for BuffEffect
impl Sync for BuffEffect
impl Unpin for BuffEffect
impl UnwindSafe for BuffEffect
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
§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
§fn convert_into<F>(
&self,
_: F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Data
) using
entity to marker mapping function