Files
CalamityModPublic/Items/RelicOfConvergence.cs
T
Altixal e0bf810be7 Added token knockback to all weapons
Change carried over from 1.4.4

Also did a little regexing oops
2024-08-11 11:07:20 +07: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.useAnimation = Item.useTime = 25;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.DD2_DarkMageCastHeal;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
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;
}
}