Files
CalamityModPublic/Items/Accessories/InfectedJewel.cs
T
Ozzatron 40ba56f380 1 - Collaborative review of life regen accessories between Xyk and Ozzatron. Massive changes
2 - Massive improvements to various aspects of life regen code
3 - Death Mode consistently increases debuff DoT by +50% for both vanilla and Calamity debuffs
4 - Fixed all Shiny Stone-like standing still regen effects and removed their hardcap (they are affected by life regen softcap anyway)
5 - Fixed the amount of Living Shards used by Terra Flameburster and Miracle Fruit
6 - Added a fire debuff list (NOT used in Fab's elemental weakness system yet)
2023-08-27 01:27:43 -04:00

41 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Potions;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[LegacyName("CelestialJewel")]
public class InfectedJewel : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.defense = 6;
Item.width = 26;
Item.height = 26;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.infectedJewel = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CrownJewel>().
AddIngredient<AureusCell>(10).
AddIngredient<Stardust>(25).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}