Files
CalamityModPublic/Items/Armor/Demonshade/DemonshadeGreaves.cs
T
Ozzatron 22afdd3933 1 - Calamity sell prices increase much more sharply with rarity.
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.
2024-04-17 21:20:17 -04:00

41 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Demonshade
{
[AutoloadEquip(EquipType.Legs)]
public class DemonshadeGreaves : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
public override void SetDefaults()
{
Item.width = 18;
Item.height = 18;
Item.defense = 50;
Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
}
public override void UpdateEquip(Player player)
{
var modPlayer = player.Calamity();
modPlayer.shadowSpeed = true;
player.moveSpeed += 0.3f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<ShadowspecBar>(15).
AddTile<DraedonsForge>().
Register();
}
}
}