Files
CalamityModPublic/Items/Armor/TarragonHelmet.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

98 lines
3.6 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 TarragonHelmet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Tarragon Helmet");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids, 5% increased movement speed\n" +
"10% increased rogue damage and critical strike chance\n" +
"5% increased damage reduction");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 50, 0, 0);
item.defense = 15; //98
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void ModifyTooltips(List<TooltipLine> list)
{
if (CalamityWorld.death)
{
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip3")
{
line2.text = "5% increased damage reduction\n" +
"Provides heat protection in Death Mode";
}
}
}
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadowSubtle = true;
player.armorEffectDrawOutlines = true;
}
public override void UpdateArmorSet(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.tarraSet = true;
modPlayer.tarraThrowing = true;
modPlayer.rogueStealthMax += 1.15f;
modPlayer.wearingRogueArmor = true;
player.setBonus = "Reduces enemy spawn rates\n" +
"Increased heart pickup range\n" +
"Enemies have a chance to drop extra hearts on death\n" +
"After every 25 rogue critical hits you will gain 3 seconds of damage immunity\n" +
"This effect can only occur once every 30 seconds\n" +
"While under the effects of a debuff you gain 10% increased rogue damage\n" +
"Rogue stealth builds while not attacking and slower while moving, up to a max of 115\n" +
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
"The higher your rogue stealth the higher your rogue damage, crit, and movement speed";
}
public override void UpdateEquip(Player player)
{
player.Calamity().throwingDamage += 0.1f;
player.Calamity().throwingCrit += 10;
player.moveSpeed += 0.05f;
player.endurance += 0.05f;
player.lavaMax += 240;
player.ignoreWater = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 7);
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 6);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}