using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ModName.Items.Weapons
{
public class Kitchen_Gun : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Kitchen Gun");
Tooltip.SetDefault("'I Love You Kitchen Gun!'");
}
public override void SetDefaults()
{
item.damage = 150;
item.ranged = true;
item.noMelee = true;
item.shoot = ProjectileID.Bullet;
item.useAmmo = AmmoID.Bullet;
item.shootSpeed = 8f;
item.width = 80;
item.height = 80;
item.useTime = 30;
item.useAnimation = 30;
item.useStyle = 5;
item.knockBack = 10;
item.rare = 7;
item.value = 10000;
Main.rand.next(1, 1);
item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Items/Weapons/Kitchen_Gun_Sound_Byte_").WithVolume(.7f);
item.autoReuse = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.PhoenixBlaster, 1);
recipe.AddIngredient(ItemID.Sandgun, 1);
recipe.AddIngredient(ItemID.RangerEmblem, 1);
recipe.AddIngredient(ItemID.Explosives, 5);
recipe.AddIngredient(ItemID.HellstoneBar, 20);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
}
}
}
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ModName.Items.Weapons
{
public class Kitchen_Gun : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Kitchen Gun");
Tooltip.SetDefault("'I Love You Kitchen Gun!'");
}
public override void SetDefaults()
{
item.damage = 150;
item.ranged = true;
item.noMelee = true;
item.shoot = ProjectileID.Bullet;
item.useAmmo = AmmoID.Bullet;
item.shootSpeed = 8f;
item.width = 80;
item.height = 80;
item.useTime = 30;
item.useAnimation = 30;
item.useStyle = 5;
item.knockBack = 10;
item.rare = 7;
item.value = 10000;
Main.rand.next(1, 1);
item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Items/Weapons/Kitchen_Gun_Sound_Byte_").WithVolume(.7f);
item.autoReuse = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.PhoenixBlaster, 1);
recipe.AddIngredient(ItemID.Sandgun, 1);
recipe.AddIngredient(ItemID.RangerEmblem, 1);
recipe.AddIngredient(ItemID.Explosives, 5);
recipe.AddIngredient(ItemID.HellstoneBar, 20);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
}
}
}