pub enum BuffEffect {
Show 27 variants
HealthChangeOverTime {
rate: f32,
kind: ModifierKind,
instance: u64,
tick_dur: Secs,
},
EnergyChangeOverTime {
rate: f32,
kind: ModifierKind,
tick_dur: Secs,
reset_rate_on_tick: bool,
},
MaxHealthModifier {
value: f32,
kind: ModifierKind,
},
MaxEnergyModifier {
value: f32,
kind: ModifierKind,
},
DamageReduction(f32),
MaxHealthChangeOverTime {
rate: f32,
kind: ModifierKind,
target_fraction: f32,
},
MovementSpeed(f32),
AttackSpeed(f32),
RecoverySpeed(f32),
GroundFriction(f32),
PoiseReduction(f32),
PoiseDamageFromLostHealth(f32),
AttackDamage(f32),
PrecisionOverride(f32),
PrecisionVulnerabilityOverride(f32),
BodyChange(Body),
BuffImmunity(BuffKind),
SwimSpeed(f32),
AttackEffect(AttackEffect),
AttackPoise(f32),
MitigationsPenetration(f32),
EnergyReward(f32),
DamagedEffect(DamagedEffect),
DeathEffect(DeathEffect),
DisableAuxiliaryAbilities,
CrowdControlResistance(f32),
ItemEffectReduction(f32),
}
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
RecoverySpeed(f32)
Modifies recovery speed of target
GroundFriction(f32)
Modifies ground friction of target
PoiseReduction(f32)
Reduces poise damage taken after armor is accounted for by this fraction
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
PrecisionVulnerabilityOverride(f32)
Overrides the precision multiplier applied to an incoming 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
CrowdControlResistance(f32)
Reduces duration of crowd control debuffs
ItemEffectReduction(f32)
Reduces the strength or duration of item buff
Trait Implementations§
§impl Clone for BuffEffect
impl Clone for BuffEffect
§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 more§impl Debug for BuffEffect
impl Debug for BuffEffect
§impl<'de> Deserialize<'de> for BuffEffect
impl<'de> Deserialize<'de> for BuffEffect
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for BuffEffect
impl PartialEq for BuffEffect
§fn eq(&self, other: &BuffEffect) -> bool
fn eq(&self, other: &BuffEffect) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for BuffEffect
impl Serialize for BuffEffect
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BuffEffect
Auto Trait Implementations§
impl Freeze for BuffEffect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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§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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more