using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { public class Nanotech : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { Item.width = 46; Item.height = 46; Item.value = CalamityGlobalItem.Rarity14BuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); modPlayer.nanotech = true; modPlayer.raiderTalisman = true; modPlayer.electricianGlove = true; modPlayer.filthyGlove = true; modPlayer.bloodyGlove = true; player.GetDamage() += 0.15f; player.Calamity().rogueVelocity += 0.15f; } public override void AddRecipes() { CreateRecipe(). AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(ItemID.LunarBar, 8). AddIngredient(4). AddIngredient(4). AddTile(). Register(); } } }