FPtje/DarkRP — pull request #1045 by Bo98 (2013-09-08 17:05:33+00:00)
Title: Hungermod refactor

* Made AddFoodItem global.
* Made the price of food configurable per food item. This removes GM.Config.foodcost.
* Added ability to disable the default food with the DarkRP modification addon.
* Added customisation ConVars to the hungermod HUD .
* Made FoodItems table integer-keyed. This brings it in line with similar type tables (RPExtraTeams, DarkRPEntities etc.)
* Renamed FoodItems's "amount" field to "energy". It's more descriptive. Amount can easily be confused with price or quantity.
* Made AddFoodItem accept tables (like AddEntity, AddExtraTeam, AddCustomShipment etc.)
* Renamed Player.HungerUpdate to Player.hungerUpdate and Player.NewHungerData to Player.newHungerData to match the casing of other functions.
* Renamed AddFoodItem to DarkRP.createFood (with backwards compatibility) and added documentation.
* FPS boosts in the hungermod HUD.
* Removed GM.Config.foodspawn. It's done nothing since 2009.
* Added a corrupt food checker to AddFoodItem.
* Better default food names.
* Fixed the Hungermod HUD being painted behind the DarkRP HUD.
* Made the "can't afford" /buyfood notification more descriptive.
* Moved FoodItems table to shared rather than having duplicate code clientside and serverside.
* Made FoodAteAlpha and FoodAteY local. They don't need to be global and nobody would care about them. They are only used internally.
* Fixed text wrapping in the cook job description.
* Fixed position of the text on the hungermod HUD.
* Lowercase filenames.
* Fixed timer.Destroy in the microwave.
* Removed unnecessary HM table.
* Removed dead code

Goes with FPtje/DarkRPModification#11