|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Multiplies the input damage by a random value between 0.85f and 1.15f.
| dmg | The damage to vary. |
| luck | How lucky the damager is, in the range [-1f, 1f]. If luck > 0f, there is a luck % chance that damage variation is rerolled, with the higher value being used. If luck < 0f, there is a -luck % chance that damage variation is rerolled, with the lower value being used. |
Definition at line 83222 of file Main.cs.
References Terraria.Main.DamageVar(), and Terraria.Main.DefaultDamageVariationPercent.
Referenced by Terraria.Player.ApplyTouchDamage(), Terraria.Projectile.BombsHurtPlayers(), Terraria.Projectile.Damage(), Terraria.Main.DamageVar(), Terraria.NPC.HitModifiers.GetDamage(), Terraria.Player.GetMinecartDamage(), Terraria.Player.ItemCheck_MeleeHitPVP(), Terraria.Player.ItemCheck_UseMiningTools_ActuallyUseMiningTool(), and Terraria.Player.Update_NPCCollision().
Here is the call graph for this function:
Here is the caller graph for this function: