1 using System.Collections.Generic;
5 namespace Loot.Soulforging
7 internal class SoulLantern :
ModItem 9 public override string Texture =>
"Loot/Placeholder";
11 public override void SetStaticDefaults()
13 DisplayName.SetDefault(
"Soul Lantern");
16 public override void SetDefaults()
21 public override void ModifyTooltips(List<TooltipLine> tooltips)
23 int i = tooltips.FindIndex(x => x.mod ==
"Terraria" && x.Name ==
"ItemName");
26 var player = Main.LocalPlayer.GetModPlayer<LootEssencePlayer>();
27 tooltips.Insert(i+1,
new TooltipLine(mod,
"Loot: SoulLantern:BonusEssenceGain", $
"You gain {player.BonusEssenceGain} bonus essence every 10 kills."));
28 tooltips.Insert(i+2,
new TooltipLine(mod,
"Loot: SoulLantern:SoulWeapon", $
"You have no soul weapon equipped and have no additional powers."));
29 tooltips.Insert(i+3,
new TooltipLine(mod,
"Loot: SoulLantern:TotalEssence", $
"You have collected {player.Essence} essence."));