Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. using Microsoft.Xna.Framework;
  2. using Terraria;
  3. using Terraria.ID;
  4. using Terraria.ModLoader;
  5.  
  6. namespace ConvertedWeapons.Items.Weapons
  7. {
  8. public class MIceBlade : ModItem
  9. {
  10. public override void SetStaticDefaults()
  11. {
  12. DisplayName.SetDefault("Ice Blade");
  13. }
  14.  
  15. public override void SetDefaults()
  16. {
  17. item.CloneDefaults(ItemID.IceBlade);
  18. item.melee = false;
  19. item.magic = true;
  20. item.autoReuse = true;
  21. item.useTime = 15;
  22. item.useAnimation = 15;
  23. item.mana = 8;
  24. item.damage = 10;
  25. }
  26.  
  27. public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
  28. {
  29. int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, item.owner);
  30. Projectile pro = Main.projectile[p];
  31. pro.melee = false;
  32. pro.magic = true;
  33. return false;
  34. }
  35.  
  36. public override void AddRecipes()
  37. {
  38. ModRecipe recipe = new ModRecipe(mod);
  39. recipe.AddIngredient(ItemID.IceBlade);
  40. recipe.AddIngredient(mod, "MageConverter");
  41. recipe.AddTile(TileID.Anvils);
  42. recipe.SetResult(this);
  43. recipe.AddRecipe();
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement