Apple: Difference between revisions

From PZwiki
mNo edit summary
m (Distribution table fix)
 
(48 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{languages|Apple}}
{{Header|Project Zomboid|Items|Food|Fruit}}
{{header|Project Zomboid|Items|Food|Perishable Food|Fruits|type=Food|version=Version 40|incver=6}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Apple
{{Infobox item
|name_colour=Food
|name=Apple
|name_text_colour=Food
|model=Apple_Model.png
|image=Apple_120px.png
|icon=Apple.png
|alternate_image=AppleRotten.png
|icon_name=Apple
|alternate_link=
|model2=AppleRotten_Model.png|Rotten apple model when placed in the world.
|alternate_name=Apple (Rotten)
|icon2=AppleRotten.png
|icon_name2=Apple (Rotten)
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 14: Line 15:
|days_rotten=8
|days_rotten=8
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-15
|hunger_change=-16
|thirst_change=-7
|thirst_change=-7
|calories=95
|calories=95
Line 21: Line 22:
|carbohydrates=25.13
|carbohydrates=25.13
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Apple
|item_id=Base.Apple
}}An '''apple''' is a [[Food#Perishable|perishable]] food [[item]].
}}
An '''apple''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Apples can be used as bait in [[Trapping|traps]] to capture [[Dead_Rabbit|rabbits]], [[Dead Mouse|mice]], [[Dead_Rat|rats]] and [[Dead_Squirrel|squirrels]].
Apple can be used as bait in [[Trapping|traps]] to capture [[Dead Rabbit|rabbits]], [[Dead Mouse|mice]], [[Dead_Rat|rats]], and [[Dead Squirrel|squirrels]].
 
===Consumable properties===
===Consumable properties===
An apple can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.  
Apple 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 = Apple.png
|image = Apple.png
|hunger = -15
|hunger = -16
|thirst = 0
|thirst = 0
|unrotten hunger = -11
|unrotten hunger = -12
|unrotten boredom = +10
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten unhappiness = +10
|unrotten thirst = 0
|unrotten thirst = 0
|unrotten image = Apple.png
|unrotten image = Apple.png
|rotten hunger = -6
|rotten hunger = -7
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +20
|rotten unhappiness = +20
|rotten thirst = 0
|rotten thirst = 0
|perishable = 1
|perishable = 1
|rotten image = Apple_Rotten.png
|rotten image = AppleRotten.png
}}
}}


== Crafting ==
==Crafting==
=== Evolved recipes ===
{{Main|Cooking}}
Apples are a [[cooking]] [[Recipe Ingredients|ingredient]].
 
{{EvolvedRecipesForItem|cake=8|fruitsalad=8}}
===Evolved recipes===
Apple is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem
|cake=16
|fruitsalad=8
|pancakes=8
|waffles=8
|muffin=8
|pie=16
|oatmeal=4
|salad=8
}}
 
===Sack of Apples===
{{Crafting/sandbox2
|apple
}}


==Distribution==
==Distribution==
Apples are often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].  
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Apple|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Apple distribution
        <span class="mw-customtoggle-togglebox-Apple" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Apple">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | GroceryBag1
    | {{ll|GroceryBag1}}
    | 1.61%
    |-
    | GroceryBag2
    | {{ll|GroceryBag2}}
    | 2.81%
    |-
    | Lunchbag
    | {{ll|Lunchbag}}
    | 12.41%
    |-
    | Lunchbox
    | {{ll|Lunchbox}}
    | 12.41%
    |-
    | Lunchbox2
    | {{ll|Lunchbox2}}
    | 12.41%
    |-
    | all
    | {{ll|fridge}}
    | 6.29%
    |-
    | all
    | {{ll|grocerstand}}
    | 19.27%
    |-
    | bakery
    | {{ll|fridge}}
    | 19.27%
    |-
    | bakerykitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | breakroom
    | {{ll|fridge}}
    | 19.27%
    |-
    | cafe
    | {{ll|fridge}}
    | 19.27%
    |-
    | cafekitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | daycare
    | {{ll|fridge}}
    | 19.27%
    |-
    | donut_kitchenstorage
    | {{ll|fridge}}
    | 19.27%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | icecreamkitchen
    | {{ll|fridge}}
    | 23.28%
    |-
    | icecreamkitchen
    | {{ll|fridge}}
    | 41.14%
    |-
    | kitchen_crepe
    | {{ll|fridge}}
    | 19.27%
    |}
</div>
    </div><div style="clear: both;"></div>
    {| class="wikitable theme-red" style="width: 98%;"
    |+ {{ll|Foraging}}
    ! rowspan="2" | Amount
    ! rowspan="2" | Skill level
    ! rowspan="2" | Biomes
    ! colspan="4" style="text-align: center;" | Weather modifiers
    ! colspan="3" style="text-align: center;" | Month modifiers
    |-
    ! Snow
    ! Rain
    ! Day
    ! Night
    ! Months available
    ! Bonus months
    ! Malus months
    |-
    | 1-3
    | 7
    | Forest  10<br> FarmLand  15<br> Farm  15
    | -10
    | -
    | -
    | -
    | -
    | July<br>August<br>September<br>October
    | May<br>December
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Apple" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Apple|41.78.16-->
Apple is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]]. As of build 41, they can also be found while foraging.
 
Sacks of apples can be found in grocery stores and warehouses.


== Code ==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Apple.png]] {{ID|Base.Apple}}<br>
{{Retrieved|version=40|incver=6}}
{{CodeSnip
<pre> item Apple
  | lang = java
HungerChange = -15,
  | line = true
Weight = 0.2,
  | start = 1630
Type = Food,
  | source = items_food.txt
DaysTotallyRotten = 8,
  | retrieved = true
DisplayName = Apple,
  | version = 41.78.16
Icon = Apple,
  | code =
DaysFresh = 5,
item Apple
EvolvedRecipe = Cake:8;FruitSalad:8,
{
FoodType    = Fruits,
DisplayName = Apple,
        Carbohydrates = 25.13,
DisplayCategory = Food,
        Proteins = 0.47,
Type = Food,
        Lipids = 0.31,
Weight = 0.2,
        Calories = 95,</pre>
Icon = Apple,
EvolvedRecipe = Cake:16;FruitSalad:8;Pancakes:8;Waffles:8;Muffin:8;PieSweet:16;Oatmeal:4;Salad:8,
FoodType = Fruits,
DaysFresh = 5,
DaysTotallyRotten = 8,
HungerChange = -16,
ThirstChange = -7,
Calories = 95,
Carbohydrates = 25.13,
Lipids = 0.31,
Proteins = 0.47,
CustomEatSound = EatingFruit,
StaticModel = RoundFood_Red,
WorldStaticModel = Apple_Ground,
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Apple}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8018
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SackProduce_Apple
{
DisplayName = Sack of Apples,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 5,
DaysTotallyRotten = 8,
WorldStaticModel = SandBag,
}
}}
}}


==See also==
==See also==
*[[Banana]]
*[[Banana]]
*[[Peach]]
*[[Peach]]
*[[Pineapple]]
*[[Lemon]]
{{Navbox items|plants}}


{{Navbox/Consumables}}
[[Category:Perishable food]]

Latest revision as of 17:33, 30 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]
Apple
Apple Model.png
AppleRotten Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
5 days
Days until rotten
8 days
Nutrition
HungerMoodle Icon Hungry.png
-16
ThirstMoodle Icon Thirsty.png
-7
CaloriesCalories
95
CarbohydratesCarbohydrates
25.13
ProteinsProteins
0.47
FatFat
0.31
Technical
Item ID
Base.Apple

An apple is a perishable food item.

Usage

Trapping

Main article: Trapping

Apple can be used as bait in traps to capture rabbits, mice, rats, and squirrels.

Consumable properties

Apple 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

Apple.png
Hunger: -16


Apple.png
Hunger: -12
Boredom: +10
Unhappiness: +10

AppleRotten.png
Hunger: -7
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Apple is a cooking ingredient.

Product Nutrition
Salad
Salad
8
Fruit Salad
Fruit Salad
8
Pie (savory)
Pie (savory)
16
Cake
Cake
16
Muffin
Muffin
8
Pancakes
Pancakes
8
Waffles
Waffles
8
Oatmeal
Oatmeal
4

Sack of Apples

Product Ingredients Tools Requirements Workstation XP
Apple.png
Apple ×12
Sandbag.png Sack of Apples ×1 none none none none

Distribution

The loot distributions can be found in the table(s) below.

Apple distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
GroceryBag1 GroceryBag1 1.61%
GroceryBag2 GroceryBag2 2.81%
Lunchbag Lunchbag 12.41%
Lunchbox Lunchbox 12.41%
Lunchbox2 Lunchbox2 12.41%
all fridge 6.29%
all grocerstand 19.27%
bakery fridge 19.27%
bakerykitchen fridge 19.27%
breakroom fridge 19.27%
cafe fridge 19.27%
cafekitchen fridge 19.27%
daycare fridge 19.27%
donut_kitchenstorage fridge 19.27%
gigamart grocerstand 23.28%
gigamart grocerstand 41.14%
grocery grocerstand 23.28%
grocery grocerstand 41.14%
icecreamkitchen fridge 23.28%
icecreamkitchen fridge 41.14%
kitchen_crepe fridge 19.27%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
1-3 7 Forest 10
FarmLand 15
Farm 15
-10 - - - - July
August
September
October
May
December

Apple is often found in refrigerators and grocery displays. As of build 41, they can also be found while foraging.

Sacks of apples can be found in grocery stores and warehouses.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Apple.png Base.Apple
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item Apple
	{
		DisplayName = Apple,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Apple,
		EvolvedRecipe = Cake:16;FruitSalad:8;Pancakes:8;Waffles:8;Muffin:8;PieSweet:16;Oatmeal:4;Salad:8,
		FoodType = Fruits,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		HungerChange = -16,
		ThirstChange = -7,
		Calories = 95,
		Carbohydrates = 25.13,
		Lipids = 0.31,
		Proteins = 0.47,
		CustomEatSound = EatingFruit,
		StaticModel = RoundFood_Red,
		WorldStaticModel = Apple_Ground,
	}

Sandbag.png Base.SackProduce_Apple
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item SackProduce_Apple
	{
		DisplayName = Sack of Apples,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		WorldStaticModel = SandBag,
	}

See also