Files
CalamityModPublic/Items/Weapons/Ranged/Buzzkill.cs
T
CongratsIsTrash 4d2243de1f Reduced damage of Buzzkill and Sup Slaughterer holdouts
Increased Sup Slaughterer's use time to kill spam meta
Also fixed Sup Slaughterer's lingering saw dealing more damage when fired from the holdout than when fired from a plain right-click
2026-04-09 19:34:41 -04:00

60 lines
2.0 KiB
C#

using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
[LegacyName("Butcher")]
public class Buzzkill : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetStaticDefaults()
{
ItemID.Sets.IsRangedSpecialistWeapon[Type] = true;
}
public override void SetDefaults()
{
Item.width = 76;
Item.height = 42;
Item.damage = 56;
Item.crit = 21;
Item.useTime = 30;
Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Shoot;
Item.knockBack = 1f;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.DamageType = DamageClass.Ranged;
Item.channel = true;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<BuzzkillHoldout>();
Item.shootSpeed = 20f;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<BuzzkillHoldout>(), damage, knockback, player.whoAmI);
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.IllegalGunParts).
AddIngredient(ItemID.Cog, 15).
AddIngredient(ItemID.SoulofFright, 10).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}