Pizza Slice: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 60: Line 60:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
item Pizza
  | line = false
{
  | source = items_food.txt
DisplayName = Pizza Slice,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 78.16
Weight = 0.3,
  | code =
Icon = Pizza,
item Pizza
DaysFresh = 3,
{
DaysTotallyRotten = 5,
    DisplayName           = Pizza Slice,
HungerChange = -25,
    DisplayCategory       = Food,
UnhappyChange = -10,
    Type                 = Food,
Calories = 990,
    Weight               = 0.3,
Carbohydrates = 120,
    Icon                 = Pizza,
Lipids = 39,
    DaysFresh             = 3,
Proteins = 42,
    DaysTotallyRotten     = 5,
WorldStaticModel = PizzaSlice_Ground,
    HungerChange         = -25,
}
    UnhappyChange         = -10,
</pre>
    Calories             = 990,
    Carbohydrates         = 120,
    Lipids               = 39,
    Proteins             = 42,
    WorldStaticModel     = PizzaSlice_Ground,
}
  }}
}}


{{Navbox food}}
{{Navbox food}}


[[Category:Perishable food]]
[[Category:Perishable food]]

Revision as of 11:02, 31 January 2024

Template:Header/sandbox2

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Pizza Slice
PizzaSlice Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerMoodle Icon Hungry.png
-25
CaloriesCalories
990
CarbohydratesCarbohydrates
120
ProteinsProteins
42
FatFat
39
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.Pizza

A pizza slice is a perishable food item.

Usage

Consumable properties

Pizza slice can be eaten, providing the player with some positive and negative effects, however these will become more negative the longer it's left to perish.

Fresh Stale Rotten

Pizza.png
Hunger: -25


Pizza.png
Hunger: -19
Boredom: +10

Pizza.png
Hunger: -11
Boredom: +20
Unhappiness: +10
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Obtaining

Pizza slice is made by cutting pizza

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

Distribution

Pizza slice can often found inside displays in restaurant.

Gallery

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 Pizza
{
    DisplayName           = Pizza Slice,
    DisplayCategory       = Food,
    Type                  = Food,
    Weight                = 0.3,
    Icon                  = Pizza,
    DaysFresh             = 3,
    DaysTotallyRotten     = 5,
    HungerChange          = -25,
    UnhappyChange         = -10,
    Calories              = 990,
    Carbohydrates         = 120,
    Lipids                = 39,
    Proteins              = 42,
    WorldStaticModel      = PizzaSlice_Ground,
}