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

◆ GetCritChance< T >()

ref float Terraria.Player.GetCritChance< T > ( )
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.

Type Constraints
T :DamageClass 

Definition at line 58310 of file Player.cs.

58310 : DamageClass
58311 {
58312 return ref GetCritChance(ModContent.GetInstance<T>());
58313 }
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
Definition ModContent.cs:38
ref float GetCritChance(DamageClass damageClass)
Gets the crit chance modifier for this damage type on this player. This returns a reference,...
Definition Player.cs:58319

References Terraria.Player.GetCritChance().

+ Here is the call graph for this function: