Files
CalamityModPublic/Items/Armor/GodSlayerHelmet.cs
T
Andrew Marheine 9d64de7929 1 - God Slayer ranged no longer gives random increased damage on crit, it will need a new effect to replace it.
2 - Reduced Brimflame bonus from 50% to 30%.
3 - Reduced Titanium Trident knockback damage bonus because I forgot it last time.
4 - Increased Brimflame total defense from 27 to 41.
5 - Reduced Plague Reaper ranged set bonus damage increase from 100% to 60% and crit from 30% to 20%.
2021-03-11 09:57:55 -06:00

66 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 GodSlayerHelmet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("God Slayer Helmet");
Tooltip.SetDefault("14% increased ranged 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 = 35; //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.godSlayerRanged = 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 halved\n" +
"You fire a god killer shrapnel round while firing ranged weapons every 2.5 seconds";
}
public override void UpdateEquip(Player player)
{
player.rangedDamage += 0.14f;
player.rangedCrit += 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(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}