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.
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
[AutoloadEquip(EquipType.Face)]
|
|
public class MoonstoneCrown : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
// Base damage of lunar flares on stealth strikes. Increased by rogue damage stats, but not stealth damage.
|
|
internal static int BaseDamage = 75;
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
|
|
if (Main.netMode != NetmodeID.Server)
|
|
{
|
|
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
|
ArmorIDs.Face.Sets.OverrideHelmet[equipSlot] = true;
|
|
}
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 46;
|
|
Item.height = 40;
|
|
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
|
Item.rare = ItemRarityID.Purple;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.rogueVelocity += 0.15f;
|
|
modPlayer.moonCrown = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<FeatherCrown>().
|
|
AddIngredient(ItemID.LunarBar, 5).
|
|
AddIngredient<GalacticaSingularity>(5).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|