Files
CalamityModPublic/Items/Accessories/TeslasAmulet.cs
T
Altixal a321ece97b Material culling & recipe changes 2024
- Removed Demonic Bone Ash
- Removed Murky Paste
- Removed Trapper Bulb

Most of these are recipe ordering hell (again)
- Moved Shadowspec Bar to the top of most materials
- Moved Cosmilite Bar to the top of most materials (under SSpec)
- Moved complementary ASE type to pair below Bars
- Swap recipe order of Soul Artifacts
- Enforced certain material pairing orders
- Added missing materials for certain sets
2024-09-05 23:19:37 +07:00

45 lines
1.3 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class TeslasAmulet : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 14));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.rare = ItemRarityID.Orange;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().tesla = true;
player.Calamity().teslaVisuals = !hideVisual;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AerialiteBar>(8).
AddIngredient<SeaPrism>(8).
AddIngredient<StormlionMandible>(4).
AddTile(TileID.Anvils).
Register();
}
}
}