Instant Popcorn: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: Codebox Update)
Line 58: Line 58:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
item Popcorn
  | line = true
{
  | start =
DisplayName = Instant Popcorn,
  | source = items_food.txt
DisplayCategory = Food,
  | retrieved = true
Type = Food,
  | version = 41.73
Weight = 0.3,
  | code =
Icon = Popcorn,
item Popcorn
CantBeFrozen = TRUE,
{
IsCookable = TRUE,
  DisplayName           = Instant Popcorn,
Packaged = TRUE,
  DisplayCategory       = Food,
MinutesToCook = 5,
  Type                   = Food,
MinutesToBurn = 10,
  Weight                 = 0.3,
HungerChange = -10,
  Icon                   = Popcorn,
ThirstChange = 10,
  CantBeFrozen           = TRUE,
Calories = 120,
  IsCookable             = TRUE,
Carbohydrates = 20.41,
  Packaged               = TRUE,
Lipids = 2.69,
  MinutesToCook         = 5,
Proteins = 3.57,
  MinutesToBurn         = 10,
WorldStaticModel = Popcorn,
  HungerChange           = -10,
}
  ThirstChange           = 10,
</pre>
  Calories               = 120,
  Carbohydrates         = 20.41,
  Lipids                 = 2.69,
  Proteins               = 3.57,
  WorldStaticModel       = Popcorn,
}
  }}
}}


==See also==
==See also==

Revision as of 13:37, 31 January 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (41.73).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Instant Popcorn
InstantPopcorn Model.png
Instant Popcorn (Cooked)
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-10
ThirstMoodle Icon Thirsty.png
+10
CaloriesCalories
120
CarbohydratesCarbohydrates
20.41
ProteinsProteins
3.57
FatFat
2.69
Cooking
Time until cooked
5 minutes
Time until burned
5 minutes
Technical
Item ID
Base.Popcorn

Instant popcorn is a non-perishable food item.

Usage

Consumable properties

Popcorn cooks in 5 minutes, and will burn if left in a heat source for more than 10 minutes. Instant popcorn can be eaten raw or consumed after cooking, which will reduce more hunger. It is advisable to cook in a microwave, where you can control the cooking time to the minute.

Uncooked Cooked Burned

Popcorn.png
Hunger: -10


PopcornCooked.png
Hunger: -13

Popcorn.png
Hunger: -3
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Distribution

Instant popcorn is often found in kitchen counters and movie theaters.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.73
item Popcorn
{
  DisplayName            = Instant Popcorn,
  DisplayCategory        = Food,
  Type                   = Food,
  Weight                 = 0.3,
  Icon                   = Popcorn,
  CantBeFrozen           = TRUE,
  IsCookable             = TRUE,
  Packaged               = TRUE,
  MinutesToCook          = 5,
  MinutesToBurn          = 10,
  HungerChange           = -10,
  ThirstChange           = 10,
  Calories               = 120,
  Carbohydrates          = 20.41,
  Lipids                 = 2.69,
  Proteins               = 3.57,
  WorldStaticModel       = Popcorn,
}

See also