Onigiri: Difference between revisions

From PZwiki
(Created page with "{{languages|{{PAGENAME}}}} <!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template...")
 
(Update distribution file)
 
(32 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|{{PAGENAME}}}}
{{Header|Project Zomboid|Items|Food|Miscellaneous food}}
<!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template with a working explanation. The header connects categories and Version number. PLEASE ENTER THE VERSION AND INCREMENT NUMBER WHEN YOU MAKE OR EDIT A PAGE. It helps everyone else know how old the page is version-wise -->
{{Page version|41.78.16}}
{{header|The Game World|Items|Food|Perishable Food|type=Food|version=Version 41|incver=65}}<!--
{{Infobox item
Comment: This section is for the infobox which will be positioned on the right of the page. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_food. Image.png is the default question mark image-->
|name=Onigiri
{{Infobox food
|model=Onigiri_Model.png
|display_name=Onigiri
|icon=Onigiri.png
|name_colour=Food
|name_text_colour=Food
|image=Onigiri.png
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.1
|weight=0.1
|days_fresh=2
|days_fresh=2
|days_rotten=2
|days_rotten=4
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-10
|hunger_change=-10
Line 20: Line 17:
|carbohydrates=12
|carbohydrates=12
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Onigiri
|item_id=Base.Onigiri
}}
}}
Onigiri is a [[Food#Perishable|perishable]] food [[items|item]]
'''Onigiri''' is a perishable [[food]] [[Items|item]].


__TOC__
==Usage==
 
===Consumable properties===
== Usage ==
 
=== Consumable properties ===
Onigiri can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Onigiri 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 = Onigiri.png
|image = Onigiri.png
|hunger = -10
|hunger = -10
Line 43: Line 37:
}}
}}


== Distribution ==
==Distribution==
Onigiri can be found inside [[refrigerator]]s in restaurants.
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Onigiri|41.78.16-->
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
{{Retrieved|version=41|incver=65}}
<div class="togglebox theme-red">
<pre>   item Onigiri
    <div>Onigiri distribution
    {
        <span class="mw-customtoggle-togglebox-Onigiri" 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>
        HungerChange = -10,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Onigiri">
        Weight = 0.1,
    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">
        Type = Food,
<div class="pz-container">
        DaysTotallyRotten = 4,
<div id="containers" style="flex-basis:30%">
        DisplayName = Onigiri,
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
        Icon = Onigiri,
    |+ {{ll|Containers}}
        DaysFresh = 2,
    ! Building/Room
        Carbohydrates = 12,
    ! Container
        Proteins = 18,
    ! Effective chance
        Lipids = 4,
    |-
        Calories = 25,</pre>
    | sushidining
    | {{ll|displaycase}}
    | 23.28%
    |-
    | sushidining
    | {{ll|displaycase}}
    | 41.14%
    |-
    | sushikitchen
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | sushikitchen
    | {{ll|restaurantdisplay}}
    | 41.14%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Onigiri" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Onigiri|41.78.16-->
Onigiri can often found inside [[Containers#Displays|displays]] in restaurant.
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 6626
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Onigiri
{
DisplayName = Onigiri,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = Onigiri,
DaysFresh = 2,
DaysTotallyRotten = 4,
HungerChange = -10,
Calories = 25,
Carbohydrates = 12,
Lipids = 4,
Proteins = 18,
WorldStaticModel = Onigiri_Ground,
}
}}
}}


==See also==
==See also==
{{Navbox/Consumables}}
 
{{Navbox items|food}}
 
[[Category:Perishable food]]

Latest revision as of 13:25, 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]
Onigiri
Onigiri Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Properties
Days fresh
2 days
Days until rotten
4 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
25
CarbohydratesCarbohydrates
12
ProteinsProteins
18
FatFat
4
Technical
Item ID
Base.Onigiri

Onigiri is a perishable food item.

Usage

Consumable properties

Onigiri 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

Onigiri.png
Hunger: -10


Onigiri.png
Hunger: -7
Boredom: +10
Unhappiness: +10

Onigiri.png
Hunger: -4
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Distribution

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

Onigiri 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
sushidining displaycase 23.28%
sushidining displaycase 41.14%
sushikitchen restaurantdisplay 23.28%
sushikitchen restaurantdisplay 41.14%

Onigiri can often found inside displays in restaurant.

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 Onigiri
	{
		DisplayName = Onigiri,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = Onigiri,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		HungerChange = -10,
		Calories = 25,
		Carbohydrates = 12,
		Lipids = 4,
		Proteins = 18,
		WorldStaticModel = Onigiri_Ground,
	}

See also