Candle: Difference between revisions

From PZwiki
(Update distribution file)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Equipment|Light sources}}
{{Items
{{Page version|41.78.16}}
|image = Candle.png  
{{Infobox item
|weight = 0.2
|name=Candle
|model=Candle_Model.png
|model_width=200px
|icon=Candle.png
|icon_name=Candle
|icon2=CandleLit.png
|icon_name2=Lit Candle
<!--General-->
|category=Light Source
|weight=0.2
|function=Light source
<!--Properties-->
|max_units=333
|light_strength=0.6
<!--Technical-->
|tags=StartFire
|item_id=Base.Candle<br>Base.CandleLit
}}
}}
The candle itself does not do anything. However, if the candle is lit, it will become a light source for the player.
A '''lit candle''' is a drainable illumination item.


== Crafting ==
==Usage==
{| class="wikitable sortable" style="text-align:center;"
The '''candle''' itself does not do anything. However, if the candle is lit, it will become a light source for the player. It can also then be used to light a [[campfire]].
|-
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
{{RecipeLookup|4004}}
|}


== Code ==
When equipped, a lit candle projects a ring of light around the player stronger than that of a [[lighter]], but weaker than a [[flashlight]]. It has a limited usable time, which once drained, will be destroyed.
<nowiki>item Candle
{
Type = Normal,
DisplayName = Candle,
Icon = Candle,
Weight = 0.2,
}</nowiki>
== History ==
{| class="wikitable" width="550" style="text-align:center;"
|-
! Alpha || 
|-
| RC 2.9 || Added to the game.  
|}


==See Also==
The lit candle can be put out, extinguishing the light source and reverting it to a candle, where it must be relit.
* [[Lighter]]


{{Navbox/Tools}}
==Crafting==
[[Category:Version 0.2.0p]]
{{Crafting/sandbox2
[[Category:Illumination]]
|lit_candle
[[Category:Items]]
}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Candle|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Candle distribution
        <span class="mw-customtoggle-togglebox-Candle" 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-Candle">
    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|other}}
    | 1.61%
    |-
    | armysurplus
    | {{ll|counter}}
    | 23.28%
    |-
    | armysurplus
    | {{ll|counter}}
    | 41.14%
    |-
    | armysurplus
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | armysurplus
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | armysurplus
    | {{ll|shelves}}
    | 23.28%
    |-
    | armysurplus
    | {{ll|shelves}}
    | 41.14%
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | empty
    | {{ll|crate}}
    | 6.29%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | hall
    | {{ll|counter}}
    | 6.29%
    |-
    | jewelrystore
    | {{ll|counter}}
    | 6.29%
    |-
    | lobby
    | {{ll|counter}}
    | 6.29%
    |-
    | plazastore1
    | {{ll|counter}}
    | 6.29%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Candle" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Candle|41.78.16-->
 
Candles can be found in wardrobes, counters and gift stores.
 
==Code==
{{CodeBox|[[File:Candle.png]] {{ID|Candle}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 728
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Candle
    {
        DisplayCategory = LightSource,
        Weight    =    0.2,
        Type    =    Drainable,
        UseDelta    =  0,
        DisplayName    =    Candle,
        Icon    =    Candle,
        cantBeConsolided = TRUE,
        StaticModel = Candle,
        WorldStaticModel = CandleGround,
    }
}}
{{CodeSnip
  | lang = java
  | line = true
  | start = 741
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CandleLit
{
    DisplayCategory = LightSource,
LightDistance = 3,
Weight = 0.2,
Type = Drainable,
    UseWhileUnequipped  =  TRUE,
TorchCone = FALSE,
UseDelta = 0.003,
LightStrength = 0.6,
DisplayName = Lit Candle,
ActivatedItem = TRUE,
Icon = CandleLit,
cantBeConsolided = TRUE,
StaticModel = Candle,
WorldStaticModel = CandleGround,
Tags = StartFire,
}
}}
}}
 
==See also==
*[[Lighter]]
*[[Matches]]
 
{{Navbox items|survival}}

Latest revision as of 12:15, 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]
Candle
Candle Model.png
Lit Candle
General
Category
Light Source
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Light source
Properties
Capacity
333 units
Light strength
0.6
Technical
Tags
StartFire
Item ID
Base.Candle
Base.CandleLit

A lit candle is a drainable illumination item.

Usage

The candle itself does not do anything. However, if the candle is lit, it will become a light source for the player. It can also then be used to light a campfire.

When equipped, a lit candle projects a ring of light around the player stronger than that of a lighter, but weaker than a flashlight. It has a limited usable time, which once drained, will be destroyed.

The lit candle can be put out, extinguishing the light source and reverting it to a candle, where it must be relit.

Crafting

Product Ingredients Tools Requirements Workstation XP
CandleLit.png
Candle
One of:
Lighter.png Lighter ×1
Matches.png Matches ×1
Each of:
Candle.png Candle ×1
none none none none

Distribution

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

Candle 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 other 1.61%
armysurplus counter 23.28%
armysurplus counter 41.14%
armysurplus metal_shelves 23.28%
armysurplus metal_shelves 41.14%
armysurplus shelves 23.28%
armysurplus shelves 41.14%
closet crate 23.28%
empty crate 6.29%
garagestorage crate 23.28%
hall counter 6.29%
jewelrystore counter 6.29%
lobby counter 6.29%
plazastore1 counter 6.29%
storageunit crate 23.28%

Candles can be found in wardrobes, counters and gift stores.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Candle.png Candle
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Candle
    {
        DisplayCategory = LightSource,
        Weight    =    0.2,
        Type    =    Drainable,
        UseDelta    =   0,
        DisplayName    =    Candle,
        Icon    =    Candle,
        cantBeConsolided = TRUE,
        StaticModel = Candle,
        WorldStaticModel = CandleGround,
    }

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item CandleLit
	{
	    DisplayCategory = LightSource,
		LightDistance	=	3,
		Weight	=	0.2,
		Type	=	Drainable,
	    UseWhileUnequipped  =   TRUE,
		TorchCone	=	FALSE,
		UseDelta	=	0.003,
		LightStrength	=	0.6,
		DisplayName	=	Lit Candle,
		ActivatedItem	=	TRUE,
		Icon	=	CandleLit,
		cantBeConsolided = TRUE,
		StaticModel = Candle,
		WorldStaticModel = CandleGround,
		Tags = StartFire,
	}

See also