Cake Slice: Difference between revisions

From PZwiki
m (Remove 120px, minor fixes)
m (Distribution table update)
 
(27 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Food|Perishable Food|type=Food|version=Version 41|incver=73}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Prepared food}}
|display_name=Cake Slice
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Cake Slice
|image=CakeSlice.png
|model=Cake_Slice_Model.png
|alternate_image=CakeBlackForest.png
|icon=CakeSlice.png
|alternate_name=Black Forest Cake Slice
|icon_name=Cake Slice
|alternate_link=
|alternate_image2=CakeCarrot.png
|alternate_name2=Carrot Cake Slice
|alternate_link2=
|alternate_image3=CakeCheesecake.png
|alternate_name3=Cheese Cake Slice
|alternate_link3=
|alternate_image4=CakeChocolate.png
|alternate_name4=Chocolate Cake Slice
|alternate_link4=
|alternate_image5=CakeRedVelvet.png
|alternate_name5=Red Velvet Cake Slice
|alternate_link5=
|alternate_image6=CakeStrawberryShortcake.png
|alternate_name6=Strawberry Cake Slice
|alternate_link6=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 28: Line 12:
|days_rotten=2
|days_rotten=2
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=''See [[#Nutrition|Nutrition]]''
|hunger_change=-7
|calories=''See [[#Nutrition|Nutrition]]''
|calories=70
|lipids=''See [[#Nutrition|Nutrition]]''
|lipids=5
|proteins=''See [[#Nutrition|Nutrition]]''
|proteins=5
|carbohydrates=''See [[#Nutrition|Nutrition]]''
|carbohydrates=1
<!--EFFECT-->
<!--EFFECT-->
|unhappy_change=''See [[#Nutrition|Nutrition]]''
|unhappy_change=-10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=''See [[#Item IDs|Item IDs]]''
|item_id=Base.CakeSlice
}}{{About|cake slices that spawn naturally|cake slices made by the player|Recipe Ingredients#Cake Ingredients}}
}}
'''Cake slice''' is a [[Food#Perishable|perishable]] food [[item]] which can come in 7 different variations.
{{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===
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 = Cake1 Anim.gif
|image = CakeSlice.png
|hunger = -7
|hunger = -7
|unhappiness = -10
|unhappiness = -10
Line 53: Line 40:
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +10
|rotten unhappiness = +10
|rotten image = Cake1 Anim.gif
|rotten image = CakeSlice.png
}}
{{Consumables2
|image = Cake2 Anim.gif
|hunger = -8
|unhappiness = -10
|perishable = 1
|unrotten hunger = -6
|unrotten boredom = +10
|rotten hunger = -3
|rotten boredom = +20
|rotten unhappiness = +10
|rotten image = Cake2 Anim.gif
}}
{{Consumables2
|image = Cake3 Anim.gif
|hunger = -10
|unhappiness = -15
|perishable = 1
|unrotten hunger = -7
|unrotten boredom = +10
|unrotten unhappiness = -5
|rotten hunger = -4
|rotten boredom = +20
|rotten unhappiness = +5
|rotten image = Cake3 Anim.gif
}}
}}
====Nutrition====
{|style="text-align:center; width:450px; border-bottom: 1px solid #{{Infobox nc|Food}};" cellspacing=0 cellpadding=5
| colspan=6 style="color:rgba(0, 0, 0, 0); font-size:70%;" |
|- style="background-color:#{{Infobox nc|Default}}; color:#{{Infobox nc|Default|text}}"
! width=90px | Cake Slice
! width=90px | Hunger
! width=90px | Calories
! width=90px | Carbohydrates
! width=90px | Proteins
! width=90px | Lipids
! width=90px | Unhappiness
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeSlice.png|32px]]
| -7
| 70
| 1
| 5
| 5
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeBlackForest.png|32px]]
| -10
| 90
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -15
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeCarrot.png|32px]]
| -7
| 70
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeCheesecake.png|32px]]
| -8
| 80
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeChocolate.png|32px]]
| -10
| 90
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -15
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeRedVelvet.png|32px]]
| -8
| 80
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|- class="oddrow evenrow"
| style="border-left: 1px solid #{{Infobox nc|Food}};" | [[File:CakeStrawberryShortcake.png|32px]]
| -8
| 75
| 4
| 10
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|-
|}


==Crafting==
==Crafting==
Line 155: Line 47:


===Cooking===
===Cooking===
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.
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.
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting cooking|403|ing=2}}
|cake_slice
|}
}}


==Distribution==
==Distribution==
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">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | Not referenced
    | {{ll|FridgeOffice}}
    | 4
    | 4.0
    |-
    | all
    | {{ll|displaycasebakery}}
    | 4
    | 20.0
    |-
    | all
    | {{ll|displaycasebakery}}
    | 4
    | 10.0
    |-
    | breakroom
    | {{ll|fridge}}
    | 4
    | 4.0
    |-
    | cafeteria
    | {{ll|displaycasebakery}}
    | 4
    | 8.0
    |}
</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]].
Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].


==Gallery==
==Gallery==
<gallery>
<gallery>
File:Cake Slice Model.png|Model for: [[File:CakeSlice.png]]
File:CakeSlice Model.png|Model and texture previously used for eating animation
File:CakeBlackforest Model.png|Model for: [[File:CakeBlackForest.png]]
File:CakeCarrotCake Model.png|Model for: [[File:CakeCarrot.png]]
File:CakeCheeseCake Model.png|Model for: [[File:CakeCheesecake.png]]
File:CakeChocolate Model.png|Model for: [[File:CakeChocolate.png]]
File:CakeRedVelvet Model.png|Model for: [[File:CakeRedVelvet.png]]
File:CakeStrawberryShortcake Model.png|Model for: [[File:CakeStrawberryShortcake.png]]
</gallery>
</gallery>


==Item IDs==
{| class="pztable" style="width:30%; text-align:center;"
! style="width:25%" | Name
! style="width:25%" | Icon
! style="width:50%" | Base ID
|-
| Cake Slice
| [[File:CakeSlice.png]]
| {{ID|Base.CakeSlice}}
|-
| Black Forest Cake Slice
| [[File:CakeBlackForest.png]]
| {{ID|Base.CakeBlackForest}}
|-
| Carrot Cake Slice
| [[File:CakeCarrot.png]]
| {{ID|Base.CakeCarrot}}
|-
| Cheese Cake Slice
| [[File:CakeCheesecake.png]]
| {{ID|Base.CakeCheesecake}}
|-
| Chocolate Cake Slice
| [[File:CakeChocolate.png]]
| {{ID|Base.CakeChocolate}}
|-
| Red Velvet Cake Slice
| [[File:CakeRedVelvet.png]]
| {{ID|Base.CakeRedVelvet}}
|-
| Strawberry Cake Slice
| [[File:CakeStrawberryShortcake.png]]
| {{ID|Base.CakeStrawberryShortcake}}
|}
<div class="mw-collapsible mw-collapsed">
==Code==
==Code==
<div class="mw-collapsible-content">'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
Cake Slice [[File:CakeSlice.png|32px]]
{{CodeSnip
{{Retrieved|version=41|incver=73}}
  | lang = java
<pre>    item CakeSlice
  | line = true
    {
  | start = 5202
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CakeSlice
{
DisplayName = Cake Slice,
DisplayName = Cake Slice,
DisplayCategory = Food,
DisplayCategory = Food,
Line 231: Line 132:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
    }</pre>
}
Apple Pie Slice [[File:Pie Apple.png|32px]]
}}
{{Retrieved|version=41|incver=73}}
}}
<pre>    item PieApple
    {
DisplayName = Apple Pie Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.5,
Icon = Pie_Apple,
DaysFresh = 5,
DaysTotallyRotten = 8,
HungerChange = -30,
Calories = 404,
Carbohydrates = 20.45,
Lipids = 20.61,
Proteins = 54.53,
WorldStaticModel = PieApple_Ground,
    }</pre>
Carrot Cake Slice [[File:CakeCarrot.png|32px]]
{{Retrieved|version=41|incver=73}}
<pre>    item CakeCarrot
    {
DisplayName = Blueberry Pie Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.5,
Icon = Pie_Blueberry,
DaysFresh = 5,
DaysTotallyRotten = 8,
HungerChange = -30,
Calories = 404,
Carbohydrates = 20.45,
Lipids = 20.61,
Proteins = 54.53,
WorldStaticModel = PieBlueberry_Ground,
    }</pre>
Cheese Cake Slice [[File:CakeCheesecake.png|32px]]
{{Retrieved|version=41|incver=73}}
<pre>    item CakeCheeseCake
    {
DisplayName = Cheese Cake Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = CakeCheesecake,
DaysFresh = 3,
DaysTotallyRotten = 5,
HungerChange = -8,
UnhappyChange = -10,
Calories = 80,
Carbohydrates = 4,
Lipids = 12,
Proteins = 10,
StaticModel = CakeSlice,
WorldStaticModel = CheeseCake_Ground,
    }</pre>
Chocolate Cake Slice [[File:CakeChocolate.png|32px]]
{{Retrieved|version=41|incver=73}}
<pre>    item CakeChocolate
    {
DisplayName = Chocolate Cake Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = CakeChocolate,
DaysFresh = 3,
DaysTotallyRotten = 5,
HungerChange = -10,
UnhappyChange = -15,
Calories = 90,
Carbohydrates = 4,
Lipids = 12,
Proteins = 10,
StaticModel = CakeSlice,
WorldStaticModel = ChocolateCake_Ground,
    }</pre>
Red Velvet Cake Slice [[File:CakeRedVelvet.png|32px]]
{{Retrieved|version=41|incver=73}}
<pre>    item CakeRedVelvet
    {
DisplayName = Red Velvet Cake Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = CakeRedVelvet,
DaysFresh = 3,
DaysTotallyRotten = 5,
HungerChange = -8,
UnhappyChange = -10,
Calories = 80,
Carbohydrates = 4,
Lipids = 12,
Proteins = 10,
StaticModel = CakeSlice,
WorldStaticModel = RedVelvetCake_Ground,
    }</pre>
Strawberry Cake Slice [[File:CakeStrawberryShortcake.png|32px]]
{{Retrieved|version=41|incver=73}}
<pre>    item CakeStrawberryShortcake
    {
DisplayName = Strawberry Cake Slice,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = CakeStrawberryShortcake,
DaysFresh = 3,
DaysTotallyRotten = 5,
HungerChange = -8,
UnhappyChange = -10,
Calories = 75,
Carbohydrates = 4,
Lipids = 12,
Proteins = 10,
StaticModel = CakeSlice,
WorldStaticModel = StrawberryShortcake_Ground,
    }</pre>
</div>


==See also==
==See also==
*[[Pie Slice]]
*[[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 food}}
[[Category:Perishable food]]
[[Category:Sweets]]

Latest revision as of 15:06, 24 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
Containers
Building / Room Container Rolls Chance
Not referenced FridgeOffice 4 4.0
all displaycasebakery 4 20.0
all displaycasebakery 4 10.0
breakroom fridge 4 4.0
cafeteria displaycasebakery 4 8.0

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