2. Skeleton code for The Sponge being the 3rd energy shield. 3. All energy shields stack. Lowest tier shields are destroyed first.
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using CalamityMod.Items.Placeables;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor.LunicCorps
|
|
{
|
|
[AutoloadEquip(EquipType.Legs)]
|
|
public class LunicCorpsBoots : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
|
Item.defense = 18;
|
|
Item.rare = ItemRarityID.Cyan;
|
|
Item.Calamity().donorItem = true;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.Calamity().lunicCorpsLegs = true;
|
|
player.moveSpeed += 0.15f;
|
|
player.GetCritChance<RangedDamageClass>() += 4;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<AstralBar>(8).
|
|
AddIngredient(ItemID.ChlorophyteBar, 8).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|