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
ChocolateCake Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerUI Hunger.png
-10
CaloriesCalories
90
CarbohydratesCarbohydrates
4
ProteinsProteins
10
FatFat
12
Effect
UnhappinessUI 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

State Icon Hunger Boredom Unhappiness Sickness chance
Fresh Chocolate Cake Slice (Fresh) -10 - -15 -
Stale Chocolate Cake Slice (Stale) -8 +10 -5 -
Rotten Chocolate Cake Slice (Rotten) -4 +20 +5 100%

Location

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

CakeChocolate distributionShow / 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.

History

Base.CakeChocolate

Version Description
41.65 Released on or before this version.

Help PZwiki by adding to this history.

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