Cupcake: Difference between revisions

From PZwiki
m (Minor)
m (Version bump)
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Sweets}}
{{Header|Project Zomboid|Items|Food|Perishable Food|type=Food|version=Version 41|incver=73}}
{{Page version|41.78.16}}
{{Infobox food
{{Reupload|Missing 3D Variant Model (Rotten)}}
|display_name=Cupcake
{{Infobox item
|name_colour=Food
|name=Cupcake
|name_text_colour=Food
|model=Cupcake_Model.png
|image=Cupcake_Model.png
|icon=Cupcake.png
|image_width=200px
|icon_name=Cupcake
|alternate_image=Cupcake.png
|alternate_name=Cupcake
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 22: Line 19:
|carbohydrates=67
|carbohydrates=67
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Cupcake
|item_id=Base.Cupcake
}}
}}
A '''cupcake''' is a [[Food#Perishable|perishable]] food [[items|item]].
 
A '''cupcake''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
===Consumable properties===
===Consumable properties===
Cupcakes can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Cupcakes 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 = Cupcake.png
|image = Cupcake.png
|hunger = -20
|hunger = -20
Line 44: Line 42:


==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
|-
|all
|[[displaycasebakery]]
|4
|1
|-
|cafeteria
|[[displaycasebakery]]
|4
|4
|}
Cupcake can be found in bakeries, cafes, candy stores, and some convenience store [[Containers#Shelves|shelves]].
Cupcake can be found in bakeries, cafes, candy stores, and some convenience store [[Containers#Shelves|shelves]].
==Gallery==
<gallery>
Cupcake Model.png|Model for: [[File:Cupcake.png|32px]]
</gallery>


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=73}}
| {{CodeSnip
<pre>
  | lang = java
    item Cupcake
  | line = true
  | start = 3996
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Cupcake
{
{
DisplayName = Cupcake,
DisplayName = Cupcake,
Line 70: Line 89:
Proteins = 4,
Proteins = 4,
WorldStaticModel = Cupcake,
WorldStaticModel = Cupcake,
}
}  
</pre>
}}
}}


==See also==
==See also==
Line 79: Line 99:


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

Revision as of 02:34, 28 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
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.
Cupcake
Cupcake Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
4 days
Days until rotten
8 days
Nutrition
HungerMoodle Icon Hungry.png
-20
CaloriesCalories
305
CarbohydratesCarbohydrates
67
ProteinsProteins
4
FatFat
4
Technical
Item ID
Base.Cupcake

A cupcake is a perishable food item.

Usage

Consumable properties

Cupcakes 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

Cupcake.png
Hunger: -20


Cupcake.png
Hunger: -15
Boredom: +10
Unhappiness: +10

Cupcake.png
Hunger: -9
Boredom: +20
Unhappiness: +20
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
cafeteria displaycasebakery 4 4

Cupcake can be found in bakeries, cafes, candy stores, and some convenience store shelves.

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 Cupcake
	{
		DisplayName = Cupcake,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Cupcake,
		DaysFresh = 4,
		DaysTotallyRotten = 8,
		HungerChange = -20,
		Calories = 305,
		Carbohydrates = 67,
		Lipids = 4,
		Proteins = 4,
		WorldStaticModel = Cupcake,
	}

See also