Tasty Soup: Difference between revisions

From PZwiki
Tasty Soup
m (→‎Code: fixed alignment)
m (→‎Code: fixed alignment)
Line 27: Line 27:


== Code ==
== Code ==
  <nowiki> item TastySoup
  <nowiki>item TastySoup
{
{
HungerChange = -55,
HungerChange = -55,
Weight = 6,
Weight = 6,
Type = Food,
Type = Food,
IsCookable = TRUE,
IsCookable = TRUE,
UnhappyChange = -20,
UnhappyChange = -20,
MinutesToBurn = 140,
MinutesToBurn = 140,
DisplayName = Tasty Soup,
DisplayName = Tasty Soup,
ReplaceOnUse = Pot,
ReplaceOnUse = Pot,
Icon = PotFull,
Icon = PotFull,
MinutesToCook = 90,
MinutesToCook = 90,
BoredomChange = -15,
BoredomChange = -15,
         DaysTotallyRotten = 4,
         DaysTotallyRotten = 4,
         DaysFresh = 2,
         DaysFresh = 2,
         CustomContextMenu = Drink,
         CustomContextMenu = Drink,
}
}
}</nowiki>
</nowiki>


{{Navbox/Consumables}}
{{Navbox/Consumables}}

Revision as of 10:54, 6 February 2014


Tasty Soup is a tasty yet nutritious food item that is crafted with three units of water, a Cooking Pot and three soup ingredients, the soup relieves a huge amount of hunger and a medium amount of boredom and unhappiness. It is not advised to eat simple soup if the 'hungry' moodle has not appeared, as a good amount of will go to waste. Cooking the soup will greatly increase its effectiveness.

Effects

Moodles: -15
Hungry: -55
Unhappy: -20

Crafting

Name Recipe Description
























Bugs

- 0.2.0R: Trying to craft tasty soup (soup with three ingredients) causes the game to crash. Copy/pasting recipecode.lua in Project Zomboid\media\luaexamples\other to Project Zomboid\media\lua solves the problem.

- 0.2.0R: Placing a pot of any soup and four bowls will output 4 bowls but not refund you an empty pot of soup, meaning the pot of soup is destroyed by pouring the soup into the bowls. This can be fixed by adding a TastyBowl_OnGrab function to the recipecode.lua that adds "Base.Pot" to the player's inventory, and this function needs to be called by adding "TastyBowl4_OnGrab," after the output lines of the TastyBowls4 recipe.

Code

item TastySoup
{
	HungerChange		=	-55,
	Weight			=	6,
	Type			=	Food,
	IsCookable		=	TRUE,
	UnhappyChange		=	-20,
	MinutesToBurn		=	140,
	DisplayName		=	Tasty Soup,
	ReplaceOnUse		=	Pot,
	Icon			=	PotFull,
	MinutesToCook		=	90,
	BoredomChange		=	-15,
        DaysTotallyRotten	=	4,
        DaysFresh 		=	2,
        CustomContextMenu	=	Drink,
}

Template:Navbox/Consumables