Croissant: Difference between revisions

From PZwiki
m (Updated distribution table)
m (→‎Code: Codebox)
Line 62: Line 62:
{{CodeBox|
{{CodeBox|
{{CodeSnip
{{CodeSnip
|lang=java
  | lang = java
|line=true
  | line = true
|start=92
  | start = 6057
|source=items.txt
  | source = items_food.txt
|retrieved=true
  | retrieved = true
|version=41.73
  | version = 41.78.16
|code= item Croissant
  | code =
item Croissant
{
{
DisplayName = Croissant,
DisplayName = Croissant,
Line 85: Line 86:
WorldStaticModel = Croissant_Ground,
WorldStaticModel = Croissant_Ground,
Tags = FitsToaster,
Tags = FitsToaster,
}
}  
}}
}}
}}
}}

Revision as of 02:19, 25 March 2024

Project ZomboidItemsFoodGrainsCroissant
Spiffo controlyourself.png
This page was last updated for an older version (41.73).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Frame.png
This article contains outdated/low-quality images.
Reason: Missing 3D Variant Model (Rotten)
Please help the PZwiki by uploading an improved/updated version of the image(s) found on this page.
Croissant
Croissant Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerMoodle Icon Hungry.png
-8
CaloriesCalories
180
CarbohydratesCarbohydrates
32
ProteinsProteins
4
FatFat
15
Technical
Item ID
Base.Croissant

A Croissant is a perishable food item.

Usage

Consumable properties

Croissants 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

Croissant.png
Hunger: -8

Unhappiness: -15

Croissant.png
Hunger: -6
Boredom: +10
Unhappiness: -5

Croissant.png
Hunger: -3
Boredom: +20
Unhappiness: +5
Dangerous, will cause sickness.

Distribution

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

Containers
Building/Room Container Rolls Chance
all displaycasebakery 4 1

Croissants can often be found in kitchen counters, bakeries, motel room fridges and candy stores.

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 Croissant
	{
		DisplayName = Croissant,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = Croissant,
		DaysFresh = 3,
		DaysTotallyRotten = 5,
		HungerChange = -8,
		UnhappyChange = -15,
		Calories = 180,
		Carbohydrates = 32,
		Lipids = 15,
		Proteins = 4,
		WorldStaticModel = Croissant_Ground,
		Tags = FitsToaster,
	}

See also