47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.AbyssItems
|
|
{
|
|
public class ReaperToothNecklace : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Reaper Tooth Necklace");
|
|
Tooltip.SetDefault("Increases armor penetration by 100\n" +
|
|
"Increases all damage by 25%\n" +
|
|
"Cuts your defense and damage reduction in half");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = Item.buyPrice(0, 60, 0, 0);
|
|
item.rare = 10;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.reaperToothNecklace = true;
|
|
player.armorPenetration += 100;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(null, "ReaperTooth", 6);
|
|
recipe.AddIngredient(null, "Lumenite", 15);
|
|
recipe.AddIngredient(null, "DepthCells", 15);
|
|
recipe.AddIngredient(null, "Tenebris", 5);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|