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

◆ GetDamage< T >()

Gets the damage 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 58292 of file Player.cs.

58292 : DamageClass
58293 {
58294 return ref GetDamage(ModContent.GetInstance<T>());
58295 }
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 StatModifier GetDamage(DamageClass damageClass)
Gets the damage modifier for this damage type on this player. This returns a reference,...
Definition Player.cs:58301

References Terraria.Player.GetDamage().

+ Here is the call graph for this function: