Lighter: Difference between revisions
VaileasysBot (talk | contribs) m (→top: category project: "The Game World") |
(→Code: CodeBox update) |
||
Line 232: | Line 232: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = false | |||
| start = | |||
| source = items.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 65 | |||
| code = | |||
item Lighter | |||
{ | |||
DisplayCategory = LightSource, | |||
LightDistance = 2, | |||
Weight = 0.1, | |||
Type = Drainable, | |||
UseWhileEquipped = TRUE, | |||
TorchCone = FALSE, | |||
LightStrength = 0.4, | |||
DisplayName = Lighter, | |||
ActivatedItem = TRUE, | |||
Icon = Lighter, | |||
MetalValue = 1, | |||
cantBeConsolided = TRUE, | |||
StaticModel = Zippo, | |||
WorldStaticModel = ZippoGround, | |||
ticksPerEquipUse = 110, | |||
Tags = StartFire, | |||
} | |||
}} | |||
}} | |||
==History== | ==History== |
Revision as of 03:42, 1 February 2024
Lighter | ||
---|---|---|
| ||
General | ||
Category | Item | |
Encumbrance | 0.1 | |
Function |
Fire starting Light source | |
Capacity | 32 units | |
Contents | Lighter fluid | |
Light distance | 2 tiles | |
Light strength | 0.4 | |
Technical details | ||
item ID | Base.Lighter |
A lighter is a drainable item with various uses.
Usage
A lighter can be used to light candles, molotov cocktails, cigarettes, campfires, or antique ovens, burn corpses, or as a light source. In order to use a molotov, a lighter must be equipped in the secondary slot of the inventory. Corpses can be burnt if a lighter is in the primary slot and a gas can is in the secondary slot.
Light source
The light provided by a lighter is inferior to that of a flashlight, but will provide a ring of light around the player. If a flashlight isn't in the player's inventory, pressing the 'F' key (default) will equip a lighter and turn it on. Once equipped, pressing 'F' will turn it on or off.
Crafting
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 |
---|---|---|---|---|---|
Lit Candle |
0 XP | none | Candle (consumed) |
Distribution
Lighters can be found in many counters and on vehicle glove boxes and seats.
Buildings
Building/Room | Container | Rolls | Chance |
---|---|---|---|
All | Wardrobe | 4 | 2 |
Crate | 1 | 4 | |
Side Table | 1 | 2 | |
Bin | 1 | 2 | |
Office Drawers | 1 | 3 | |
Other | 1 | 3 | |
Garbage Bag | 1 | 1 | |
Bar | Shelves | 4 | 3 |
Counter | 2 | 3 | |
Bin | 1 | 2 | |
Convenience Store | Shelves | 4 | 2 (x3) |
Corner Store | Counter | 2 | 2 (x2) |
Counter | 2 | 2 (x2) | |
Fossoil | Counter | 4 | 2 (x2) |
Shelves | 4 | 2 (x2) | |
Crate | 4 | 2 (x2) | |
Grocery Storage | Bin | 1 | 2 |
Grocery | Counter | 4 | 2 (x2) |
Crate | 4 | 2 (x2) | |
Garage Storage | All | 2 | 3 (+2) |
Gas Store | Shelves | 5 | 2 |
Counter | 2 | 2 | |
Gas storage | Counter | 5 | 2 |
General Store | Other | 5 | 1 |
General Store Storage | Other | 5 | 1 |
Kitchen | Counter | 2 | 2 |
Mechanic | Metal Locker | 3 | 3 |
Motel Room (Occupied) | Bin | 1 | 2 |
Post Office | Counter | 2 | 1 |
Storage Unit | All | 3 | 2 |
Zippee Store | Counter | 1 | 2 (x3) |
Shelves | 4 | 2 (x2) | |
Crate | 4 | 2 (x2) |
Vehicles
Profession | Container | Rolls | Chance |
---|---|---|---|
All | Glove Box | 1 | 5 |
Car Seat | 1 | 1 |
Trivia
- The icon has similarities to that of a Zippo lighter which is a popular lighter in the U.S.A and founded in Pennsylvania. It became increasingly popular during World War II and the Vietnam War.
Code
Source: ProjectZomboid\media\scripts\items.txt
item Lighter
{
DisplayCategory = LightSource,
LightDistance = 2,
Weight = 0.1,
Type = Drainable,
UseWhileEquipped = TRUE,
TorchCone = FALSE,
LightStrength = 0.4,
DisplayName = Lighter,
ActivatedItem = TRUE,
Icon = Lighter,
MetalValue = 1,
cantBeConsolided = TRUE,
StaticModel = Zippo,
WorldStaticModel = ZippoGround,
ticksPerEquipUse = 110,
Tags = StartFire,
}
History
Alpha | |
---|---|
RC 2.9 | Added to the game |
2.9.9.17 Build 23 |
All light sources are a bit stronger |
Build 28 | Burn zombie corpses ! It'll need some petrol and a lighter/matches. |
Build 35 | Bug Fix: lighter can't be consolidated |