Watermelon: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
m (Version bump)
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Fruit}}
{{header/sandbox2|Project Zomboid|Items|Food|Fruit}}
{{Page version|41.78.16}}
{{page version|41.73}}
{{Infobox item
{{Infobox item
|name=Watermelon
|name=Watermelon
Line 8: Line 7:
|icon_name=Watermelon
|icon_name=Watermelon
|icon2=WatermelonRotten.png
|icon2=WatermelonRotten.png
|icon_name2=Watermelon (Rotten)
|icon_name2=Watermelon (Rotten)
|icon3=WatermelonSliced.png
|icon3=WatermelonSliced.png
Watermelon Slice
|icon_name3=Watermelon Slice
|icon_name3=Watermelon Slice
|icon4=WatermelonSmashed.png
|icon4=WatermelonSmashed.png
Watermelon Chunks
|icon_name4=Watermelon Chunks
|icon_name4=Watermelon Chunks
<!--GENERAL-->
<!--GENERAL-->
Line 31: Line 27:
|item_id=Base.Watermelon
|item_id=Base.Watermelon
}}
}}
'''Watermelon''' is a [[Food#Perishable|perishable]] food [[item]].  
 
'''Watermelon''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
===Consumable properties===
===Consumable properties===
Watermelon can't be eaten, instead player must either cut or smash them first.  
Watermelon can't be eaten, instead the player must either cut or smash them first.
{{Consumables
{{Consumables
|image = Watermelon.png
|image = Watermelon.png
Line 62: Line 59:


==Distribution==
==Distribution==
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
|[[fridge]]
|4
|0.2
|-
|[[fridge]]
|4
|0.2
|-
|rowspan="3"|gigamart
|[[grocerstand]]
|4
|4
|-
|[[grocerstand]]
|4
|4
|-
|[[grocerstand]]
|4
|4
|-
|rowspan="5"|producestorage
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|5
|}
Watermelon is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Watermelon is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].


Line 71: Line 121:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
    item Watermelon
  | line = true
  | start = 1516
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Watermelon
{
{
DisplayName = Watermelon,
DisplayName = Watermelon,
Line 96: Line 152:
Tooltip = Tooltip_item_Watermelon,
Tooltip = Tooltip_item_Watermelon,
EvolvedRecipeName = Watermelon,
EvolvedRecipeName = Watermelon,
}
}  
</pre>
}}
}}


==See also==
==See also==
Line 104: Line 161:


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

Revision as of 02:55, 28 March 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
Watermelon (Rotten)
Watermelon Slice
Watermelon Chunks
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

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
WatermelonSliced.png
Watermelon Slice x10
0.75 Cooking none
(keep)
Watermelon.png
Watermelon
(consumed)
WatermelonSmashed.png
Watermelon Chunks x5
0.75 Cooking none
(keep)
Watermelon.png
Watermelon
(consumed)

Distribution

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

Containers
Building/Room Container Rolls Chance
all fridge 4 0.2
fridge 4 0.2
gigamart grocerstand 4 4
grocerstand 4 4
grocerstand 4 4
producestorage crate 4 1
crate 4 1
crate 4 2
crate 4 2
crate 4 5

Watermelon is often found in refrigerators and grocery displays.

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