Cake Slice: Difference between revisions

From PZwiki
(Redesigned page, + Nav Bar, + Categories, Rewrote Description, + code, +Nutritional info, +Nutritional values, noted that details on page are related to PRESPAWNED cake.)
m (Automated Formatting)
(41 intermediate revisions by 15 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Food|Prepared food}}
{{languages|Cake_Slice}}
{{Page version|41.78.16}}
<div class="header" style="margin: 5px; align: right; background: #CEF2E0; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #A3BFB1"> <!-- Code for Background Colour -->
{{Infobox item
<div style="float: right;background: #CEF2E0;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">    '''Page Updated @ Version: 34.28'''    </div><!-- Code for Version Tag at top -->
|name=Cake Slice
<div style="float: left;background: #CEF2E0;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">   '''Navigation''' - [[ Main_Page|Index]] -> [[:Category:Food|Food]] -> [[:Category:Perishable_Food|Perishable Foods]] -> [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=Cake_Slice_Model.png
{{Consumables
|icon=CakeSlice.png
|image = Cake Slice.png
|icon_name=Cake Slice
|hunger = -7
<!--GENERAL-->
|unhappiness = -10
|category=Food
|weight = 0.2
|weight=0.2
|days_fresh=3
|days_rotten=2
<!--NUTRITION-->
|hunger_change=-7
|calories=70
|lipids=5
|proteins=5
|carbohydrates=1
<!--EFFECT-->
|unhappy_change=-10
<!--TECHNICAL DETAILS-->
|item_id=Base.CakeSlice
}}
}}
{{About|cake slices that spawn naturally|cake slices made by the player|Recipe ingredients#Cake ingredients}}
A naturally spawned '''cake slice''' is a perishable [[food]] [[Items|item]].


Cake Slices are [[Food#Perishable|perishable]] food items which is found inside of [[Containers|refrigerators]] in homes and stores, and can be crafted from [[Cake|cake]] using a [[Kitchen Knife|kitchen]] or [[Hunting Knife|hunting knife]]. Cake Slices take three in-game days to go stale, and five in-game days to rot.
Note that the player made cake slice doesn't go bad and is currently non-perishable.
<br><br>
The details in this article are based on the pre-spawned cake slices which appear, as custom cakes will have different attributes based on the ingredients/cooking skill.


== Nutritional Information ==
==Usage==
{| border=0 align=left <!-- Table will be in middle of page without this line -->
===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.
{{Consumables2
{{Consumables
|image = Cake Slice.png
|image = CakeSlice.png
|hunger = -7
|hunger = -7
|unhappiness = -10
|unhappiness = -10
Line 28: Line 40:
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +10
|rotten unhappiness = +10
|rotten image = Cake Slice.png
|rotten image = CakeSlice.png
}}
}}
|}
<br><br><br><br><br><br><br><br><br><br><br>
'''It's Nutritional Values are as follows:'''<br>
Carbohydrates = 1 <br>
Proteins = 5 <br>
Lipids = 5 <br>
Calories = 70 <br>
== Crafting ==
{| class="wikitable sortable" style="text-align:center;"
|-
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
! Crafting Level
{{RecipeLookup|2043}}
|}


== Code ==
==Crafting==
<br>
{{Main|Cooking}}
<nowiki>
 
    item CakeSlice
===Cooking===
Type = Food,
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.
HungerChange = -7,
{{Crafting/sandbox2
UnhappyChange     = -10,
|cake_slice
DisplayName = Cake Slice,
}}
Icon = CakeSlice,
 
Weight = 0.2,
==Distribution==
DaysFresh = 3,
The loot distributions can be found in the table(s) below.
DaysTotallyRotten = 5,
 
        Carbohydrates = 1,
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
        Proteins = 5,
! colspan="4" | Containers
        Lipids = 5,
|-
        Calories = 70,
! Building/Room
    </nowiki>
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="2"|all
|[[displaycasebakery]]
|4
|1
|-
|[[displaycasebakery]]
|4
|2
|-
|breakroom
|[[fridge]]
|4
|4
|-
|cafeteria
|[[displaycasebakery]]
|4
|8
|}Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]].
 
==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = true
  | start = 5202
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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==
*[[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}}


==See Also==
* [[Items#Luxury Food|Luxury Food]]


{{Navbox/Consumables}}
[[Category:Perishable food]]
[[Category:Consumables]]
[[Category:Sweets]]
[[Category:Food]]
[[Category:Perishable_Food]]
[[Category:Version 34.28]]

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