42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using CalamityMod.Projectiles.Ranged;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Ammo
|
|
{
|
|
public class RubberMortarRound : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Ammo";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 99;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.damage = 25;
|
|
Item.DamageType = DamageClass.Ranged;
|
|
Item.width = 20;
|
|
Item.height = 14;
|
|
Item.maxStack = 9999;
|
|
Item.consumable = true;
|
|
Item.knockBack = 7.5f;
|
|
Item.value = Item.sellPrice(copper: 20);
|
|
Item.rare = ModContent.RarityType<Turquoise>();
|
|
Item.ammo = AmmoID.Bullet;
|
|
Item.shoot = ModContent.ProjectileType<RubberMortarRoundProj>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(100).
|
|
AddIngredient<MortarRound>(100).
|
|
AddIngredient(ItemID.PinkGel, 5).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|