Cake Slice: Difference between revisions

From PZwiki
No edit summary
(Update distribution file)
 
(36 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Prepared food}}
{{header|Project Zomboid|Items|Food|Perishable Food|type=Food|version=Version 40|incver=7}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Cake Slice
{{Infobox item
|name_colour=Food
|name=Cake Slice
|name_text_colour=Food
|model=Cake_Slice_Model.png
|image=CakeSlice_Model.png
|icon=CakeSlice.png
| image_width = 300px
|icon_name=Cake Slice
| alternate_image = CakeSlice.png
| alternate_name = Cake Slice
| alternate_link =
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.2
|weight=0.2
|days_fresh=3
|days_fresh=3
|days_rotten=5
|days_rotten=2
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-7
|hunger_change=-7
Line 23: Line 20:
|unhappy_change=-10
|unhappy_change=-10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.CakeSlice
|item_id=Base.CakeSlice
}}{{About|cake slices that spawn naturally|cake slices made by the player|Recipe Ingredients#Cake Ingredients}}
}}
A '''cake slice''' is a [[Food#Perishable|perishable]] food [[item]].
{{About|cake slices that spawn naturally|cake slices made by the player|Recipe ingredients#Cake ingredients}}
A naturally spawned '''cake slice''' is a perishable [[food]] [[Items|item]].
 
Note that the player made cake slice doesn't go bad and is currently non-perishable.


==Usage==
==Usage==
=== Consumable properties ===
===Consumable properties===
A cake slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Cake slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
{{Consumables2
{{Consumables
|image = CakeSlice.png
|image = CakeSlice.png
|hunger = -7
|hunger = -7
Line 43: Line 43:
}}
}}


== Crafting ==
==Crafting==
{{Main|Cooking}}
 
===Cooking===
===Cooking===
A player-made [[cake]] can be cut into slices using [[Kitchen Knife|kitchen knife]] or [[Hunting Knife|hunting knife]]. This is a lossy crafting recipe (not 1:1), making it worse, than just eating from a whole cake.
A player-made [[Recipe ingredients#Cake ingredients|cake]] can be cut into slices using [[Kitchen Knife|kitchen knife]] or [[Hunting Knife|hunting knife]]. This is a lossy crafting recipe (not 1:1), making it worse, than just eating from a whole cake.
{{Cooking table header}}
{{Crafting/sandbox2
{{RecipeLookup|2043}}
|cake_slice
{{Crafting table footer}}
}}


==Distribution==
==Distribution==
Cake slices can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].  
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|CakeSlice|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>CakeSlice distribution
        <span class="mw-customtoggle-togglebox-CakeSlice" 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-CakeSlice">
    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">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | all
    | {{ll|displaycasebakery}}
    | 41.14%
    |-
    | bakery
    | {{ll|displaycase}}
    | 23.28%
    |-
    | bakery
    | {{ll|displaycase}}
    | 41.14%
    |-
    | bakery
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | bakery
    | {{ll|displaycasebakery}}
    | 41.14%
    |-
    | bakery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | bakery
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | bakery
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | bakery
    | {{ll|restaurantdisplay}}
    | 41.14%
    |-
    | bakerykitchen
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | bakerykitchen
    | {{ll|restaurantdisplay}}
    | 41.14%
    |-
    | breakroom
    | {{ll|fridge}}
    | 10.78%
    |-
    | cafe
    | {{ll|displaycase}}
    | 23.28%
    |-
    | cafe
    | {{ll|displaycase}}
    | 41.14%
    |-
    | cafe
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | cafe
    | {{ll|displaycasebakery}}
    | 41.14%
    |-
    | cafe
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | cafe
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | cafe
    | {{ll|shelves}}
    | 23.28%
    |-
    | cafe
    | {{ll|shelves}}
    | 41.14%
    |-
    | cafeteria
    | {{ll|displaycasebakery}}
    | 19.27%
    |-
    | cornerstore
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | cornerstore
    | {{ll|displaycasebakery}}
    | 41.14%
    |-
    | daycare
    | {{ll|fridge}}
    | 10.78%
    |-
    | gigamart
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | gigamart
    | {{ll|displaycasebakery}}
    | 41.14%
    |-
    | grocery
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | grocery
    | {{ll|displaycasebakery}}
    | 41.14%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CakeSlice" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CakeSlice|41.78.16-->
Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].


== Code ==
==Gallery==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
<gallery>
{{Retrieved|version=41|incver=50}}
File:CakeSlice Model.png|Model and texture previously used for eating animation
<pre> item CakeSlice
</gallery>
Type = Food,
 
HungerChange = -7,
==Code==
UnhappyChange = -10,
{{CodeBox|
DisplayName = Cake Slice,
{{CodeSnip
Icon = CakeSlice,
  | lang = java
Weight = 0.2,
  | line = true
DaysFresh = 3,
  | start = 5202
DaysTotallyRotten = 5,
  | source = items_food.txt
Carbohydrates = 1,
  | retrieved = true
Proteins = 5,
  | version = 41.78.16
Lipids = 5,
  | code =
Calories = 70,
item CakeSlice
StaticModel = CakeSlice,</pre>
{
DisplayName = Cake Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = CakeSlice,
DaysFresh = 3,
DaysTotallyRotten = 5,
HungerChange = -7,
UnhappyChange = -10,
Calories = 70,
Carbohydrates = 1,
Lipids = 5,
Proteins = 5,
StaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
}
}}
}}


==See also==
==See also==
*[[Pie Slice]]
*[[Pie Slice]]
*[[Pumpkin Pie Slice]]
*[[Black Forest Cake Slice]]
*[[Carrot Cake Slice]]
*[[Cheese Cake Slice]]
*[[Chocolate Cake Slice]]
*[[Red Velvet Cake Slice]]
*[[Strawberry Cake Slice]]
 
{{Navbox items|prepared_food}}
 


{{Navbox/Consumables}}
[[Category:Perishable food]]
[[Category:Sweets]]

Latest revision as of 12:13, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Cake Slice
Cake Slice Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
3 days
Days until rotten
2 days
Nutrition
HungerMoodle Icon Hungry.png
-7
CaloriesCalories
70
CarbohydratesCarbohydrates
1
ProteinsProteins
5
FatFat
5
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.CakeSlice
PlushSpiffo.pngThis article is about cake slices that spawn naturally. For cake slices made by the player, see Recipe ingredients.

A naturally spawned cake slice is a perishable food item.

Note that the player made cake slice doesn't go bad and is currently non-perishable.

Usage

Consumable properties

Cake slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.

Fresh Stale Rotten

CakeSlice.png
Hunger: -7

Unhappiness: -10

CakeSlice.png
Hunger: -5
Boredom: +10

CakeSlice.png
Hunger: -3
Boredom: +20
Unhappiness: +10
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Cooking

A player-made cake can be cut into slices using kitchen knife or hunting knife. This is a lossy crafting recipe (not 1:1), making it worse, than just eating from a whole cake.

Product Ingredients Tools Requirements Workstation XP
CakeSlice.png
Cake Slice ×5
One of:
KnifeChopping.png Kitchen Knife ×1
HuntingKnife.png Hunting Knife ×1
KnifeButter.png Butter Knife ×1
KnifeButter.png Bread Knife ×1
Cleaver.png Meat Cleaver ×1
KnifeFlint.png Stone Knife ×1
Machete.png Machete ×1
Each of:
CakeCooked.png Cake (Cooked) ×1
none none none 0.75 Cooking

Distribution

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

CakeSlice 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
all displaycasebakery 23.28%
all displaycasebakery 41.14%
bakery displaycase 23.28%
bakery displaycase 41.14%
bakery displaycasebakery 23.28%
bakery displaycasebakery 41.14%
bakery grocerstand 23.28%
bakery grocerstand 41.14%
bakery restaurantdisplay 23.28%
bakery restaurantdisplay 41.14%
bakerykitchen restaurantdisplay 23.28%
bakerykitchen restaurantdisplay 41.14%
breakroom fridge 10.78%
cafe displaycase 23.28%
cafe displaycase 41.14%
cafe displaycasebakery 23.28%
cafe displaycasebakery 41.14%
cafe grocerstand 23.28%
cafe grocerstand 41.14%
cafe shelves 23.28%
cafe shelves 41.14%
cafeteria displaycasebakery 19.27%
cornerstore displaycasebakery 23.28%
cornerstore displaycasebakery 41.14%
daycare fridge 10.78%
gigamart displaycasebakery 23.28%
gigamart displaycasebakery 41.14%
grocery displaycasebakery 23.28%
grocery displaycasebakery 41.14%

Cake slice can be found in refrigerators and bakery display cases.

Gallery

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 CakeSlice
	{
		DisplayName = Cake Slice,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = CakeSlice,
		DaysFresh = 3,
		DaysTotallyRotten = 5,
		HungerChange = -7,
		UnhappyChange = -10,
		Calories = 70,
		Carbohydrates = 1,
		Lipids = 5,
		Proteins = 5,
		StaticModel = CakeSlice,
		WorldStaticModel = CakeSlice,
	}

See also