2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold. 3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum. 4 - Privated numeric rarity item values. 5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice.
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.RarityDarkBlueBuyPrice;
|
|
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();
|
|
}
|
|
}
|
|
}
|