Candy Cane: Difference between revisions

From PZwiki
m (b40 update)
(Update distribution file)
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Languages|Candy Cane}}
{{Header|Project Zomboid|Items|Food|Sweets}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 40|incver=30}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Candy Cane
{{Infobox item
|name_colour=Food
|name=Candy Cane
|name_text_colour=Food
|model=CandyCane_Model.png
|image=Candycane_120px.png
|icon=Candycane.png
|icon_name=Candy Cane
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 15: Line 16:
|carbohydrates=4.33
|carbohydrates=4.33
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Candycane
|item_id=Base.Candycane
}}A '''candy cane''' is a non-perishable [[food]] [[item]].
}}
A '''candy cane''' is a non-perishable [[food]] [[Items|item]].


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


==Distribution==
==Distribution==
Candy canes can be found in candy stores, and kitchen [[Containers#Counters|counters]].
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Candycane|41.78.16-->
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
{{Retrieved|version=40|incver=30}}
<div class="togglebox theme-red">
<pre> item Candycane
    <div>Candycane distribution
HungerChange = -10,
        <span class="mw-customtoggle-togglebox-Candycane" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
Weight = 0.2,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Candycane">
AlwaysWelcomeGift = true,
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
Type = Food,
<div class="pz-container">
DisplayName = Candy Cane,
<div id="containers" style="flex-basis:30%">
Icon = Candycane,
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
        Carbohydrates = 4.33,
    |+ {{ll|Containers}}
        Proteins = 0,
    ! Building/Room
        Lipids = 0,
    ! Container
        Calories = 16.6,</pre>
    ! Effective chance
    |-
    | GroceryBag1
    | {{ll|GroceryBag1}}
    | 1.01%
    |-
    | GroceryBag3
    | {{ll|GroceryBag3}}
    | 6.41%
    |-
    | candystorage
    | {{ll|crate}}
    | 23.28%
    |-
    | candystorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | candystore
    | {{ll|counter}}
    | 23.28%
    |-
    | candystore
    | {{ll|displaycase}}
    | 23.28%
    |-
    | candystore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstore
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | gigamart
    | {{ll|crate}}
    | 23.28%
    |-
    | gigamart
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|crate}}
    | 23.28%
    |-
    | grocery
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|smallcrate}}
    | 23.28%
    |-
    | grocerystorage
    | {{ll|crate}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|smallcrate}}
    | 3.98%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Candycane" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Candycane|41.78.16-->
Candy cane can be found in candy stores, and kitchen [[Containers#Counters|counters]].
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 3800
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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==
==See also==
Line 44: Line 151:
*[[Candy Package]]
*[[Candy Package]]


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

Latest revision as of 12:15, 30 April 2024

Project ZomboidItemsFoodSweetsCandy Cane
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
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

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

Candycane distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
GroceryBag1 GroceryBag1 1.01%
GroceryBag3 GroceryBag3 6.41%
candystorage crate 23.28%
candystorage metal_shelves 23.28%
candystore counter 23.28%
candystore displaycase 23.28%
candystore shelves 23.28%
generalstore crate 23.28%
generalstore shelves 23.28%
generalstorestorage shelves 23.28%
gigamart crate 23.28%
gigamart shelves 23.28%
grocery crate 23.28%
grocery shelves 23.28%
grocery smallcrate 23.28%
grocerystorage crate 3.98%
grocerystorage metal_shelves 3.98%
grocerystorage smallcrate 3.98%

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