Files
CalamityModPublic/Items/Armor/AtaxiaHelm.cs
T
Andrew Marheine 5cbca25f5f 1 - Movement speed nerfs on several armor sets, Shattered Community and all prefixes. Buffed some armor pieces to compensate.
2 - Holy Wrath and Profaned Rage no longer provide movement speed.
3 - Holy Wrath no longer provides horizontal flight speed.
4 - Mirage Jellys can now be hit at all times, even while they're teleporting.
5 - King Slime Jewel can now be killed.
6 - Profaned Energy Lanterns no longer deal contact damage.
7 - Plague Mines can now be damaged at all times.
2022-01-08 16:17:43 -06:00

95 lines
3.1 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.World;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class AtaxiaHelm : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Hydrothermic Helm");
Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" +
"18% increased melee speed\n" +
"Melee attacks and melee projectiles inflict on fire\n" +
"Temporary immunity to lava and immunity to fire damage");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = ItemRarityID.Yellow;
item.defense = 33; //67
}
public override void ModifyTooltips(List<TooltipLine> list)
{
if (CalamityWorld.death)
{
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip3")
{
line2.text = "Temporary immunity to lava and immunity to fire damage\n" +
"Provides heat protection in Death Mode";
}
}
}
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<AtaxiaArmor>() && legs.type == ModContent.ItemType<AtaxiaSubligar>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawOutlines = true;
player.Calamity().hydrothermalSmoke = true;
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "5% increased melee damage\n" +
"Enemies are more likely to target you\n" +
"Inferno effect when below 50% life\n" +
"Melee attacks and projectiles cause chaos flames to erupt on enemy hits\n" +
"You emit a blazing explosion when you are hit";
CalamityPlayer modPlayer = player.Calamity();
modPlayer.ataxiaBlaze = true;
modPlayer.ataxiaGeyser = true;
player.meleeDamage += 0.05f;
player.aggro += 700;
}
public override void UpdateEquip(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.ataxiaFire = true;
player.meleeSpeed += 0.18f;
player.meleeDamage += 0.12f;
player.meleeCrit += 10;
player.lavaMax += 240;
player.buffImmune[BuffID.OnFire] = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 7);
recipe.AddIngredient(ItemID.HellstoneBar, 4);
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>());
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}