Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. using Terrausing System;
  2. using System.Collections.Generic;
  3. using Microsoft.Xna.Framework;
  4. using Terraria;
  5. using Terraria.ID;
  6. using Terraria.ModLoader;
  7.  
  8. namespace CustomHair.Items
  9. {
  10. public class CustomVanityMask : ModItem
  11. {
  12. public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
  13. {
  14. equips.Add(EquipType.Head);
  15. return true;
  16. }
  17.  
  18. public override void SetDefaults()
  19. {
  20. item.name = "Ponytail Wig";
  21. item.width = 40;
  22. item.height = 56;
  23. item.rare = 3;
  24. item.vanity = true;
  25. }
  26.  
  27. public override bool DrawHead()
  28. {
  29. return true;
  30. }
  31. public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
  32. {
  33. drawHair = drawAltHair = false;
  34. }
  35. public override void AddRecipes()
  36. {
  37. ModRecipe recipe = new ModRecipe(mod);
  38. recipe.AddIngredient(ItemID.Silk, 1);
  39. recipe.AddIngredient(ItemID.PurpleDye, 1);
  40. recipe.AddTile(TileID.WorkBenches);
  41. recipe.SetResult(this);
  42. recipe.AddRecipe();
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement