So, a primer of what I've been dealing with. In Last Seed, there is a food portioning mechanic, similar to what you see in Complete Alchemy and Cooking Overhaul. (LS defaults to using CACO's system instead of its own if both are installed, but that's neither here nor there.) You eat a big food, and it splits into smaller foods. Simple enough.
CACO implements its food portioning using magic effects on the foods. It gets to do that because it actually makes edits to the foods. In Last Seed, I've attempted to take a very hands-off approach to the food records themselves, in order to ensure maximum compatibility (including with CACO itself). That means I need to take a different approach.
So let's analyze the problem. We need to take an original food, and based on it, convert it to a portioned food, of some quantity. For instance, a bread loaf might turn into two bread pieces. A cheese wheel turns into 8 slices. etc.
If I can't store this as metadata on the food, that means I need a "single source of truth" on a script somewhere. I need to use a key (the original food) and map it to several values (the portion food, and the quantity). That sounds an awful lot like a table, doesn't it?
LAST SEED啊