Mint Candy: Difference between revisions

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


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


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

Revision as of 10:14, 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.
Mint Candy
MintCandy Model.png
Candy Package Candy Package
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Nutrition
HungerMoodle Icon Hungry.png
-2
CaloriesCalories
60
CarbohydratesCarbohydrates
15
ProteinsProteins
0
FatFat
0
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.MintCandy

A mint candy is a non-perishable food item.

Usage

Mint candy can be eaten, providing the player with some positive effects, including reducing unhappiness.

Distribution

Buildings

Mint candy can be found in grocery stores, office desks, motel room refrigerators and bins.

Items

Mint candy can be found in garbage bags or by opening a candy package, giving 6 mint candy.

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 MintCandy
{
    DisplayName         = Mint Candy,
    DisplayCategory     = Food,
    Type                = Food,
    Weight              = 0.1,
    Icon                = MintCandy,
    HungerChange        = -2,
    UnhappyChange       = -10,
    Calories            = 60,
    Carbohydrates       = 15,
    Lipids              = 0,
    Proteins            = 0,
    WorldStaticModel    = MintCandy,
}

See also