Smarter Autonomous Meal Sizes

I found the default choices made by sims for meal size when cooking to be annoying. The default is to cook a single plate of a meal unless there are other hungry sims in the household, which ignores the fact that meals don't spoil right away particularly if they are popped into the fridge and fails to predict that other sims may soon be hungry even if they aren't now. This mod alters the autonomous meal cooking behaviour in the game. The following changes are made:

If there are one or two sims in the household, a random choice is made to cook either a single plate or a medium (4 plate) meal.

If there are three or more sims in the household, either a medium (4 plate) or large (8 plate) meal will be prepared.

Enables more of the gourmet meals to be prepared autonomously (using the same rules as above).

Sims will never prepare just a snack for a meal unless they live alone.

As a safety feature in case no older sims are present, children can always prepare a snack but will choose to eat an existing proper meal if one is available.

Resource Overrides

E882D22F_00000000_000000000000344C - fridge_CookAutonomously

E882D22F_00000000_000000000000344E - fridge_CookGourmetAutonomously

E882D22F_00000000_0000000000003455 - fridge_GrabSnackAutonomously 

Additional Credits
Kuree and all the others at Sims4Group who have put together the S4PE tool