Files
CalamityModPublic/Items/Accessories/ElementalGauntlet.cs
T
Altixal a321ece97b Material culling & recipe changes 2024
- Removed Demonic Bone Ash
- Removed Murky Paste
- Removed Trapper Bulb

Most of these are recipe ordering hell (again)
- Moved Shadowspec Bar to the top of most materials
- Moved Cosmilite Bar to the top of most materials (under SSpec)
- Moved complementary ASE type to pair below Bars
- Swap recipe order of Soul Artifacts
- Enforced certain material pairing orders
- Added missing materials for certain sets
2024-09-05 23:19:37 +07:00

49 lines
1.7 KiB
C#

using CalamityMod.Buffs.DamageOverTime;
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
{
[AutoloadEquip(new EquipType[] { EquipType.HandsOn, EquipType.HandsOff })]
public class ElementalGauntlet : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 22;
Item.height = 38;
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.eGauntlet = true;
player.kbGlove = true;
player.autoReuseGlove = true;
player.meleeScaleGlove = true;
modPlayer.gloveLevel = 5;
player.GetDamage<TrueMeleeDamageClass>() += 0.10f;
modPlayer.eGauntletVisuals = !hideVisual; // hides the rainbow dust when hiding the accessory
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.FireGauntlet).
AddIngredient(ItemID.LunarBar, 8).
AddIngredient<AscendantSpiritEssence>(4).
AddIngredient<GalacticaSingularity>(4).
AddTile<CosmicAnvil>().
Register();
}
}
}