Files
CalamityModPublic/Items/Armor/GodSlayerChestplate.cs
T
Ozzatron 72bb69852a 1 - There is now a Utility function to give players immunity frames. Immunity frames should not be given to players any other way.
2 - Gael's Greatsword right click parry removed.
3 - Removed Determination Breaker.
4 - Shield slam iframes normalized. Ornate Shield and Plaguebringer set give 4. Asgard's Valor line gives 6.
5 - Shield of Cthulhu gives 6 iframes and 6 no-collide frames instead of 10 no-collide frames.
6 - Shield of Cthulhu can't cause you to get double-hit anymore.
7 - Calamity-granted iframes will never cause the player to get double-hit.
8 - Solar Flare Armor set bonus now has a base damage of 400. Its spawned explosion now has the same damage and scales with melee stats.
9 - Solar Flare Armor set bonus now gives 12 iframes.
10 - Solar Flare Armor set bonus can't cause you to get double-hit anymore.
11 - Exo Gladius on-hit gives 3 iframes.
12 - Lucrecia (and its projectiles) on-hit give 5 iframes.
13 - Phosphorescent Gauntlet on-hit gives 15 iframes.
14 - Cosmic Plushie explicitly removes all your iframes immediately upon stabbing you.
2021-11-11 18:50:12 -05:00

51 lines
1.6 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.Body)]
public class GodSlayerChestplate : ModItem
{
public const int DashIFrames = 6;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("God Slayer Chestplate");
Tooltip.SetDefault("+60 max life\n" +
"Enemies take damage when they hit you\n" +
"11% increased damage and 6% increased critical strike chance");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 41;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
player.thorns += 0.5f;
player.statLifeMax2 += 60;
player.allDamage += 0.11f;
modPlayer.AllCritBoost(6);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 23);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 3);
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}