|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Use this to apply the modifiers of this T:Terraria.ModLoader.StatModifier to the baseValue . You should assign the value passed in to the return result. For example:
damage = CritDamage.ApplyTo(damage)
could be used to apply a crit damage modifier to a base damage value
For help understanding the meanings of the applied values please make note of documentation for:
The order of operations of the modifiers are as follows:
| baseValue | The starting value to apply modifiers to |
Definition at line 150 of file StatModifier.cs.
References Terraria.ModLoader.StatModifier.Additive, Terraria.ModLoader.StatModifier.Flat, and Terraria.ModLoader.StatModifier.Multiplicative.
Referenced by Terraria.Projectile.AI_075(), Terraria.Player.CommandForbiddenStorm(), Terraria.Player.DashMovement(), Terraria.NPC.HitModifiers.GetDamage(), Terraria.Player.HurtModifiers.GetDamage(), Terraria.NPC.HitModifiers.GetKnockback(), Terraria.Player.HurtModifiers.GetKnockback(), Terraria.Player.HorizontalMovement(), Terraria.Player.JumpMovement(), Terraria.Player.OnHurt_Part2(), Terraria.NPC.HitModifiers.ToHitInfo(), Terraria.Player.HurtModifiers.ToHurtInfo(), and Terraria.Projectile.Update().
Here is the caller graph for this function: