2 - Counter Scarf is no longer dropped by EoC and is now sold by the Clothier for 10 gold.
53 lines
1.9 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|