Files
CalamityModPublic/Items/Armor/StatigelCap.cs
T
Andrew Marheine 451f6ca9cc 1 - Nerfed a lot of jump speed boosts if used with autojump that weren't nerfed before.
2 - Removed cross necklace effect from Yharim's Insignia and Ele Gauntlet.
3 - Reduced Tracer line wing flight time.
4 - Fixed various jump speed tooltips to display proper info.
5 - Nerfed Grand Gelatin jump speed bonus because it was fucking busted before.
6 - Fixed HotE tooltip to not be a fucking stupid bitch.
7 - Buffed Statis' Ninja Belt jump speed bonus from 8 to 12%.
8 - Yharon slows down a shitload more when entering a new phase to prevent funny charge memes.
2020-12-19 10:47:01 -06:00

66 lines
2.2 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class StatigelCap : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Statigel Cap");
Tooltip.SetDefault("10% increased magic damage and 10% decreased mana cost\n" +
"7% increased magic critical strike chance and +30 max mana");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 5, 0, 0);
item.rare = 4;
item.defense = 5; //22
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<StatigelArmor>() && legs.type == ModContent.ItemType<StatigelGreaves>();
}
public override void UpdateArmorSet(Player player)
{
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
"Grants an extra jump and increased jump height\n" +
jumpSpeedBonus + "% increased jump speed";
CalamityPlayer modPlayer = player.Calamity();
modPlayer.statigelSet = true;
modPlayer.statigelJump = true;
Player.jumpHeight += 5;
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
}
public override void UpdateEquip(Player player)
{
player.magicDamage += 0.1f;
player.magicCrit += 7;
player.manaCost *= 0.9f;
player.statManaMax2 += 30;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 5);
recipe.AddIngredient(ItemID.HellstoneBar, 9);
recipe.AddTile(ModContent.TileType<StaticRefiner>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}