Candy Package: Difference between revisions

From PZwiki
(added model to infobox)
(-gallery)
Line 47: Line 47:
==Distribution==
==Distribution==
Candy package can be found in candy store [[Containers#Displays|display shelves]] and [[Containers#Counters|counters]], or in convenience store [[Containers#Shelves|shelves]].
Candy package can be found in candy store [[Containers#Displays|display shelves]] and [[Containers#Counters|counters]], or in convenience store [[Containers#Shelves|shelves]].
==Gallery==
<gallery>
CandyPackage_Model.png|Candy package model when placed in the world.
</gallery>


==Code==
==Code==

Revision as of 23:01, 22 December 2023

Candy Package
Candy Package
Candy Package Lollipop Mint Candy
General
Category Food
Encumbrance
Heavy Load
0.6
Packaged Yes
Nutrition
Hunger
Hunger
-5
Calories
Calories
500
Carbohydrates
Carbohydrates
125
Proteins
Proteins
0
Fat
Fat
2.5
Technical details
Item ID Base.CandyPackage

A candy package is a non-perishable, non-edible food item.

Usage

Candy package can be opened, giving the player lollipops and mint candy. Once opened, the contents cannot be put back into a candy package, which is much lighter than the contents alone.

Contents

Name Amount
Lollipop.png
Lollipop
x5
MintCandy.png
Mint Candy
x6

Distribution

Candy package can be found in candy store display shelves and counters, or in convenience store shelves.

Code

From items_food.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.73

    item CandyPackage
	{
		DisplayName = Candy Package,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.6,
		Icon = CandyPackagei,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 500,
		Carbohydrates = 125,
		Lipids = 2.5,
		Proteins = 0,
		WorldStaticModel = CandyPackage,
	}

See also