Cake Slice: Difference between revisions
(→Code: Codebox) |
(Automated distribution table) |
||
Line 52: | Line 52: | ||
==Distribution== | ==Distribution== | ||
Cake slice can be found in [[refrigerator]]s and bakery [[Containers#Displays|display cases]]. | The loot distributions can be found in the table(s) below. | ||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
|- | |||
! Building/Room | |||
! 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== | ==Code== |
Revision as of 12:02, 20 March 2024
- This article is about cake slices that spawn naturally. For cake slices made by the player, see Recipe ingredients.
A cake slice is a perishable food item.
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 |
---|---|---|
|
|
|
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 x5 |
0.75 Cooking | none | (keep) |
Cake (Cooked) (consumed) |
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
Source: ProjectZomboid\media\scripts\items_food.txt
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,
}