Files
CalamityModPublic/Items/Weapons/Melee/SeashineSword.cs
T

45 lines
1.4 KiB
C#

using CalamityMod.Items.Placeables;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class SeashineSword : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.CloneDefaults(ItemID.EnchantedSword);
Item.useTime = 30;
Item.damage = 26;
Item.DamageType = DamageClass.Melee;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.width = 40;
Item.height = 40;
Item.knockBack = 2;
Item.shootSpeed = 11;
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item1;
}
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
type = ModContent.ProjectileType<SeashineSwordProj>();
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<PearlShard>(3).
AddIngredient<SeaPrism>(7).
AddIngredient<Navystone>(10).
AddTile(TileID.Anvils).
Register();
}
}
}