Need help on Looking for a file on Terraria's Content Folder

jseriaj

Official Terrarian
(If Im posting on the wrong thread, Im sorry, since I cant finda relevant place to post this, sorry for the trouble)
Im making a mod, which is where I almost complete it, but the problem is, I cant find the leg armor that Im looking for, and then I suddenly found on the wikia is this, "Yoraizor's Skirt"
I keep on looking for it, but I cant find it, can someone help me?
Yoraiz0r%27s_Skirt.png

Im looking for the leg animation of it and not the item ID.

Edit: New problem, now I made the set, but the problem is that, I made the helmet piece, into "Face" one so that my character's hair will be visible, but after I compiled it and crafted the face piece, I cant equip it, it doesnt have the word "Equipable" in it but I did what it says on this video, instead that I changed the "Head" into "Face"

 
Last edited:
Edit: New problem, now I made the set, but the problem is that, I made the helmet piece, into "Face" one so that my character's hair will be visible, but after I compiled it and crafted the face piece, I cant equip it, it doesnt have the word "Equipable" in it but I did what it says on this video, instead that I changed the "Head" into "Face"

Please show your code.
 
Please show your code.

Code:
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ReisenSet.Items.Armors
{
    public class ReisenEars : ModItem
    {
        public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
        {
            equips.Add(EquipType.Face);
            return true;
        }

        public override void SetDefaults()
        {
            item.name = "Ears of Reisen";
            item.width = 18;
            item.height = 18;
            item.toolTip ="Reisen's Artificial Bunny Ears";
            item.toolTip2 = "5% Increased movement speed";
            item.value = 10;
            item.rare = 11;
            item.defense = 50;
        }

        public override bool IsArmorSet(Item face, Item body, Item legs)
        {
            return body.type == mod.ItemType("ReisenSuit") && legs.type == mod.ItemType("ReisenSkirt"); // put your Suit and Skirt Name here
        }

        public override void UpdateArmorSet(Player player)
        {
            player.setBonus = "See your enemiesfrom afar!"; //set bonus
            player.magicDamage *= 0.08f; //8% magic damage
            player.AddBuff(BuffID.Hunter, 2); //Hunter Potion Buff
        }
        public override void AddRecipes()  //how to craft this item
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Wood, 10); //you need 10 Wood
            recipe.AddTile(TileID.WorkBenches); //at workbench
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
    }
}
 
Change Face back to Head and override DrawHair in your class.
can you give me a code of that so I can only paste it?

I add

Code:
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
        {

        }

at the very end and my game crashed, but when I put it between IsArmorSet and UpdateArmorSet, the hair still doesnt appear
 
Last edited:
can you give me a code of that so I can only paste it?
No, because if I simply give you the code for you to paste, you won't learn anything from it. I'm trying to help you become better at coding instead. ;)
I add

Code:
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
        {

        }

at the very end and my game crashed, but when I put it between IsArmorSet and UpdateArmorSet, the hair still doesnt appear

What you have is correct, however you need to set drawAltHair to true within the method.
 
No, because if I simply give you the code for you to paste, you won't learn anything from it. I'm trying to help you become better at coding instead. ;)


What you have is correct, however you need to set drawAltHair to true within the method.

how?, since I'm just new on those

drawAltHair = true; ?

( I have graduated 2 years of IT / CS last year, so sometimes I know what i'm doing, and sometimes... I dont xD )

yay, it worked! :D
 
Last edited:
Back
Top Bottom