Candy Cane: Difference between revisions
m (b40 update) |
(Update distribution file) |
||
(30 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Food|Sweets}} | ||
{{Page version|41.78.16}} | |||
| | {{Infobox item | ||
| | |name=Candy Cane | ||
| | |model=CandyCane_Model.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--> | ||
| | |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 | Candy cane can be eaten, providing the player with some positive effects. | ||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
== | <!--BOT FLAG|Candycane|41.78.16--> | ||
{{Clear}} | |||
{{ | <div class="togglebox theme-red"> | ||
< | <div>Candycane distribution | ||
<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> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Candycane"> | |||
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 | <div class="pz-container"> | ||
<div id="containers" style="flex-basis:30%"> | |||
Icon = | {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | ||
|+ {{ll|Containers}} | |||
! Building/Room | |||
! Container | |||
! 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 | {{Navbox items|miscellaneous_food}} | ||
[[Category:Non-perishable food]] |
Latest revision as of 12:15, 30 April 2024
Candy Cane
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.
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 snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\items_food.txt
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,
}