Files
CalamityModPublic/Items/Ammo/SuperballBullet.cs
T

43 lines
1.2 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Ammo
{
public class SuperballBullet : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Ammo";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetDefaults()
{
Item.damage = 6;
Item.DamageType = DamageClass.Ranged;
Item.width = 8;
Item.height = 8;
Item.maxStack = 9999;
Item.consumable = true;
Item.knockBack = 1.5f;
Item.value = Item.sellPrice(copper: 2);
Item.rare = ItemRarityID.Green;
Item.shoot = ModContent.ProjectileType<SuperballBulletProj>();
Item.shootSpeed = 1f;
Item.ammo = AmmoID.Bullet;
}
public override void AddRecipes()
{
CreateRecipe(150).
AddIngredient(ItemID.MeteorShot, 150).
AddIngredient<PearlShard>().
AddTile(TileID.Anvils).
Register();
}
}
}