Files
CalamityModPublic/Items/Accessories/CelestialJewel.cs
T
Altixal 7bc61e25cc Localizing ModifyTooltips: Part 1
Also fixed Xyk's forgotten Y. Insig nerf
2023-07-18 02:32:36 +07:00

44 lines
1.3 KiB
C#

using CalamityMod.Items.Placeables;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Potions;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class CelestialJewel : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.defense = 8;
Item.width = 26;
Item.height = 26;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.AstralTeleportHotKey);
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.celestialJewel = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CrownJewel>().
AddIngredient(ItemID.TeleportationPotion, 3).
AddIngredient<AureusCell>(15).
AddIngredient<SeaPrism>(15).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}