Candy Package: Difference between revisions

From PZwiki
(New infobox + new layout)
m (Automated Formatting)
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages|Candy Package}}
{{Header|Project Zomboid|Items|Food|Sweets}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 40|incver=14}}{{Notice|Future}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Candy Package
{{Infobox item
|name_colour=Food
|name=Candy Package
|name_text_colour=Food
|model=CandyPackage_Model.png
|image=CandyPackagei_120px.png
|icon=CandyPackagei.png
|alternate_image=Lollipop.png
|icon_name=Candy Package
|alternate_name=Lollipop
|icon2=Lollipop.png
|alternate_link=Lollipop
|icon_name2=Lollipop
|alternate_image2=MintCandy.png
Lollipop
|alternate_name2=Mint Candy
|icon3=MintCandy.png
|alternate_link2=Mint Candy
|icon_name3=Mint Candy
Mint Candy
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.6
|weight=0.6
|packaged=True
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-5
|hunger_change=-5
Line 22: Line 23:
|carbohydrates=125
|carbohydrates=125
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.CandyPackage
|item_id=Base.CandyPackage
}}A '''candy package''' is a [[Food#Non-Perishable|non-perishable]], non-edible food [[items|item]].  
}}
A '''candy package''' (''Assorted Candy'' on the model) is a non-perishable, non directly edible [[food]] [[Items|item]].


==Usage==
==Usage==
A candy package can be opened, giving the player [[Lollipop|lollipops]] and [[Mint_Candy|mint candy]]. Once opened, the contents cannot be put back into a candy package, which is much lighter than the contents alone.  
Candy package can be opened, giving the player [[lollipop]]s and [[Mint Candy|mint candy]]. Once opened, the contents cannot be put back into a candy package, which is much lighter than the contents alone.
=== Contents ===
 
{| class="wikitable" style="text-align:center;"
===Contents===
{| class="wikitable theme-red" style="text-align:center;"
|-
|-
! Name
! Name
Line 42: Line 45:


==Distribution==
==Distribution==
Candy packages can be found in candy store [[Containers#Displays|display shelves]] and [[Containers#Counters|counters]], or in convenience store [[Containers#Shelves|shelves]].
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|artstore
|[[shelves]]
|4
|4
|-
|bandkitchen
|[[counter]]
|4
|4
|-
|candystorage
|[[metal_shelves]]
|4
|1
|-
|rowspan="5"|conveniencestore
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|5
|-
|gasstorage
|[[crate]]
|4
|4
|-
|grocerystorage
|[[crate]]
|4
|1
|}
Candy package can be found in candy store [[Containers#Displays|display shelves]] and [[Containers#Counters|counters]], or in convenience store [[Containers#Shelves|shelves]].


== Code ==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=14}}
| {{CodeSnip
<pre> item CandyPackage
  | lang = java
        Type = Food,
  | line = true
      DisplayName = Candy Package,
  | start = 3959
        Icon = CandyPackagei,
  | source = items_food.txt
        Weight = 0.6,
  | retrieved = true
        Carbohydrates = 125,
  | version = 41.78.16
        Proteins = 0,
  | code =
        Lipids = 2.5,
item CandyPackage
        Calories = 500,
{
        PAckaged = TRUE,</pre>
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==
==See also==
Line 63: Line 136:
*[[Chips]]
*[[Chips]]


{{Navbox/Consumables}}
{{Navbox items|miscellaneous_food}}
 
 
[[Category:Non-perishable food]]

Revision as of 07:11, 14 April 2024

Project ZomboidItemsFoodSweetsCandy Package
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Candy Package
CandyPackage Model.png
Lollipop Lollipop
Mint Candy Mint Candy
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.6
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-5
CaloriesCalories
500
CarbohydratesCarbohydrates
125
ProteinsProteins
0
FatFat
2.5
Technical
Item ID
Base.CandyPackage

A candy package (Assorted Candy on the model) is a non-perishable, non directly 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

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
artstore shelves 4 4
bandkitchen counter 4 4
candystorage metal_shelves 4 1
conveniencestore crate 4 1
crate 4 1
crate 4 2
crate 4 2
crate 4 5
gasstorage crate 4 4
grocerystorage crate 4 1

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

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.78.16
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