Watermelon: Difference between revisions

From PZwiki
(Added new template and data.)
(Update distribution file)
 
(42 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Fruit}}
{{Page version|41.78.16}}
{{Infobox item
|name=Watermelon
|model=Watermelon_Model.png
|icon=Watermelon.png
|icon_name=Watermelon
|model2=WatermelonRotten_Model.png
|icon2=WatermelonRotten.png
|icon_name2=Watermelon (Rotten)
<!--GENERAL-->
|category=Food
|weight=3
|days_fresh=6
|days_rotten=8
<!--NUTRITION-->
|hunger_change=-60
|thirst_change=-140
|calories=1355
|lipids=6.78
|proteins=27.56
|carbohydrates=341.11
<!--TECHNICAL DETAILS-->
|item_id=Base.Watermelon
}}
A '''watermelon''' is a perishable [[food]] [[Items|item]].
 
==Usage==
===Consumable properties===
Watermelon can't be eaten, instead the player must either cut or smash them first.
{{Consumables
{{Consumables
|image = Watermelon.png
|weight = 0.9
}}
{{Consumables2
|image = Watermelon.png
|image = Watermelon.png
|hunger = -60
|hunger = -60
|thirst = -140
|thirst = -140
|unrotten hunger = 0
|unrotten hunger = -40
|unrotten boredom = 0
|unrotten boredom = +10
|unrotten unhappiness = 0
|unrotten unhappiness = +10
|unrotten thirst = 0
|unrotten thirst = -140
|rotten hunger = 0
|unrotten image = Tomato.png
|rotten boredom = 0
|rotten hunger = -27
|rotten unhappiness = 0
|rotten boredom = +20
|rotten thirst = 0
|rotten unhappiness = +20
|rotten thirst = -140
|perishable = 1
|perishable = 1
|rotten image = Rotten Watermelon.png
|rotten image = Rotten Watermelon.png
}}
}}
== Crafting ==
{{Notice|Outdated}}
{| class="wikitable sortable" style="text-align:center;"
|-
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
{{RecipeLookup|2015}}
{{RecipeLookup|2016}}
|}


== Code ==
==Crafting==
<nowiki>item Watermelon
===What it can make===
{
Watermelon can be cut into [[Watermelon Slice|slices]] with a [[saw]], [[axe]], or [[Kitchen Knife|knife]] or smashed into [[Watermelon Chunks|chunks]] with a [[Weapons#Blunt weapons|blunt weapon]].
Type = Food,
{{Crafting/sandbox2
DisplayName = Watermelon,
|watermelon_slice
Icon = Watermelon,
|watermelon_chunks
Weight = 2,
}}
HungerChange = -60,
ThirstChange = -140,
DaysFresh = 3,
DaysTotallyRotten = 5,
}</nowiki>


== History ==
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Watermelon|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Watermelon distribution
        <span class="mw-customtoggle-togglebox-Watermelon" 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-Watermelon">
    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:50%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|fridge}}
    | 2.1%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 10.78%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 10.78%
    |-
    | icecreamkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | producestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | producestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | producestorage
    | {{ll|crate}}
    | 76.55%
    |}
</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
    |-
            | ---
            | 10
            | Forest  1<br> FarmLand  3<br> Farm  3
            | -20
            | -
            | -
            | -
            | -
            | July<br>August<br>September<br>October
            | May<br>December
            |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Watermelon" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Watermelon|41.78.16-->
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1516
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Watermelon
{
DisplayName = Watermelon,
DisplayCategory = Food,
Type = Food,
Weight = 3,
Icon = Watermelon,
CantEat = TRUE,
/*EvolvedRecipe = Salad:10;FruitSalad:10;Pancakes:10;Waffles:10;Muffin:10,*/
FoodType = Fruits,
DaysFresh = 6,
DaysTotallyRotten = 8,
HungerChange = -60,
ThirstChange = -140,
Calories = 1355,
Carbohydrates = 341.11,
Lipids = 6.78,
Proteins = 27.56,
CustomEatSound = EatingFruit,
WorldStaticModel = Watermelon_Ground,
Tooltip = Tooltip_item_Watermelon,
EvolvedRecipeName = Watermelon,
}
}}
}}


{| class="wikitable" width="550" style="text-align:center;"
==See also==
|-
*[[Pineapple]]
! Alpha || 
*[[Orange]]
|-
| RC 2.9 || When was this added to the game?
|}


==See Also==
{{Navbox items|plants}}
* [[Watermelon Chunks]]
* [[Watermelon slice]]


{{Navbox/Consumables}}
[[Category:Perishable food]]
[[Category:Consumables]]
[[Category:Food]]
[[Category:Perishable Food]]
[[Category:Version 2.9.9.17]]

Latest revision as of 06:03, 30 April 2024

Project ZomboidItemsFoodFruitWatermelon
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Watermelon
Watermelon Model.png
WatermelonRotten Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
3
Properties
Days fresh
6 days
Days until rotten
8 days
Nutrition
HungerMoodle Icon Hungry.png
-60
ThirstMoodle Icon Thirsty.png
-140
CaloriesCalories
1355
CarbohydratesCarbohydrates
341.11
ProteinsProteins
27.56
FatFat
6.78
Technical
Item ID
Base.Watermelon

A watermelon is a perishable food item.

Usage

Consumable properties

Watermelon can't be eaten, instead the player must either cut or smash them first.

Fresh Stale Rotten

Watermelon.png
Hunger: -60


Watermelon.png
Hunger: -40
Boredom: +10
Unhappiness: +10

Rotten Watermelon.png
Hunger: -27
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

What it can make

Watermelon can be cut into slices with a saw, axe, or knife or smashed into chunks with a blunt weapon.

Product Ingredients Tools Requirements Workstation XP
WatermelonSliced.png
Watermelon Slice ×10
One of:
KnifeChopping.png Kitchen Knife ×1
HuntingKnife.png Hunting Knife ×1
Hacksaw.png Saw ×1
Axe.png Axe ×1
AxeStone.png Stone Axe ×1
AxeHand.png Hand Axe ×1
WoodAxe.png Wood Axe ×1
Cleaver.png Meat Cleaver ×1
Each of:
Watermelon.png Watermelon ×1
none none none 0.75 Cooking
WatermelonSmashed.png
Watermelon Chunks ×5
One of:
BaseballBat.png Baseball Bat ×1
Hammer.png Hammer ×1
Logs.png Log ×1
Plank.png Plank ×1
Sledgehamer.png Sledgehammer ×1
BaseballBatNails.png Spiked Baseball Bat ×1
HammerStone.png Stone Hammer ×1
Each of:
Watermelon.png Watermelon ×1
none none none 0.75 Cooking

Distribution

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

Watermelon 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
all fridge 2.1%
gigamart grocerstand 10.78%
grocery grocerstand 10.78%
icecreamkitchen fridge 10.78%
producestorage crate 23.28%
producestorage crate 41.14%
producestorage crate 76.55%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 10 Forest 1
FarmLand 3
Farm 3
-20 - - - - July
August
September
October
May
December

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 Watermelon
	{
		DisplayName = Watermelon,
		DisplayCategory = Food,
		Type = Food,
		Weight = 3,
		Icon = Watermelon,
		CantEat = TRUE,
		/*EvolvedRecipe = Salad:10;FruitSalad:10;Pancakes:10;Waffles:10;Muffin:10,*/
		FoodType = Fruits,
		DaysFresh = 6,
		DaysTotallyRotten = 8,
		HungerChange = -60,
		ThirstChange = -140,
		Calories = 1355,
		Carbohydrates = 341.11,
		Lipids = 6.78,
		Proteins = 27.56,
		CustomEatSound = EatingFruit,
		WorldStaticModel = Watermelon_Ground,
		Tooltip = Tooltip_item_Watermelon,
		EvolvedRecipeName = Watermelon,
	}

See also