55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor.OmegaBlue
|
|
{
|
|
[AutoloadEquip(EquipType.Body)]
|
|
public class OmegaBlueChestplate : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
if (Main.netMode == NetmodeID.Server)
|
|
return;
|
|
|
|
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
|
|
|
ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true;
|
|
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
|
Item.defense = 28;
|
|
Item.rare = ModContent.RarityType<PureGreen>();
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
var modPlayer = player.Calamity();
|
|
player.GetDamage<GenericDamageClass>() += 0.12f;
|
|
player.GetCritChance<GenericDamageClass>() += 8;
|
|
modPlayer.omegaBlueChestplate = true;
|
|
modPlayer.noLifeRegen = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<ReaperTooth>(12).
|
|
AddIngredient<DepthCells>(18).
|
|
AddIngredient<RuinousSoul>(3).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|