Pie Slice: Difference between revisions

From PZwiki
m (Automated linking update)
(→‎Code: Codebox)
Line 51: Line 51:


==Code==
==Code==
{{Improve|section=true|Move to the new format}}
{{CodeBox|
{{Retrieved|version=41.73}}
{{CodeSnip
<pre>
  | lang = java
    item Pie
  | line = true
    {
  | start = 4652
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Pie
{
DisplayName = Pie Slice,
DisplayName = Pie Slice,
DisplayCategory = Food,
DisplayCategory = Food,
Line 70: Line 76:
StaticModel = PieSlice,
StaticModel = PieSlice,
WorldStaticModel = Pie,
WorldStaticModel = Pie,
    }
}
</pre>
}}
}}


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

Revision as of 06:25, 16 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Pie Slice
PieSlice Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Properties
Days fresh
5 days
Days until rotten
3 days
Nutrition
HungerMoodle Icon Hungry.png
-30
CaloriesCalories
404
CarbohydratesCarbohydrates
20.45
ProteinsProteins
54.53
FatFat
20.61
Technical
Item ID
Base.Pie

A pie slice is a perishable food item.

Usage

Consumable properties

Pie slices 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

Pie.png
Hunger: -30


Pie.png
Hunger: -23
Boredom: +10
Unhappiness: +10

Pie.png
Hunger: -13
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Cooking

A player-made pie can be cut into slices using a kitchen knife or hunting knife.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Pie Slice
Pie Slice x5
0.75 Cooking none
(keep)
Pie (Cooked)
Pie (Cooked)
(consumed)

Distribution

Pie slices can only be found by cutting pie, they aren't found elsewhere.

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 Pie
	{
		DisplayName = Pie Slice,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.5,
		Icon = Pie,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		HungerChange = -30,
		Calories = 404,
		Carbohydrates = 20.45,
		Lipids = 20.61,
		Proteins = 54.53,
		StaticModel = PieSlice,
		WorldStaticModel = Pie,
	}

See also