Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using TutorialMod.TutorialDusts;
- using Terraria.ID;
- using Terraria.ModLoader;
- using Terraria;
- using Microsoft.Xna.Framework;
- namespace TutorialMod.Items
- {
- public class SpectraBlade : ModItem
- {
- public override void SetStaticDefaults()
- {
- Tooltip.SetDefault("sexy man use sexy weapon");
- }
- public override void SetDefaults()
- {
- item.damage = 75;
- item.melee = true;
- item.width = 10000;
- item.height = 10000;
- item.useTime = 16;
- item.useAnimation = 16;
- item.useStyle = 1;
- item.knockBack = 500;
- item.value = 100000000;
- item.rare = 4;
- item.shoot = ProjectileID.SpectreWrath;
- item.shootSpeed = 5;
- item.UseSound = SoundID.Item1;
- item.autoReuse = true;
- }
- public override void MeleeEffects(Player player, Rectangle hitbox) {
- if (Main.rand.NextBool(3)) {
- Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustType<TutorialDust>());
- }
- }
- public override void AddRecipes()
- {
- ModRecipe recipe = new ModRecipe(mod);
- recipe.AddIngredient(ItemID.DirtBlock, 10);
- recipe.AddTile(TileID.WorkBenches);
- recipe.SetResult(this);
- recipe.AddRecipe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement