tModLoader How do I hide the player's "coat" for my custom bodyarmor+leggings?

noobLue

Terrarian
(this is the coat that you can select in character creation)
Bvd9FeZ.png



Leggings:

C#:
[AutoloadEquip(EquipType.Legs)]
    public class WoodSummonerLeggings : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Wooden Summoner Leggings");
            Tooltip.SetDefault("Wooden leggings for summoners.");
        }

        public override void SetDefaults()
        {
            item.width = 18;
            item.height = 18;
            item.value = 100;
            item.rare = ItemRarityID.Blue;
            item.defense = 1;
        }

        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Wood, 25);
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }

        public override void DrawArmorColor(Player drawPlayer, float shadow, ref Color color, ref int glowMask, ref Color glowMaskColor)
        {
            base.DrawArmorColor(drawPlayer, shadow, ref color, ref glowMask, ref glowMaskColor);

            color = drawPlayer.GetImmuneAlphaPure(Color.White, shadow);
        }
    }

Bodyarmor:

C#:
[AutoloadEquip(EquipType.Body)]
    public class WoodSummonerBreastplate : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Wooden Summoner Breastplate");
            Tooltip.SetDefault("Wooden breastplate for summoners.");
        }

        public override void SetDefaults()
        {
            item.width = 18;
            item.height = 18;
            item.value = 100;
            item.rare = ItemRarityID.Blue;
            item.defense = 1;
        }

        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Wood, 35);
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }

        public override void DrawArmorColor(Player drawPlayer, float shadow, ref Color color, ref int glowMask, ref Color glowMaskColor)
        {
            base.DrawArmorColor(drawPlayer, shadow, ref color, ref glowMask, ref glowMaskColor);

            color = drawPlayer.GetImmuneAlphaPure(Color.White, shadow);
        }

    }
 
Back
Top Bottom