|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Transfers stat modifiers from the spawn source to the projectile.
Adds P:Terraria.Projectile.CritChance and P:Terraria.Projectile.ArmorPenetration bonuses from players (T:Terraria.DataStructures.EntitySource_Parent), weapons (T:Terraria.DataStructures.EntitySource_ItemUse)
If the source is a T:Terraria.DataStructures.EntitySource_Parent projectile, CritChance and ArmorPenetration from the parent will be added, in order to transfer the original item/player bonus values.
To support minions, sentries and P:Terraria.Projectile.ContinuouslyUpdateDamageStats, P:Terraria.Projectile.OriginalCritChance and P:Terraria.Projectile.OriginalArmorPenetration are also copied from item sources and parent projectiles.
| spawnSource |
Definition at line 93095 of file Projectile.cs.
References Terraria.Item.ArmorPenetration, Terraria.Item.crit, and Terraria.Item.damage.
Referenced by Terraria.Projectile.NewProjectile().
Here is the caller graph for this function: