All foods now have their "Size" indicated in their description. Booze have their "Potency".February 05, 2013 - Food and non-booze beverages now show their size in their descriptions. Not that non-booze beverages are of any interest to anybody.
Here is a patch that parses those values when an unknown item is registered. It also adds a line containing the fullness.txt or inebriety.txt entry to the info Mafia prints about the new item:
Code:
Unknown item found: black forest ham (2343, 332243935)
--------------------
2343 black forest ham 332243935 ham.gif food t,d 40
black forest ham 3 7 good 0 0 0 0
# black forest ham
--------------------
> ash $item[ black forest ham ]
Returned: black forest ham
plural => black forest hams
descid => 332243935
image => ham.gif
levelreq => 7
quality => good
adventures => 0
muscle => 0
mysticality => 0
moxie => 0
fullness => 3
inebriety => 0
spleen => 0
notes => unkown adventure yield
quest => false
gift => false
tradeable => true
discardable => true
combat => false
reusable => false
usable => false
multi => false
fancy => false
candy => false
bounty => none
bounty_count => 0
seller => none
buyer => none
name_length => 0
> eatsilent 1 black forest ham
Eating 1 black forest ham...
You gain 9 Adventures
You gain 43 Fortitude
Finished eating 1 black forest ham.
The other goal of this patch was to make the food/booze immediately available for the player to consume. This works with CLI commands, as the log shows.
However, I can't figure out how to make the new item appear in the Food panel of the ItemManager. I'm guessing it should somehow be added to ConcoctionDatabase.usableList, but I don't see how this is supposed to happen, appart from having the item in the data file when Mafia is launched.
I hope another dev more familiar with this part of Mafia (Roippi?) can help out.