This is not yet available in AltAway, and is documented here to help advise implementation.
Objects of type Foodstuff will have the following additional fields.
healthImpact - signed integer that is added to avatar's Health score on consumption.
hungerImpact - signed integer that is subtracted from avatar's Hunger score on consumption.
foodType - integer that has the following meaning (examples only, not yet set in stone)
0-9 | Standard foodstuff. Hamburger, Pizza, etc. |
10-19 | Fruit or Salad - may be eaten alone or added to Standard item. |
20-29 | Sauces. Ketchup, Mayonnaise, Gravy, etc. - may only be added to Standard item. |
30-39 | Condiments. Salt, Pepper, Chilli flakes, etc. - may only be added to Standard or sauces. |
40-49 | Vegetables. May be eaten raw. |
50-59 | Raw Meats - need processing, possibly alongside other items, to turn into Standard. Cannot be eaten safely. |
60-69 | Sweets/Candy - may be eaten. Might reduce hunger but also reduce health! |
ingredientsList - items that were added together to create this object. (Just names?) Displayable to user. (Via Tell me About?)
Some items can be trivially combined - add ketchup to hamburger, for instance, this combines scores, adds “With ketchup” to item name and ingredientsList
Some items might need a cooker(crafting table) to be combined or processed, - e.g. Milk to cheese, bread rolls and raw ground beef to make a hamburger.
Cooker to need recipe (in a held recipe book?) to create most items.
Otherwise what can be combined will be decided by looking at the foodType and comparing to a rules table. This would allow for some very strange combinations. Unless a recipe is involved, the base image will probably not be able to change because of limitation of fixed images.
Poisons can be accommodated by having a very negative healthImpact. Beware of poisoned hamburgers. Poison should be !!R@RE!!
Might need to implement a weight/quantity field and usualDosage field (you wouldn't expect to have to buy a fresh bottle of ketchup for every hamburger.)