Files
CalamityModPublic/Items/Armor/DaedalusHat.cs
T
Andrew Marheine ff223e0674 1 - Draedon's Heart is now the Exo Mech expert accessory, removed the the recipe and Rev+ accessory affects.
2 - Daedalus armor, Catastrophe Claymore, Crystal Blade, Consecrated Water and Fulguration Halberd require less crystal shards to craft.
3 - Revivify Potion blood orb recipe requirement increased.
4 - Exo Mech treasure bag.
5 - Reduced Fabstaff and Helium Flash recipe requirements.
6 - Weak Reference Support for exo mechs adjusted.
7 - Exo mech minimap icons.
8 - Exo mech loot drop code.
9 - Artemis targets the same player as Apollo if Apollo is alive.
2021-09-09 15:55:21 -05:00

69 lines
2.3 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 DaedalusHat : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Daedalus Hood");
Tooltip.SetDefault("13% increased magic damage and 7% increased magic critical strike chance\n" +
"10% decreased mana usage and +60 max mana");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 25, 0, 0);
item.rare = ItemRarityID.Pink;
item.defense = 5; //35
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadowSubtle = true;
player.armorEffectDrawOutlines = true;
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "5% increased magic damage\n" +
"You have a 10% chance to absorb physical attacks and projectiles when hit\n" +
"If you absorb an attack you are healed for 1/2 of that attack's damage";
CalamityPlayer modPlayer = player.Calamity();
modPlayer.daedalusAbsorb = true;
player.magicDamage += 0.05f;
}
public override void UpdateEquip(Player player)
{
player.manaCost *= 0.9f;
player.magicDamage += 0.13f;
player.magicCrit += 7;
player.statManaMax2 += 60;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 8);
recipe.AddIngredient(ItemID.CrystalShard, 3);
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>());
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}