Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Terrausing System;
- using System.Collections.Generic;
- using Microsoft.Xna.Framework;
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace CustomHair.Items
- {
- public class CustomVanityMask : ModItem
- {
- public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
- {
- equips.Add(EquipType.Head);
- return true;
- }
- public override void SetDefaults()
- {
- item.name = "Ponytail Wig";
- item.width = 40;
- item.height = 56;
- item.rare = 3;
- item.vanity = true;
- }
- public override bool DrawHead()
- {
- return true;
- }
- public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
- {
- drawHair = drawAltHair = false;
- }
- public override void AddRecipes()
- {
- ModRecipe recipe = new ModRecipe(mod);
- recipe.AddIngredient(ItemID.Silk, 1);
- recipe.AddIngredient(ItemID.PurpleDye, 1);
- recipe.AddTile(TileID.WorkBenches);
- recipe.SetResult(this);
- recipe.AddRecipe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement