Files
CalamityModPublic/Items/Armor/GodSlayerHelm.cs
T
Andrew Marheine f371e327da 1 - True melee stat added to Stat Meter.
2 - True melee damage now displays on all melee weapon tooltips next to normal melee damage.
3 - God Slayer cooldown now disables all life regen and no longer boosts damage.
4 - Molten Armor set bonus now boosts true melee damage by 30%.
5 - Draconic Elixir now adds 30 seconds of potion sickness if you trigger Silva or God Slayer revivals.
6 - Changed most summon items to check for netMode and send a message when the boss is spawned.
7 - Desert Scourge and Perf worms should no longer yeet across the world.
8 - Slime God Core shouldn't spaz out anymore if the slime it's buffing dies.
9 - Yharon should no longer teleport on top of you in phase 2.
10 - Brimstone Elemental fires her laser faster so she uses less time standing still.
11 - Astrum Deus second phase worms spawn using a different method now, please check at least a dozen times to make sure they spawn correctly every time.
12 - Wall of Flesh kill time changed from 3 minutes to 2 minutes.
2020-06-09 13:37:21 -05:00

69 lines
2.5 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class GodSlayerHelm : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("God Slayer Horned Greathelm");
Tooltip.SetDefault("14% increased melee damage and critical strike chance");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 48; //96
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<GodSlayerChestplate>() && legs.type == ModContent.ItemType<GodSlayerLeggings>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadow = true;
}
public override void UpdateArmorSet(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.godSlayer = true;
modPlayer.godSlayerDamage = true;
player.setBonus = "You will survive fatal damage and will be healed 150 HP if an attack would have killed you\n" +
"This effect can only occur once every 45 seconds\n" +
"While the cooldown for this effect is active all life regen is disabled\n" +
"Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts\n" +
"Enemies take a lot of damage when they hit you\n" +
"An attack that would deal 80 damage or less will have its damage reduced to 1";
player.thorns += 2.5f;
}
public override void UpdateEquip(Player player)
{
player.meleeDamage += 0.14f;
player.meleeCrit += 14;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 14);
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 8);
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 8);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}