pub enum BuffKind {
Show 21 variants Regeneration, Saturation, Potion, CampfireHeal, EnergyRegen, IncreaseMaxEnergy, IncreaseMaxHealth, Invulnerability, ProtectingWard, Frenzied, Hastened, Fortitude, Burning, Bleeding, Cursed, Crippled, Frozen, Wet, Ensnared, Poisoned, Parried,
}
Expand description

De/buff Kind. This is used to determine what effects a buff will have

Variants§

§

Regeneration

Restores health/time for some period Strength should be the healing per second

§

Saturation

Restores health/time for some period for consumables Strength should be the healing per second

§

Potion

Applied when drinking a potion Strength should be the healing per second

§

CampfireHeal

Applied when sitting at a campfire Strength is fraction of health restored per second

§

EnergyRegen

Restores energy/time for some period Strength should be the healing per second

§

IncreaseMaxEnergy

Raises maximum energy Strength should be 10x the effect to max energy

§

IncreaseMaxHealth

Raises maximum health Strength should be the effect to max health

§

Invulnerability

Makes you immune to attacks Strength does not affect this buff

§

ProtectingWard

Reduces incoming damage Strength scales the damage reduction non-linearly. 0.5 provides 50% DR, 1.0 provides 67% DR

§

Frenzied

Increases movement speed and gives health regeneration Strength scales the movement speed linearly. 0.5 is 150% speed, 1.0 is 200% speed. Provides regeneration at 10x the value of the strength

§

Hastened

Increases movement and attack speed. Strength scales strength of both effects linearly. 0.5 is a 50% increase, 1.0 is a 100% increase.

§

Fortitude

Increases resistance to incoming poise over time Strength scales the resistance linearly, values over 1 will usually do nothing. 0.5 is 50%, 1.0 is 100%.

§

Burning

Does damage to a creature over time Strength should be the DPS of the debuff

§

Bleeding

Lowers health over time for some duration Strength should be the DPS of the debuff

§

Cursed

Lower a creature’s max health over time Strength only affects the target max health, 0.5 targets 50% of base max, 1.0 targets 100% of base max

§

Crippled

Reduces movement speed and causes bleeding damage Strength scales the movement speed debuff non-linearly. 0.5 is 50% speed, 1.0 is 33% speed. Bleeding is at 4x the value of the strength.

§

Frozen

Slows movement and attack speed. Strength scales the attack speed debuff non-linearly. 0.5 is ~50% speed, 1.0 is 33% speed. Movement speed debuff is scaled to be slightly smaller than attack speed debuff.

§

Wet

Makes you wet and causes you to have reduced friction on the ground. Strength scales the friction you ignore non-linearly. 0.5 is 50% ground friction, 1.0 is 33% ground friction.

§

Ensnared

Makes you move slower. Strength scales the movement speed debuff non-linearly. 0.5 is 50% speed, 1.0 is 33% speed.

§

Poisoned

Drain stamina to a creature over time Strength should be the energy per second of the debuff

§

Parried

Results from having an attack parried. Causes your attack speed to be slower to emulate the recover duration of an ability being lengthened.

Implementations§

Checks if buff is buff or debuff

Checks if buff should queue

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
(De)Serializable data representation for data type
Error may occur during serialization or deserialization of component
Convert this data type into serializable form (Data) using entity to marker mapping function Read more
Convert this data from a deserializable form (Data) using entity to marker mapping function Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more