public static void SetMatch(int armorSlot, int type, bool male, ref int equipSlot, ref bool robes)
{
EquipTexture texture = null;
if (armorSlot == 1)
{
texture = EquipLoader.GetEquipTexture(EquipType.Body, type);
}
else if (armorSlot == 2)
{
texture = EquipLoader.GetEquipTexture(EquipType.Legs, type);
}
texture?.SetMatch(male, ref equipSlot, ref robes);
foreach (var hook in HookSetMatch)
{
hook(armorSlot, type, male, ref equipSlot, ref robes);
}
}