Files
CalamityModPublic/Items/Accessories/CoreOfTheBloodGod.cs
T
Andrew Marheine d5a2c4963b 1 - Expert boss items are now dropped on all modes and no longer have the expert rarity or tag.
2 - Counter Scarf is no longer dropped by EoC and is now sold by the Clothier for 10 gold.
2022-01-14 22:32:02 -06:00

53 lines
1.9 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class CoreOfTheBloodGod : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Core of the Blood God");
Tooltip.SetDefault("8% increased damage and damage reduction\n" +
"Boosts your max HP by 10%\n" +
"Healing Potions are 15% more effective\n" +
"Halves enemy contact damage\n" +
"When you take contact damage this effect has a 20 second cooldown");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4));
}
public override void SetDefaults()
{
item.width = item.height = 48;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.rare = ItemRarityID.Red;
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<CosmiliteBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 4);
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}