Candle: Difference between revisions
(→Code) |
(→Distribution: Add table) |
||
(40 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Equipment|Light sources}} | ||
{{ | {{Page version|41.78.16}} | ||
{{ | {{Infobox item | ||
|name=Candle | |||
| | |model=Candle_Model.png | ||
|weight = | |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 | |||
}} | }} | ||
A '''lit candle''' is a drainable illumination item. | |||
== Crafting == | ==Usage== | ||
{| class=" | 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== | ||
== Code == | {{Crafting/sandbox2 | ||
|lit_candle | |||
{ | }} | ||
Type | |||
==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"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Containers}} | |||
! Building / Room | |||
! Container | |||
! Rolls | |||
! Chance | |||
|- | |||
| all | |||
| {{ll|other}} | |||
| 1 | |||
| 2.0 | |||
|- | |||
| armysurplus | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| armysurplus | |||
| {{ll|counter}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| empty | |||
| {{ll|crate}} | |||
| 4 | |||
| 2.0 | |||
|} | |||
</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 02:41, 25 April 2024
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 |
---|---|---|---|---|---|
Candle |
One of: Lighter ×1 Matches ×1 Each of: Candle ×1 |
none | none | none | none |
Distribution
The loot distributions can be found in the table(s) below.
Candles can be found in wardrobes, counters and gift stores.
Code
Candle
Source: ProjectZomboid\media\scripts\items.txt
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
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,
}