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

◆ ShowStatTooltipLine()

override bool Terraria.ModLoader.SummonDamageClass.ShowStatTooltipLine ( Player player,
string lineName )
inlinevirtual

Overriding this lets you disable standard statistical tooltip lines displayed on items associated with this T:Terraria.ModLoader.DamageClass. All tooltip lines are enabled by default.

To disable tooltip lines you should return false for each of those cases.

Parameters
playerThe player to apply tooltip changes to
lineNameThe tooltip line to change visibility for. Usable values are: "Damage", "CritChance", "Speed", and "Knockback"

Reimplemented from Terraria.ModLoader.DamageClass.

Definition at line 9 of file SummonDamageClass.cs.

10 {
11 if (lineName != "CritChance")
12 {
13 return lineName != "Speed";
14 }
15 return false;
16 }