Cake Slice: Difference between revisions

From PZwiki
m (Automated capitalisation)
m (Automated Formatting)
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Prepared food}}
{{Header/sandbox2|Project Zomboid|Items|Food|Prepared food}}
{{Page version|41.78.16}}
{{Page version|41.73}}
{{Infobox item
{{Infobox item
|name=Cake Slice
|name=Cake Slice
|model=Cake Slice Model.png
|model=Cake_Slice_Model.png
|icon=CakeSlice.png
|icon=CakeSlice.png
|icon_name=Cake Slice
|icon_name=Cake Slice
|icon2=CakeBlackForest.png
|icon_name2=Black Forest Cake Slice
|icon3=CakeCarrot.png
|icon_name3=Carrot Cake Slice
|icon4=CakeCheesecake.png
|icon_name4=Cheese Cake Slice
|icon5=CakeChocolate.png
|icon_name5=Chocolate Cake Slice
|icon6=CakeRedVelvet.png
|icon_name6=Red Velvet Cake Slice
|alternate_link6=
|icon7=CakeStrawberryShortcake.png
|icon_name7=Strawberry Cake Slice
|alternate_link7=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 31: 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-->
|item_id=''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}}
{{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.
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==
Line 48: Line 31:
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.
{{Consumables
{{Consumables
|image = Cake1 Anim.gif
|image = CakeSlice.png
|hunger = -7
|hunger = -7
|unhappiness = -10
|unhappiness = -10
Line 57: Line 40:
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +10
|rotten unhappiness = +10
|rotten image = Cake1 Anim.gif
|rotten image = CakeSlice.png
}}
}}
{{Consumables
|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
}}
{{Consumables
|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====
{| class="wikitable theme-red" style="text-align: center;" cellspacing=0 cellpadding=5
|-
! Icon
! Hunger
! Calories
! Carbohydrates
! Proteins
! Lipids
! Unhappiness
|-
| [[File:CakeSlice.png|32px]]
| -7
| 70
| 1
| 5
| 5
| -10
|-
| [[File:CakeBlackForest.png|32px]]
| -10
| 90
| 4
| 10
| 12
| -15
|-
| [[File:CakeCarrot.png|32px]]
| -7
| 70
| 4
| 10
| 12
| -10
|-
| [[File:CakeCheesecake.png|32px]]
| -8
| 80
| 4
| 10
| 12
| -10
|-
| [[File:CakeChocolate.png|32px]]
| -10
| 90
| 4
| 10
| 12
| -15
|-
| [[File:CakeRedVelvet.png|32px]]
| -8
| 80
| 4
| 10
| 12
| -10
|-
| [[File:CakeStrawberryShortcake.png|32px]]
| -8
| 75
| 4
| 10
| 12
| -10
|}


==Crafting==
==Crafting==
Line 157: 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==
Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].
The loot distributions can be found in the table(s) below.
 
==Gallery==
<gallery>
Cake Slice Model.png|Model for: [[File:CakeSlice.png]]
CakeBlackforest Model.png|Model for: [[File:CakeBlackForest.png]]
CakeCarrotCake Model.png|Model for: [[File:CakeCarrot.png]]
CakeCheeseCake Model.png|Model for: [[File:CakeCheesecake.png]]
CakeChocolate Model.png|Model for: [[File:CakeChocolate.png]]
CakeRedVelvet Model.png|Model for: [[File:CakeRedVelvet.png]]
CakeStrawberryShortcake Model.png|Model for: [[File:CakeStrawberryShortcake.png]]
CakeSlice Model.png|Old model used for animations prior to new variants and world item models added in [[build 41]].
</gallery>


==Item IDs==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
{| class="wikitable theme-red" style="width:30%; text-align:center;"
! colspan="4" | Containers
! 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
! Building/Room
| [[File:CakeCarrot.png]]
! Container
| {{ID|Base.CakeCarrot}}
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|-
| Cheese Cake Slice
|rowspan="2"|all
| [[File:CakeCheesecake.png]]
|[[displaycasebakery]]
| {{ID|Base.CakeCheesecake}}
|4
|1
|-
|-
| Chocolate Cake Slice
|[[displaycasebakery]]
| [[File:CakeChocolate.png]]
|4
| {{ID|Base.CakeChocolate}}
|2
|-
|-
| Red Velvet Cake Slice
|breakroom
| [[File:CakeRedVelvet.png]]
|[[fridge]]
| {{ID|Base.CakeRedVelvet}}
|4
|4
|-
|-
| Strawberry Cake Slice
|cafeteria
| [[File:CakeStrawberryShortcake.png]]
|[[displaycasebakery]]
| {{ID|Base.CakeStrawberryShortcake}}
|4
|}
|8
|}Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].


<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.73}}
  | lang = java
<pre>
  | line = true
    item CakeSlice
  | 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 235: Line 110:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
    }
}
</pre>
}}
Apple Pie Slice [[File:Pie Apple.png|32px]]
}}
{{Retrieved|version=41.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.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.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.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.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.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:Perishable food]]
[[Category:Sweets]]
[[Category:Sweets]]

Revision as of 07:07, 14 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.

Containers
Building/Room Container Rolls Chance
all displaycasebakery 4 1
displaycasebakery 4 2
breakroom fridge 4 4
cafeteria displaycasebakery 4 8

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

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