2 - Holy Wrath and Profaned Rage no longer provide movement speed. 3 - Holy Wrath no longer provides horizontal flight speed. 4 - Mirage Jellys can now be hit at all times, even while they're teleporting. 5 - King Slime Jewel can now be killed. 6 - Profaned Energy Lanterns no longer deal contact damage. 7 - Plague Mines can now be damaged at all times.
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor
|
|
{
|
|
[AutoloadEquip(EquipType.Legs)]
|
|
public class AtaxiaSubligar : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Hydrothermic Subligar");
|
|
Tooltip.SetDefault("5% increased critical strike chance\n" +
|
|
"10% increased movement speed");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 18;
|
|
item.height = 18;
|
|
item.value = Item.buyPrice(0, 18, 0, 0);
|
|
item.rare = ItemRarityID.Yellow;
|
|
item.defense = 14;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.Calamity().AllCritBoost(5);
|
|
player.moveSpeed += 0.1f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 10);
|
|
recipe.AddIngredient(ItemID.HellstoneBar, 5);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 2);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|