public static bool DrawLegs(Player player)
{
EquipTexture texture = EquipLoader.GetEquipTexture(EquipType.Legs, player.legs);
if (texture != null && !texture.DrawLegs())
{
return false;
}
texture = EquipLoader.GetEquipTexture(EquipType.Shoes, player.shoe);
if (texture != null && !texture.DrawLegs())
{
return false;
}
foreach (var hook in HookDrawLegs)
{
if (!hook(player.legs, player.shoe))
{
return false;
}
}
return true;
}