Advertisement
Guest User

DirkSword.cs

a guest
Oct 22nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.38 KB | None | 0 0
  1. using System;
  2. using Microsoft.Xna.Framework;
  3. using Terraria;
  4. using Terraria.Graphics.Effects;
  5. using Terraria.Graphics.Shaders;
  6. using Terraria.ID;
  7. using Terraria.ModLoader;
  8.  
  9. namespace Weapons.Items.DirkSword
  10. {
  11.     public class DirkSword : ModItem
  12.     {
  13.         public override void SetDefaults ()
  14.         {
  15.             item.name = "Unbreakable Katana";   // Sword name
  16.             item.damage = 130;  // Sword damage
  17.             item.melee = true;  // Is melee
  18.             item.width = 90;    // Sword width
  19.             item.height = 90;   // Sword height
  20.             item.toolTip = "Unbreakable piece of awesome shit.";    // Description
  21.             item.useTime = 25;  // Rate of Fire
  22.             item.useAnimation = 25; // Animation speed
  23.             item.useStyle = 1;
  24.             item.knockback = 3;
  25.             item.value = 100;
  26.             item.rare = 10;
  27.             item.useSound = 1;
  28.             item.autoReuse = true;  //Allows autoswing
  29.             item.useTurn = true;
  30.         }
  31.         public override void AddRecipes()
  32.         {
  33.             ModRecipe recipe = new ModRecipe(mod);
  34.             recipe.AddIngredient(ItemID.1198, 15);
  35.             recipe.AddIngredient(ItemID.548, 5);
  36.             recipe.AddIngredient(ItemID.526, 50);
  37.             recipe.AddTile(TileID.134);
  38.             recipe.SetResult(this)
  39.             recipe.AddRecipe()
  40.         }
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement