Lollipop: Difference between revisions

From PZwiki
mNo edit summary
(Update distribution file)
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Lollipop}}
{{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=Lollipop
{{Infobox item
|name_colour=Food
|name=Lollipop
|name_text_colour=Food
|model=Lollipop_Model.png
|image=Lollipop_120px.png
|icon=Lollipop.png
|alternate_image=CandyPackagei.png
|icon_name=Lollipop
|alternate_name=Candy Package
|icon2=CandyPackagei.png
|alternate_link=Candy Package
|icon_name2=Candy Package
Candy Package
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 13: Line 14:
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-5
|hunger_change=-5
|thirst_change=
|calories=40
|calories=40
|lipids=0.5
|lipids=0.5
Line 21: Line 21:
|unhappy_change=-10
|unhappy_change=-10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Lollipop
|item_id=Base.Lollipop
}}A '''lollipop''' is a [[Food#Non-Perishable|non-perishable]] food [[items|item]].
}}
A '''lollipop''' is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
A lollipop can be eaten, providing the player with some positive effects, including reducing [[Moodles#Unhappy|unhappiness]].
Lollipops can be eaten, providing the player with some positive effects, including reducing [[Unhappy|unhappiness]].


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Lollipop|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Lollipop distribution
        <span class="mw-customtoggle-togglebox-Lollipop" 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-Lollipop">
    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
    |-
    | classroom
    | {{ll|desk}}
    | 3.98%
    |-
    | daycare
    | {{ll|desk}}
    | 3.98%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Lollipop" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Lollipop|41.78.16-->
===Buildings===
===Buildings===
Lollipops can be found in grocery stores, [[Containers#Desks|office desks]], motel room [[Containers#Refrigerators|refrigerators]] and [[Containers#Bins|bins]].
Lollipops can be found in grocery stores, [[Containers#Desks|office desks]], motel room [[Containers#Refrigerators|refrigerators]] and [[Containers#Bins|bins]].
===Items===
===Items===
Lollipops can be found in [[Garbage Bag|garbage bags]] or by opening a [[Candy Package|candy package]], giving 5 lollipops.
Lollipops can be found in [[Garbage Bag|garbage bags]] or by opening a [[Candy Package|candy package]], giving 5 lollipops.


== Code ==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=14}}
| {{CodeSnip
<pre> item Lollipop
  | lang = java
HungerChange = -5,
  | line = true
Weight = 0.1,
  | start = 3943
Type = Food,
  | source = items_food.txt
UnhappyChange = -10,
  | retrieved = true
DisplayName = Lollipop,
  | version = 41.78.16
Icon = Lollipop,
  | code =
        Carbohydrates = 10,
item Lollipop
        Proteins = 0,
{
        Lipids = 0.5,
DisplayName = Lollipop,
        Calories = 40,</pre>
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = Lollipop,
HungerChange = -5,
UnhappyChange = -10,
Calories = 40,
Carbohydrates = 10,
Lipids = 0.5,
Proteins = 0,
WorldStaticModel = Lollipop,
}
}}
}}


==See also==
==See also==
Line 53: Line 98:
*[[Modjeska]]
*[[Modjeska]]


{{Navbox/Consumables}}
{{Navbox items|miscellaneous_food}}
 
 
[[Category:Non-perishable food]]

Latest revision as of 13:09, 30 April 2024

Project ZomboidItemsFoodSweetsLollipop
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Lollipop
Lollipop Model.png
Candy Package Candy Package
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Nutrition
HungerMoodle Icon Hungry.png
-5
CaloriesCalories
40
CarbohydratesCarbohydrates
10
ProteinsProteins
0
FatFat
0.5
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.Lollipop

A lollipop is a non-perishable food item.

Usage

Lollipops can be eaten, providing the player with some positive effects, including reducing unhappiness.

Distribution

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

Lollipop 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
classroom desk 3.98%
daycare desk 3.98%

Buildings

Lollipops can be found in grocery stores, office desks, motel room refrigerators and bins.

Items

Lollipops can be found in garbage bags or by opening a candy package, giving 5 lollipops.

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 Lollipop
	{
		DisplayName = Lollipop,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = Lollipop,
		HungerChange = -5,
		UnhappyChange = -10,
		Calories = 40,
		Carbohydrates = 10,
		Lipids = 0.5,
		Proteins = 0,
		WorldStaticModel = Lollipop,
	}

See also