Candy Cane: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 27: Line 27:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>    item Candycane
  | lang = java
{
  | line = false
DisplayName = Candy Cane,
  | source = items_food.txt
DisplayCategory = Food,
  | retrieved = true
Type = Food,
  | version = 41
Weight = 0.2,
  | incver = 73
Icon = Candycane,
  | code =
HungerChange = -10,
item Candycane
Calories = 16.6,
{
Carbohydrates = 4.33,
  DisplayName         = Candy Cane,
Lipids = 0,
  DisplayCategory     = Food,
Proteins = 0,
  Type               = Food,
WorldStaticModel = CandyCane,
  Weight             = 0.2,
}</pre>
  Icon               = Candycane,
  HungerChange       = -10,
  Calories           = 16.6,
  Carbohydrates       = 4.33,
  Lipids             = 0,
  Proteins           = 0,
  WorldStaticModel   = CandyCane,
}
  }}
}}


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

Revision as of 09:00, 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.
Candy Cane
CandyCane Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
16.6
CarbohydratesCarbohydrates
4.33
ProteinsProteins
0
FatFat
0
Technical
Item ID
Base.Candycane

A candy cane is a non-perishable food item.

Usage

Candy cane can be eaten, providing the player with some positive effects.

Distribution

Candy cane can be found in candy stores, and kitchen counters.

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 Candycane
{
  DisplayName         = Candy Cane,
  DisplayCategory     = Food,
  Type                = Food,
  Weight              = 0.2,
  Icon                = Candycane,
  HungerChange        = -10,
  Calories            = 16.6,
  Carbohydrates       = 4.33,
  Lipids              = 0,
  Proteins            = 0,
  WorldStaticModel    = CandyCane,
}

See also