Files
CalamityModPublic/Items/RelicOfConvergence.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

39 lines
1.4 KiB
C#

using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items
{
public class RelicOfConvergence : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Misc";
public override void SetStaticDefaults()
{
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 46;
Item.useTime = Item.useAnimation = 25;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.DD2_DarkMageCastHeal;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
Item.rare = ItemRarityID.Purple;
Item.shoot = ModContent.ProjectileType<RelicOfConvergenceCrystal>();
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.ToolsOther;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.ownedProjectileCounts[ModContent.ProjectileType<RelicOfDeliveranceSpear>()] <= 0;
}
}