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

◆ GetModifierInheritance()

override StatInheritanceData Terraria.ModLoader.DefaultDamageClass.GetModifierInheritance ( DamageClass damageClass)
inlinevirtual

This lets you define the classes that this T:Terraria.ModLoader.DamageClass will benefit from (other than itself) for the purposes of stat bonuses, such as damage and crit chance. This is used to allow extensive specifications for what your damage class can and can't benefit from in terms of other classes' stat bonuses.

Parameters
damageClassThe T:Terraria.ModLoader.DamageClass which you want this T:Terraria.ModLoader.DamageClass to benefit from statistically.
Returns
By default this will return F:Terraria.ModLoader.StatInheritanceData.Full for P:Terraria.ModLoader.DamageClass.Generic and F:Terraria.ModLoader.StatInheritanceData.None for any other.

Reimplemented from Terraria.ModLoader.DamageClass.

Definition at line 7 of file DefaultDamageClass.cs.

8 {
9 return StatInheritanceData.None;
10 }

References Terraria.ModLoader.StatInheritanceData.None.