Cake Slice: Difference between revisions

From PZwiki
(added model to infobox)
Line 54: Line 54:


== Code ==
== Code ==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=7}}
{{Retrieved|version=41|incver=50}}
<pre> item CakeSlice
<pre> item CakeSlice
Type = Food,
Type = Food,
Line 65: Line 65:
DaysFresh = 3,
DaysFresh = 3,
DaysTotallyRotten = 5,
DaysTotallyRotten = 5,
        Carbohydrates = 1,
Carbohydrates = 1,
Proteins = 5,
Proteins = 5,
Lipids = 5,
Lipids = 5,
Calories = 70,</pre>
Calories = 70,
StaticModel = CakeSlice,</pre>


==See also==
==See also==

Revision as of 19:48, 14 May 2021

Cake Slice
Cake Slice
Cake Slice
General
Category Food
Encumbrance
Heavy Load
0.2
Days until stale 3 days
Days until rotten 5 days
Nutrition
Hunger
Hunger
-7
Calories
Calories
70
Carbohydrates
Carbohydrates
1
Proteins
Proteins
5
Fat
Fat
5
Effect
Unhappiness
Unhappiness
-10
Technical details
Item ID Base.CakeSlice
PlushSpiffo.pngThis article is about cake slices that spawn naturally. For cake slices made by the player, see [[Cake Ingredients]].

A cake slice is a perishable food item.

Usage

Consumable properties

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

Crafting

Cooking

A player-made cake can be cut into slices using kitchen knife or hunting knife. Template:Cooking table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Distribution

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

Code

From items_food.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.50

	item CakeSlice
		Type			= Food,
		HungerChange 		= -7,
		UnhappyChange		= -10,
		DisplayName		= Cake Slice,
		Icon			= CakeSlice,
		Weight			= 0.2,
		DaysFresh 		= 3,
		DaysTotallyRotten 	= 5,
		Carbohydrates 		= 1,
		Proteins 		= 5,
		Lipids 			= 5,
		Calories 		= 70,
		StaticModel 		= CakeSlice,

See also

Template:Navbox/Consumables