Files
CalamityModPublic/Items/Armor/TarragonMask.cs
T
Andrew Marheine bb146546d7 1 - Abaddon and Asgard's Valor reduce DoT from Brimstone Flames.
2 - Alchemical Flask and Plague Hive reduce DoT from Plague.
3 - Omniblade and Blade of Enmity are affected far less by melee speed stat.
4 - Silva and Auric Armors no longer provide a ton of debuff immunities.
5 - Removed pointless debuff immunities from Tarragon and Xeroc armors.
6 - Adjusted Corrupted and Crimson Crusher Blades.
7 - DoG phase 2 spawns Cosmic Guardians at the start of final phase.
8 - Ravager inflicts Armor Crunch.
2020-06-19 02:36:02 -05:00

77 lines
2.7 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class TarragonMask : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Tarragon Mask");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids\n" +
"10% increased magic damage and critical strike chance\n" +
"5% increased damage reduction, +100 max mana, and 15% reduced mana usage\n" +
"Provides heat protection in Death Mode");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 50, 0, 0);
item.defense = 10; //98
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
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.tarraMage = true;
player.setBonus = "Reduces enemy spawn rates\n" +
"Increased heart pickup range\n" +
"Enemies have a chance to drop extra hearts on death\n" +
"On every 5th critical strike you will fire a leaf storm\n" +
"Magic projectiles heal you on enemy hits\n" +
"Amount healed is based on projectile damage";
}
public override void UpdateEquip(Player player)
{
player.manaCost *= 0.85f;
player.magicDamage += 0.1f;
player.magicCrit += 10;
player.endurance += 0.05f;
player.lavaMax += 240;
player.statManaMax2 += 100;
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();
}
}
}