54 lines
1.8 KiB
C#
54 lines
1.8 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 override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("God Slayer Chestplate");
|
|
Tooltip.SetDefault("+60 max life\n" +
|
|
"15% increased movement speed\n" +
|
|
"Enemies take damage when they hit you\n" +
|
|
"Attacks have a 2% chance to do no damage to 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().postMoonLordRarity = 14;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.godSlayerReflect = true;
|
|
player.thorns += 0.5f;
|
|
player.statLifeMax2 += 60;
|
|
player.moveSpeed += 0.15f;
|
|
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<NightmareFuel>(), 11);
|
|
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 11);
|
|
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|