Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. using Terraria.ID;
  2. using Terraria.ModLoader;
  3.  
  4. namespace DragonBow.Items
  5. {
  6. public class DragonslayerGreatbow : ModItem
  7. {
  8. public override void SetStaticDefaults()
  9. {
  10. DisplayName.SetDefault("DragonslayerGreatbow");
  11. Tooltip.SetDefault("Greatbow used by the Dragonslayers during the age of gods. Uses Dragonslayers` Arrows");
  12. }
  13. public override void SetDefaults()
  14. {
  15. /* Item Technical Atributes*/
  16. item.ranged = true;
  17. item.noMelee = true;
  18. item.autoReuse = true;
  19. item.useTurn = true;
  20. item.width = 120;
  21. item.height = 200;
  22. item.useStyle = 5;
  23. item.useAnimation = 40;
  24. item.useTime = 40;
  25. item.rarity = 8;
  26. item.useSound = SoundID.Item102;
  27.  
  28. /* Item Stats */
  29. item.damage = 240;
  30. item.knockback = 10;
  31. item.crit = 30;
  32. item.shoot = modProjectile.DragpmslayerGreatarrow;
  33. item.shootSpeed = 4f;
  34. item.useAmmo = modItem.DragonslayerGreatarrow;
  35. item.value = (0,30,0,0);
  36. }
  37. public override void AddRecipes();
  38. {
  39. ModRecipe recipe = new ModRecipe(mod);
  40. recipe.AddIngredient(ItemID.SpookyWood, 200);
  41. recipe.AddIngredient(ItemID.SpookyTwig, 2);
  42. recipe.AddIngredient(ItemID.ShadowFlameBow, 1)
  43. recipe.AddIngredient(this.GetItem("DragonslayerGreatarrow", 10);
  44. recipe.AddTile(TileID.MythrilAnvil);
  45. recipe.SetResult(this);
  46. recipe.AddRecipe();
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement