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

◆ GetCritChance()

ref float Terraria.Player.GetCritChance ( DamageClass damageClass)
inline

Gets the crit chance modifier for this damage type on this player. This returns a reference, and as such, you can freely modify this method's return value with operators.

Definition at line 58319 of file Player.cs.

58320 {
58321 return ref damageData[damageClass.Type].critChance;
58322 }
DamageClassData[] damageData
Definition Player.cs:3349

References Terraria.ModLoader.DamageClassData.critChance, and Terraria.Player.damageData.

Referenced by Terraria.Player.GetCritChance< T >(), and Terraria.ModLoader.GenericDamageClass.SetDefaultStats().

+ Here is the caller graph for this function: