50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using Emiliasmod.Content.Projectiles;
|
|
using Emiliasmod.Content.Items.Ammo;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Microsoft.Xna.Framework;
|
|
|
|
namespace Emiliasmod.Content.Items.Weapon
|
|
{
|
|
public class SpaceBlaster : ModItem
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Item.DamageType = DamageClass.Ranged;
|
|
Item.damage = 1500;
|
|
Item.width = 64;
|
|
Item.height = 64;
|
|
Item.crit = -20;
|
|
Item.useTime = 20;
|
|
Item.useAnimation = 20;
|
|
Item.useStyle = ItemUseStyleID.Shoot;
|
|
Item.noMelee = true;
|
|
Item.knockBack = 0;
|
|
Item.value = Item.sellPrice(0, 50, 0, 0);
|
|
Item.rare = ItemRarityID.Purple;
|
|
Item.UseSound = SoundID.Item92;
|
|
Item.autoReuse = false;
|
|
Item.shoot = ModContent.ProjectileType<SpaceBlasterProjectile>();
|
|
Item.shootSpeed = 16f;
|
|
Item.useAmmo = ModContent.ItemType<VacuumTube>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
Recipe recipe = CreateRecipe();
|
|
recipe.AddIngredient(ItemID.WaterGun, 1);
|
|
recipe.AddIngredient(ItemID.BubbleGun, 1);
|
|
//recipe.AddIngredient(ItemID, 10);
|
|
recipe.AddTile(TileID.WorkBenches);
|
|
recipe.Register();
|
|
}
|
|
|
|
//public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
|
//{
|
|
// base.PostDrawInWorld(spriteBatch, lightColor, alphaColor, rotation, scale, whoAmI);
|
|
//}
|
|
}
|
|
}
|