What determines a mammals diet type