Black Forest Cake Slice: Difference between revisions

From PZwiki
No edit summary
m (RM reupload. No rotten model as per models_items.txt.)
 
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|{{PAGENAME}}}}
{{Header|Project Zomboid|Items|Food|Sweets}}
<!--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.65}}
{{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=Black Forest Cake Slice
{{Infobox food
|model=CakeBlackforest_Model.png
|display_name=Black Forest Cake Slice
|icon=CakeBlackForest.png
|name_colour=Food
|name_text_colour=Food
|image=CakeBlackForest.png
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.2
|weight=0.2
|days_fresh=3
|days_fresh=3
|days_rotten=2
|days_rotten=5
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-10
|hunger_change=-10
Line 21: Line 18:
<!--EFFECT-->
<!--EFFECT-->
|unhappy_change=-15
|unhappy_change=-15
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.CakeBlackForest
|item_id=Base.CakeBlackForest
}}<!--COMMENT: General introductory for the item-->
}}
A '''Black Forest Cake Slice''' is a [[Food#Perishable|perishable]] food [[items|item]]
A '''Black Forest Cake Slice''' is a perishable [[food]] [[Items|item]].
 
<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed-->
__TOC__


== Usage ==
==Usage==
A Black Forest Cake Slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
A Black Forest Cake Slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.


=== Consumable properties ===
===Consumable properties===
{{Consumables2
{{Consumables
|image = CakeBlackForest.png
|image = CakeBlackForest.png
|hunger = -10
|hunger = -10
Line 49: Line 42:
}}
}}


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


== Distribution ==
<!--BOT FLAG|CakeBlackForest|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>CakeBlackForest distribution
        <span class="mw-customtoggle-togglebox-CakeBlackForest" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-CakeBlackForest">
    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">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! 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%
    |-
    | 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-CakeBlackForest" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CakeBlackForest|41.78.16-->
Black Forest Cake Slices can be found in bakery [[Containers#Displays|display counters]].
Black Forest Cake Slices can be found in bakery [[Containers#Displays|display counters]].


== Code ==
==Code==
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
{{CodeBox
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
| {{CodeSnip
<!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.-->
  | lang = java
{{Retrieved|version=41|incver=65}}
  | line = true
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is Broccoli.-->
  | start = 5827
<pre>    item CakeBlackForest
  | source = items_food.txt
    {
  | retrieved = true
        Type = Food,
  | version = 41.78.16
        HungerChange = -10,
  | code =
        UnhappyChange     =     -15,
item CakeBlackForest
        DisplayName = Black Forest Cake Slice,
{
        Icon = CakeBlackForest,
DisplayName = Black Forest Cake Slice,
        Weight = 0.2,
DisplayCategory = Food,
        DaysFresh = 3,
Type = Food,
        DaysTotallyRotten = 5,
Weight = 0.2,
        Carbohydrates = 4,
Icon = CakeBlackForest,
        Proteins = 10,
DaysFresh = 3,
        Lipids = 12,
DaysTotallyRotten = 5,
        Calories = 90,
HungerChange = -10,
        StaticModel = CakeSlice,
UnhappyChange = -15,
        WorldStaticModel = BlackForestCake_Ground,</pre>
Calories = 90,
Carbohydrates = 4,
Lipids = 12,
Proteins = 10,
StaticModel = CakeSlice,
WorldStaticModel = BlackForestCake_Ground,
}
}}
}}


==See also==
==See also==
Line 83: Line 156:
*[[Red Velvet Cake Slice]]
*[[Red Velvet Cake Slice]]
*[[Strawberry Cake Slice]]
*[[Strawberry Cake Slice]]
{{Navbox/Consumables}}
 
<!--Comment: Any categories that this item may belong to, but are not included in the header can be listed here-->
{{Navbox items|miscellaneous_food}}
[[Category:Food]]
 
 
[[Category:Perishable food]]

Latest revision as of 15:47, 30 April 2024

Project ZomboidItemsFoodSweetsBlack Forest Cake Slice
Spiffo controlyourself.png
This page was last updated for an older version (41.65).
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.
Black Forest Cake Slice
CakeBlackforest Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
90
CarbohydratesCarbohydrates
4
ProteinsProteins
10
FatFat
12
Effect
UnhappinessMoodle Icon Unhappy.png
-15
Technical
Item ID
Base.CakeBlackForest

A Black Forest Cake Slice is a perishable food item.

Usage

A Black Forest Cake Slice can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.

Consumable properties

Fresh Stale Rotten

CakeBlackForest.png
Hunger: -10

Unhappiness: -15

CakeBlackForest.png
Hunger: -7
Boredom: +10
Unhappiness: -5

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

Distribution

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

CakeBlackForest 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%
cornerstore displaycasebakery 23.28%
gigamart displaycasebakery 23.28%
grocery displaycasebakery 23.28%

Black Forest Cake Slices can be found in bakery display counters.

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 CakeBlackForest
	{
		DisplayName = Black Forest Cake Slice,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = CakeBlackForest,
		DaysFresh = 3,
		DaysTotallyRotten = 5,
		HungerChange = -10,
		UnhappyChange = -15,
		Calories = 90,
		Carbohydrates = 4,
		Lipids = 12,
		Proteins = 10,
		StaticModel = CakeSlice,
		WorldStaticModel = BlackForestCake_Ground,
	}

See also