Make cooked food's rotteness an average of the rotteness of the components

Fixes #1229