Files
CalamityModPublic/Items/Weapons/Melee/Basher.cs
T
Xyk 99deaee5b9 Basher
Also made the acidwood sword go into basher and acidwood bow go into toxibow
2024-07-30 19:48:41 -04:00

45 lines
1.4 KiB
C#

using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Items.BaseItems;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Projectiles.Melee;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Basher : CustomUseProjItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 56;
Item.height = 60;
Item.damage = 40;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = Item.useTime = 30;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 7f;
Item.autoReuse = true;
Item.channel = true;
Item.shoot = ModContent.ProjectileType<BasherHoldout>();
Item.noUseGraphic = true;
Item.noMelee = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
}
public override bool MeleePrefix() => true;
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AcidwoodSword>().
AddIngredient<SulphuricScale>(12).
AddTile(TileID.Anvils).
Register();
}
}
}