Tasty Soup: Difference between revisions
(→Bugs) |
LukaLoginska (talk | contribs) (Listed a minor bug where pouring any soup into 4 bowls causes the player to lose their pot, + added a brief outline of the solution) |
||
Line 22: | Line 22: | ||
== Bugs == | == 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: 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 == | == Code == |
Revision as of 22:10, 30 July 2012
The tasty soup is a tasty yet nutritious food item that is crafted by putting a full pot of soup and three soup ingredients. The tasty soup takes out a huge amount of hunger and a medium amount of boredom and unhappiness. It is unadvised to eat a tasty soup when not in the "hungry" moodle, as a good amount of will go to waste. Cooking the soup will greatly increase its effectiveness.
Effects
Moodles: -15
Hungry: -126
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 { Type = Food, DisplayName = Tasty Soup, Icon = PotFull, Weight = 7, IsCookable = true, MinutesToCook = 90, MinutesToBurn = 140, HungerChange = -126, BoredomChange = -15, UnhappyChange = -20, ReplaceOnUse = Pot }