Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. using Terraria;
  4. using Terraria.ID;
  5. using Terraria.ModLoader;
  6.  
  7. namespace Edge.Items.Weapons
  8. {
  9. public class CorruptMortar : ModItem
  10. {
  11.  
  12. public override void SetStaticDefaults()
  13. {
  14. DisplayName.SetDefault("Corrupt Mortar");
  15.  
  16. Tooltip.SetDefault("Uses rockets as ammo.");
  17. }
  18.  
  19. public override void SetDefaults()
  20. {
  21.  
  22. item.damage = 34;
  23. item.ranged = true;
  24. item.width = 32;
  25. item.height = 54;
  26. item.useTime = 20;
  27. item.useAnimation = 20;
  28. item.useStyle = 5;
  29. item.noMelee = true;
  30. item.knockBack = 4;
  31. item.value = 10000;
  32. item.rare = 4;
  33. item.autoReuse = false;
  34. item.shoot = 1;
  35. item.shootSpeed = 10f;
  36. item.useAmmo = AmmoID.Rocket;
  37. }
  38.  
  39. public override void AddRecipes()
  40. {
  41. ModRecipe recipe = new ModRecipe(mod);
  42. recipe.AddIngredient(ItemID.CursedFlames, 5);
  43. recipe.SetResult(this);
  44. recipe.AddRecipe();
  45. }
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement