Watermelon: Difference between revisions
(→Code: Codebox Update) |
m (Version bump) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Food|Fruit}} | ||
{{Page version|41.78.16}} | |||
{{ | |||
{{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 | ||
|icon_name3=Watermelon Slice | |icon_name3=Watermelon Slice | ||
|icon4=WatermelonSmashed.png | |icon4=WatermelonSmashed.png | ||
|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 [[ | |||
'''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 70: | Line 120: | ||
</gallery> | </gallery> | ||
== Code == | ==Code== | ||
{{CodeBox | {{CodeBox | ||
| {{CodeSnip | | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 1516 | ||
| source = items_food.txt | | source = items_food.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41. | | version = 41.78.16 | ||
| code = | | code = | ||
item Watermelon | 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, | |||
} | } | ||
}} | |||
}} | }} | ||
Line 111: | Line 161: | ||
{{Navbox food}} | {{Navbox food}} | ||
[[Category:Perishable food]] | [[Category:Perishable food]] |
Revision as of 02:55, 28 March 2024
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 |
---|---|---|
|
|
|
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 |
---|---|---|---|---|---|
Watermelon Slice x10 |
0.75 Cooking | none | One of: Kitchen Knife Hunting Knife Saw Axe Stone Axe Hand Axe Wood Axe Meat Cleaver Stone Knife Machete (keep) |
Watermelon (consumed) | |
Watermelon Chunks x5 |
0.75 Cooking | none | (keep) |
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
Source: ProjectZomboid\media\scripts\items_food.txt
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,
}