Files
CalamityModPublic/Items/Accessories/BloodyWormScarf.cs
T
Altixal 4b867c273d things that were missed, again
also just executively decided the skull line is not worth buffing
2026-04-07 20:50:59 +07:00

41 lines
1.2 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Neck)]
public class BloodyWormScarf : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 42;
Item.defense = 2;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
Item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.bloodyWormTooth = true;
player.endurance += 0.1f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodyWormTooth>().
AddIngredient(ItemID.WormScarf).
AddIngredient(ItemID.SoulofNight, 3).
AddTile(TileID.Anvils).
Register();
}
}
}