Cupcake: Difference between revisions

From PZwiki
(New infobox + new layout)
(Update distribution file)
 
(34 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages|Cupcake}}
{{Header|Project Zomboid|Items|Food|Sweets}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 40|incver=14}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Cupcake
{{Reupload|Missing 3D Variant Model (Rotten)}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Cupcake
|image=Cupcake_120px.png
|model=Cupcake_Model.png
|icon=Cupcake.png
|icon_name=Cupcake
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.1
|weight=0.2
|days_fresh=4
|days_rotten=8
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-20
|hunger_change=-20
Line 15: Line 19:
|carbohydrates=67
|carbohydrates=67
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Cupcake
|item_id=Base.Cupcake
}}A '''cupcake''' is a [[Food#Non-Perishable|non-perishable]] food [[items|item]].
}}
A '''cupcake''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
A cupcake can be eaten, providing the player with some positive effects.
===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.
{{Consumables
|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]].
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Cupcake|41.78.16-->
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
{{Retrieved|version=40|incver=14}}
<div class="togglebox theme-red">
<pre> item Cupcake
    <div>Cupcake distribution
HungerChange = -20,
        <span class="mw-customtoggle-togglebox-Cupcake" 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>
Weight = 0.2,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Cupcake">
AlwaysWelcomeGift = TRUE,
    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">
DisplayName = Cupcake,
<div id="containers" style="flex-basis:30%">
Icon = Cupcake,
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
        Carbohydrates = 67,
    |+ {{ll|Containers}}
        Proteins = 4,
    ! Building/Room
        Lipids = 4,
    ! Container
        Calories = 305,</pre>
    ! Effective chance
    |-
    | all
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | bakery
    | {{ll|displaycase}}
    | 23.28%
    |-
    | bakery
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | bakery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | bakery
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | bakerykitchen
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | cafe
    | {{ll|displaycase}}
    | 23.28%
    |-
    | cafe
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | cafe
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | cafe
    | {{ll|shelves}}
    | 23.28%
    |-
    | cafekitchen
    | {{ll|restaurantdisplay}}
    | 23.28%
    |-
    | cafeteria
    | {{ll|displaycasebakery}}
    | 10.78%
    |-
    | cornerstore
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | gigamart
    | {{ll|displaycasebakery}}
    | 23.28%
    |-
    | grocery
    | {{ll|displaycasebakery}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Cupcake" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Cupcake|41.78.16-->
Cupcake can be found in bakeries, cafes, candy stores, and some convenience store [[Containers#Shelves|shelves]].
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 3996
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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==
==See also==
Line 43: Line 157:
*[[Cookie]]
*[[Cookie]]
*[[Pie Slice]]
*[[Pie Slice]]
*[[Raspberry Shortbread]]


{{Navbox/Consumables}}
{{Navbox items|miscellaneous_food}}
 
 
[[Category:Perishable food]]

Latest revision as of 12:31, 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]
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.

Cupcake 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
all displaycasebakery 23.28%
bakery displaycase 23.28%
bakery displaycasebakery 23.28%
bakery grocerstand 23.28%
bakery restaurantdisplay 23.28%
bakerykitchen restaurantdisplay 23.28%
cafe displaycase 23.28%
cafe displaycasebakery 23.28%
cafe grocerstand 23.28%
cafe shelves 23.28%
cafekitchen restaurantdisplay 23.28%
cafeteria displaycasebakery 10.78%
cornerstore displaycasebakery 23.28%
gigamart displaycasebakery 23.28%
grocery displaycasebakery 23.28%

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