Cake Slice: Difference between revisions

From PZwiki
m (Minor)
m (Minor fixes)
Line 50: Line 50:
===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 = Cake1 Anim.gif
|hunger = -7
|hunger = -7
Line 62: Line 62:
|rotten image = Cake1 Anim.gif
|rotten image = Cake1 Anim.gif
}}
}}
{{Consumables2
{{Consumables
|image = Cake2 Anim.gif
|image = Cake2 Anim.gif
|hunger = -8
|hunger = -8
Line 155: Line 155:
| 12
| 12
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
| style="border-right: 1px solid #{{Infobox nc|Food}};" | -10
|-
|}
|}


Line 172: Line 171:
==Gallery==
==Gallery==
<gallery>
<gallery>
File:Cake Slice Model.png|Model for: [[File:CakeSlice.png]]
Cake Slice Model.png|Model for: [[File:CakeSlice.png]]
File:CakeBlackforest Model.png|Model for: [[File:CakeBlackForest.png]]
CakeBlackforest Model.png|Model for: [[File:CakeBlackForest.png]]
File:CakeCarrotCake Model.png|Model for: [[File:CakeCarrot.png]]
CakeCarrotCake Model.png|Model for: [[File:CakeCarrot.png]]
File:CakeCheeseCake Model.png|Model for: [[File:CakeCheesecake.png]]
CakeCheeseCake Model.png|Model for: [[File:CakeCheesecake.png]]
File:CakeChocolate Model.png|Model for: [[File:CakeChocolate.png]]
CakeChocolate Model.png|Model for: [[File:CakeChocolate.png]]
File:CakeRedVelvet Model.png|Model for: [[File:CakeRedVelvet.png]]
CakeRedVelvet Model.png|Model for: [[File:CakeRedVelvet.png]]
File:CakeStrawberryShortcake Model.png|Model for: [[File:CakeStrawberryShortcake.png]]
CakeStrawberryShortcake Model.png|Model for: [[File:CakeStrawberryShortcake.png]]
File:CakeSlice Model.png|Old model used for animations prior to new variants and world item models added in [[build 41]].
CakeSlice Model.png|Old model used for animations prior to new variants and world item models added in [[build 41]].
</gallery>
</gallery>


Line 222: Line 221:
Cake Slice [[File:CakeSlice.png|32px]]
Cake Slice [[File:CakeSlice.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeSlice
<pre>
    item CakeSlice
     {
     {
DisplayName = Cake Slice,
DisplayName = Cake Slice,
Line 239: Line 239:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
WorldStaticModel = CakeSlice,
     }</pre>
     }
</pre>
Apple Pie Slice [[File:Pie Apple.png|32px]]
Apple Pie Slice [[File:Pie Apple.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item PieApple
<pre>
    item PieApple
     {
     {
DisplayName = Apple Pie Slice,
DisplayName = Apple Pie Slice,
Line 257: Line 259:
Proteins = 54.53,
Proteins = 54.53,
WorldStaticModel = PieApple_Ground,
WorldStaticModel = PieApple_Ground,
     }</pre>
     }
</pre>
Carrot Cake Slice [[File:CakeCarrot.png|32px]]
Carrot Cake Slice [[File:CakeCarrot.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeCarrot
<pre>
    item CakeCarrot
     {
     {
DisplayName = Blueberry Pie Slice,
DisplayName = Blueberry Pie Slice,
Line 275: Line 279:
Proteins = 54.53,
Proteins = 54.53,
WorldStaticModel = PieBlueberry_Ground,
WorldStaticModel = PieBlueberry_Ground,
     }</pre>
     }
</pre>
Cheese Cake Slice [[File:CakeCheesecake.png|32px]]
Cheese Cake Slice [[File:CakeCheesecake.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeCheeseCake
<pre>
    item CakeCheeseCake
     {
     {
DisplayName = Cheese Cake Slice,
DisplayName = Cheese Cake Slice,
Line 295: Line 301:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = CheeseCake_Ground,
WorldStaticModel = CheeseCake_Ground,
     }</pre>
     }
</pre>
Chocolate Cake Slice [[File:CakeChocolate.png|32px]]
Chocolate Cake Slice [[File:CakeChocolate.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeChocolate
<pre>
    item CakeChocolate
     {
     {
DisplayName = Chocolate Cake Slice,
DisplayName = Chocolate Cake Slice,
Line 315: Line 323:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = ChocolateCake_Ground,
WorldStaticModel = ChocolateCake_Ground,
     }</pre>
     }
</pre>
Red Velvet Cake Slice [[File:CakeRedVelvet.png|32px]]
Red Velvet Cake Slice [[File:CakeRedVelvet.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeRedVelvet
<pre>
    item CakeRedVelvet
     {
     {
DisplayName = Red Velvet Cake Slice,
DisplayName = Red Velvet Cake Slice,
Line 335: Line 345:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = RedVelvetCake_Ground,
WorldStaticModel = RedVelvetCake_Ground,
     }</pre>
     }
</pre>
Strawberry Cake Slice [[File:CakeStrawberryShortcake.png|32px]]
Strawberry Cake Slice [[File:CakeStrawberryShortcake.png|32px]]
{{Retrieved|version=41|incver=73}}
{{Retrieved|version=41|incver=73}}
<pre>   item CakeStrawberryShortcake
<pre>
    item CakeStrawberryShortcake
     {
     {
DisplayName = Strawberry Cake Slice,
DisplayName = Strawberry Cake Slice,
Line 355: Line 367:
StaticModel = CakeSlice,
StaticModel = CakeSlice,
WorldStaticModel = StrawberryShortcake_Ground,
WorldStaticModel = StrawberryShortcake_Ground,
     }</pre>
     }
</pre>
</div>
</div>



Revision as of 23:23, 29 August 2023

Template:Infobox food

PlushSpiffo.pngThis article is about cake slices that spawn naturally. For cake slices made by the player, see Recipe ingredients.

Cake slice is a perishable food item which can come in 7 different variations.

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

File:Cake1 Anim.gif
Hunger: -7

Unhappiness: -10

File:Cake1 Anim.gif
Hunger: -5
Boredom: +10

File:Cake1 Anim.gif
Hunger: -3
Boredom: +20
Unhappiness: +10
Dangerous, will cause sickness.

Fresh Stale Rotten

File:Cake2 Anim.gif
Hunger: -8

Unhappiness: -10

File:Cake2 Anim.gif
Hunger: -6
Boredom: +10

File:Cake2 Anim.gif
Hunger: -3
Boredom: +20
Unhappiness: +10
Dangerous, will cause sickness.

Template:Consumables2

Nutrition

Icon Hunger Calories Carbohydrates Proteins Lipids Unhappiness
CakeSlice.png -7 70 1 5 5 -10
CakeBlackForest.png -10 90 4 10 12 -15
CakeCarrot.png -7 70 4 10 12 -10
CakeCheesecake.png -8 80 4 10 12 -10
CakeChocolate.png -10 90 4 10 12 -15
CakeRedVelvet.png -8 80 4 10 12 -10
CakeStrawberryShortcake.png -8 75 4 10 12 -10

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Cake Slice
Cake Slice x5
0.75 Cooking none
(keep)
Cake (Cooked)
Cake (Cooked)
(consumed)

Distribution

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

Gallery

Item IDs

Name Icon Base ID
Cake Slice CakeSlice.png Base.CakeSlice
Black Forest Cake Slice CakeBlackForest.png Base.CakeBlackForest
Carrot Cake Slice CakeCarrot.png Base.CakeCarrot
Cheese Cake Slice CakeCheesecake.png Base.CakeCheesecake
Chocolate Cake Slice CakeChocolate.png Base.CakeChocolate
Red Velvet Cake Slice CakeRedVelvet.png Base.CakeRedVelvet
Strawberry Cake Slice CakeStrawberryShortcake.png Base.CakeStrawberryShortcake

Code

From items_food.txt (Project Zomboid directory/media/scripts/)

Cake Slice CakeSlice.png Retrieved: Build 41.73

    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,
    }

Apple Pie Slice Pie Apple.png Retrieved: Build 41.73

    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,
    }

Carrot Cake Slice CakeCarrot.png Retrieved: Build 41.73

    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,
    }

Cheese Cake Slice CakeCheesecake.png Retrieved: Build 41.73

    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,
    }

Chocolate Cake Slice CakeChocolate.png Retrieved: Build 41.73

    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,
    }

Red Velvet Cake Slice CakeRedVelvet.png Retrieved: Build 41.73

    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,
    }

Strawberry Cake Slice CakeStrawberryShortcake.png Retrieved: Build 41.73

    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,
    }

See also