53 lines
2.0 KiB
C#
53 lines
2.0 KiB
C#
using System.Collections.Generic;
|
|
using Decimation.Lib.Util;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.UI.Chat;
|
|
|
|
namespace Decimation.Content.Items.Accessories.Trinity
|
|
{
|
|
public class Mind : TrinityAccessory
|
|
{
|
|
protected override string ItemName => "The Mind";
|
|
protected override string ItemTooltip => "I know all...\n" +
|
|
"Increases block placement and mining speed by 10%\n" +
|
|
"Increases ranged and thrown damage by 10%\n" +
|
|
"Increases ranged and thrown critical hit chances by 10%\n" +
|
|
"Allows you to see nearby danger sources\n" +
|
|
"Shows the location of treasure and ore";
|
|
|
|
protected override void InitAccessory()
|
|
{
|
|
item.width = 10;
|
|
item.height = 16;
|
|
item.expert = true;
|
|
item.rare = Rarity.Rainbow.GetRarityValue();
|
|
item.value = Item.sellPrice(gold: 5);
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.pickSpeed *= 1.10f;
|
|
player.tileSpeed *= 1.10f;
|
|
player.rangedDamage *= 1.10f;
|
|
player.rangedCrit = (int) (player.rangedCrit * 1.10f);
|
|
player.thrownDamage *= 1.10f;
|
|
player.thrownCrit = (int) (player.thrownCrit * 1.10f);
|
|
|
|
player.AddBuff(BuffID.Spelunker, 1);
|
|
player.AddBuff(BuffID.Dangersense, 1);
|
|
|
|
base.UpdateAccessory(player, hideVisual);
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
|
{
|
|
tooltips.Add(new TooltipLine(mod, "trinity", "Trinity")
|
|
{
|
|
overrideColor = ChatManager.WaveColor(Color.Yellow)
|
|
});
|
|
}
|
|
}
|
|
} |