50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class ReaperToothNecklace : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Reaper Tooth Necklace");
|
|
Tooltip.SetDefault("A grisly trophy from the ultimate predator\n" + "12% increased damage\n" + "Increases armor penetration by 100\n");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 44;
|
|
item.height = 50;
|
|
item.accessory = true;
|
|
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
|
item.rare = ItemRarityID.Red;
|
|
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
player.allDamage += 0.12f;
|
|
player.armorPenetration += 100;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.SharkToothNecklace);
|
|
recipe.AddIngredient(ItemID.AvengerEmblem);
|
|
recipe.AddIngredient(ModContent.ItemType<ReaperTooth>(), 6);
|
|
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 15);
|
|
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 15);
|
|
recipe.AddIngredient(ModContent.ItemType<Tenebris>(), 5);
|
|
recipe.AddTile(TileID.TinkerersWorkbench);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|