|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| StatModifier Terraria.NPC.HitModifiers.SourceDamage |
Use this to enhance or scale the base damage of the item/projectile/hit. This damage modifier will apply to P:Terraria.NPC.HitInfo.SourceDamage and be transferred to on-hit effects.
For effects which apply to all damage dealt by the player, or a specific damage type, consider using M:Terraria.Player.GetDamage(Terraria.ModLoader.DamageClass) instead.
For effects which apply to all damage dealt by an item, consider using M:Terraria.ModLoader.GlobalItem.ModifyWeaponDamage(Terraria.Item,Terraria.Player,Terraria.ModLoader.StatModifier@) instead.
Used by vanilla for weapons with unique scaling such as jousting lance, ham bat, breaker blade. And for accessories which enhance a projectile (strong bees)
Definition at line 66 of file NPC.cs.
Referenced by Terraria.NPC.HitModifiers.HitModifiers(), Terraria.NPC.HitModifiers.GetDamage(), and Terraria.NPC.HitModifiers.ToHitInfo().