Files
CalamityModPublic/Items/Accessories/CoreOfTheBloodGod.cs
T

54 lines
1.9 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class CoreOfTheBloodGod : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Core of the Blood God");
Tooltip.SetDefault("5% increased damage reduction\n" +
"7% increased damage\n" +
"When below 100 defense you gain 15% increased damage\n" +
"Halves enemy contact damage\n" +
"When you take contact damage this effect has a 20 second cooldown\n" +
"Boosts your max HP by 10%");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 90, 0, 0);
item.expert = true;
item.rare = 9;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.coreOfTheBloodGod = true;
modPlayer.fleshTotem = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<BloodyWormScarf>());
recipe.AddIngredient(ModContent.ItemType<BloodPact>());
recipe.AddIngredient(ModContent.ItemType<FleshTotem>());
recipe.AddIngredient(ModContent.ItemType<BloodflareCore>());
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}