TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetWeaponCrit()

int Terraria.Player.GetWeaponCrit ( Item sItem)
inline

Definition at line 53938 of file Player.cs.

53939 {
53940 float crit = (float)sItem.crit + GetTotalCritChance(sItem.DamageType);
53942 return (int)(crit + 5E-06f);
53943 }
static void ModifyWeaponCrit(Player player, Item item, ref float crit)
float GetTotalCritChance(DamageClass damageClass)
Definition Player.cs:58415

References Terraria.Player.GetTotalCritChance(), and Terraria.ModLoader.CombinedHooks.ModifyWeaponCrit().

Referenced by Terraria.Player.ProcessHitAgainstNPC().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: