Cupcake: Difference between revisions

From PZwiki
(updated to 41.68 + added model + navbox)
No edit summary
Line 1: Line 1:
{{languages}}
{{languages|Cupcake}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=68}}{{Infobox food
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=73}}{{Infobox food
|display_name=Cupcake
|display_name=Cupcake
|name_colour=Food
|name_colour=Food
|name_text_colour=Food
|name_text_colour=Food
|image=Cupcake_Model.png
|image=Cupcake_120px.png
|image_width=200px
|alternate_image=Cupcake.png
|alternate_name=Cupcake
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.2
|weight=0.2
|days_fresh=4
|days_rotten=4
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-20
|hunger_change=-20
Line 20: Line 18:
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Cupcake
|class_name=Base.Cupcake
}}A '''cupcake''' is a [[Food#Non-Perishable|non-perishable]] food [[items|item]].
}}'''Cupcake''' is a [[Food#Non-Perishable|non-perishable]] food [[items|item]].


==Usage==
==Usage==
A cupcake can be eaten, providing the player with some positive effects.
=== Consumable properties ===
Cupcake can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
{{Consumables2
|image = Cupcake.png
|hunger = -20
|perishable = 1
|cookable = 0
|unrotten hunger = -15
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -9
|rotten unhappiness = +20
|rotten boredom = +20
|rotten image = Cupcake.png
}}


==Distribution==
==Distribution==
Cupcakes 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>
File:Cupcake Model.png|Model for: [[File:Cupcake.png|32px]]
</gallery>


== Code ==
== Code ==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=68}}
{{Retrieved|version=41|incver=73}}
<pre>    item Cupcake
<pre>    item Cupcake
{
{
DisplayName = Cupcake,
DisplayCategory = Food,
DisplayCategory = Food,
HungerChange = -20,
Type = Food,
Weight = 0.2,
Weight = 0.2,
AlwaysWelcomeGift = TRUE,
Icon = Cupcake,
Type = Food,
DaysFresh = 4,
DisplayName = Cupcake,
DaysTotallyRotten = 8,
Icon = Cupcake,
HungerChange = -20,
        Carbohydrates = 67,
Calories = 305,
        Proteins = 4,
Carbohydrates = 67,
        Lipids = 4,
Lipids = 4,
        Calories = 305,
Proteins = 4,
        WorldStaticModel = Cupcake,
WorldStaticModel = Cupcake,
}</pre>
}</pre>


Line 50: Line 68:
*[[Cake Slice]]
*[[Cake Slice]]
*[[Cookie]]
*[[Cookie]]
*[[Muffin]]
*[[Pie Slice]]
*[[Pie Slice]]
*[[Raspberry Shortbread]]


{{Navbox_food}}
{{Navbox_food}}

Revision as of 19:13, 5 October 2022

Cupcake
Cupcake
General
Category Food
Encumbrance
Heavy Load
0.2
Days until stale 4 days
Days until rotten 4 days
Nutrition
Hunger
Hunger
-20
Calories
Calories
305
Carbohydrates
Carbohydrates
67
Proteins
Proteins
4
Fat
Fat
4
Technical details
Item ID Base.Cupcake

Cupcake is a non-perishable food item.

Usage

Consumable properties

Cupcake can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish. Template:Consumables2

Distribution

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

Gallery

Code

From items_food.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.73

    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