New wiki skin!

The default skin has recently changed.
Toggle between a light and dark theme via the gear icon (without logging in).
Feedback can be left on the discussion page or the pzwiki_editing Discord channel.
Prefer the legacy skin? Switch to old look (requires login).

Chocolate Cake Slice

From PZwiki
Project ZomboidItemsFoodSweetsChocolate Cake Slice
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Carrot Cake Slice
CakeChocolate Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
90
CarbohydratesCarbohydrates
4
ProteinsProteins
10
FatFat
12
Effect
UnhappinessMoodle Icon Unhappy.png
-15
Technical
Item ID
Base.CakeChocolate

A chocolate cake slice is a perishable food item.

Usage

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

Consumable properties

Fresh Stale Rotten

CakeChocolate.png
Hunger: -10

Unhappiness: -15

CakeChocolate.png
Hunger: -7
Boredom: +10
Unhappiness: -5

CakeChocolate.png
Hunger: -4
Boredom: +20
Unhappiness: +5
Dangerous, will cause sickness.

Distribution

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

CakeChocolate 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%
bakery displaycase 23.28%
bakery displaycasebakery 23.28%
bakery grocerstand 23.28%
bakery restaurantdisplay 23.28%
bakerykitchen restaurantdisplay 23.28%
cafe displaycase 23.28%
cafe displaycasebakery 23.28%
cafe grocerstand 23.28%
cafe shelves 23.28%
cornerstore displaycasebakery 23.28%
gigamart displaycasebakery 23.28%
grocery displaycasebakery 23.28%

Chocolate cake slices can be found in bakery display counters.

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

See also