50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
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<DarkBlue>();
|
|
}
|
|
|
|
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<ThrowingDamageClass>() += 0.15f;
|
|
player.Calamity().rogueVelocity += 0.15f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<RogueEmblem>().
|
|
AddIngredient<RaidersTalisman>().
|
|
AddIngredient<MoonstoneCrown>().
|
|
AddIngredient<ElectriciansGlove>().
|
|
AddIngredient(ItemID.LunarBar, 8).
|
|
AddIngredient<GalacticaSingularity>(4).
|
|
AddIngredient<AscendantSpiritEssence>(4).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|