Lamp: Difference between revisions
(→Code: CodeBox update) |
m (Distribution table update) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Tiles|Lighting tiles}} | |||
{{Header | {{Page version|41.78.16}} | ||
{{ | {{Infobox tile | ||
{{ | |name=Lamp | ||
|icon=Lamp Striped.png | |||
| | |icon_name=Striped Lamp | ||
| | |icon2=Lamp Black.png | ||
| | |icon_name2=Black Lamp | ||
| category = | |icon3=Lamp Red.png | ||
| weight = | |icon_name3=Red Lamp | ||
| | |icon4=Lamp Grey.png | ||
| | |icon_name4=Gray Lamp | ||
|icon5=Lamp Blue.png | |||
|icon_name5=Blue Lamp | |||
|icon6=Lamp White.png | |||
|icon_name6=White Lamp | |||
|category=Furniture | |||
|weight=2 | |||
|size=1 | |||
|energy=[[Electricity]] | |||
|item_id=Base.Mov_Lamp1 | |||
|item_id2=Base.Mov_Lamp2 | |||
|item_id3=Base.Mov_Lamp3 | |||
|item_id4=Base.Mov_Lamp4 | |||
|item_id5=Base.Mov_Lamp5 | |||
|item_id6=Base.Mov_Lamp6 | |||
|item_id_more=Variants | |||
|tile_id=lighting_indoor_01_8 | |||
|tile_id2=lighting_indoor_01_9 | |||
|tile_id3=lighting_indoor_01_10 | |||
|tile_id4=lighting_indoor_01_11 | |||
|tile_id5=lighting_indoor_01_12 | |||
|tile_id6=lighting_indoor_01_13 | |||
|tile_id_more=Variants | |||
}} | }} | ||
A '''lamp''' is a [[Lighting|light source]] [[Tiles|tile]]. | |||
A '''lamp''' | |||
==Usage== | ==Usage== | ||
A lamp provides a source of light when placed. It can be turned on and off by left-clicking the tile. | |||
==Distribution== | ==Distribution== | ||
The lamp could be | The loot distributions can be found in the table(s) below. | ||
<!--BOT FLAG|Mov_Lamp1|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>Mov_Lamp1 distribution | |||
<span class="mw-customtoggle-togglebox-Mov_Lamp1" 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-Mov_Lamp1"> | |||
<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 | |||
|- | |||
| departmentstorage | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| electronicsstorage | |||
| {{ll|shelves}} | |||
| 1 | |||
| 50.0 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Mov_Lamp1" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Mov_Lamp1|41.78.16--> | |||
<!--BOT FLAG|Mov_Lamp2|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>Mov_Lamp2 distribution | |||
<span class="mw-customtoggle-togglebox-Mov_Lamp2" 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-Mov_Lamp2"> | |||
<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 | |||
|- | |||
| departmentstorage | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| electronicsstorage | |||
| {{ll|shelves}} | |||
| 1 | |||
| 50.0 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Mov_Lamp2" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Mov_Lamp2|41.78.16-->A | |||
lamp can be found in various places, including bedrooms, or on shelves in electronics stores. | |||
==Variants== | |||
{| class="wikitable theme-red" | |||
! Icon | |||
! Name | |||
! Item ID | |||
! Tile ID | |||
|- | |||
| [[File:Lamp Striped.png|32px]] | |||
| Striped Lamp | |||
| {{ID|Base.Mov_Lamp1}} | |||
| {{ID|lighting_indoor_01_8}} | |||
|- | |||
| [[File:Lamp Black.png|32px]] | |||
| Black Lamp | |||
| {{ID|Base.Mov_Lamp2}} | |||
| {{ID|lighting_indoor_01_9}} | |||
|- | |||
| [[File:Lamp Red.png|32px]] | |||
| Red Lamp | |||
| {{ID|Base.Mov_Lamp3}} | |||
| {{ID|lighting_indoor_01_10}} | |||
|- | |||
| [[File:Lamp Grey.png|32px]] | |||
| Gray Lamp | |||
| {{ID|Base.Mov_Lamp4}} | |||
| {{ID|lighting_indoor_01_11}} | |||
|- | |||
| [[File:Lamp Blue.png|32px]] | |||
| Blue Lamp | |||
| {{ID|Base.Mov_Lamp5}} | |||
| {{ID|lighting_indoor_01_12}} | |||
|- | |||
| [[File:Lamp White.png|32px]] | |||
| White Lamp | |||
| {{ID|Base.Mov_Lamp6}} | |||
| {{ID|lighting_indoor_01_13}} | |||
|} | |||
==Trivia== | |||
*The lamp was previously only an item and could not be placed. It was removed in [[build 41]] and replaced by the new moveables functionality. It had the following item ID: <code>{{ID|Base.Lamp}}</code>. | |||
==Code== | ==Code== | ||
{{CodeBox | {{CodeBox|'''''Important note: the item does not get all the values from this location. These values are overridden by the tile properties. The item ID will even be replaced by the tile ID as soon as it is placed, and is only used for item distribution.''''' | ||
| {{CodeSnip | |||
[[File:Lamp Striped.png|32px]] ''Striped Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 4378 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Mov_Lamp1 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_8, | |||
} | |||
}} | |||
[[File:Lamp Black.png|32px]] ''Black Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 4388 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Mov_Lamp2 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_9, | |||
} | |||
}} | |||
[[File:Lamp Red.png|32px]] ''Red Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 4398 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Mov_Lamp3 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_10, | |||
} | |||
}} | |||
[[File:Lamp Grey.png|32px]] ''Gray Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 4408 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = | | version = 41.78.16 | ||
| | | code = | ||
item Mov_Lamp4 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_11, | |||
} | |||
}} | |||
[[File:Lamp Blue.png|32px]] ''Blue Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 4418 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Mov_Lamp5 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_12, | |||
} | |||
}} | |||
[[File:Lamp White.png|32px]] ''White Lamp''<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 4428 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Mov_Lamp6 | |||
{ | |||
DisplayCategory = Furniture, | |||
Type = Moveable, | |||
Icon = default, | |||
Weight = 0.5, | |||
DisplayName = Moveable, | |||
WorldObjectSprite = lighting_indoor_01_13, | |||
} | |||
}} | |||
[[File:Lamp.png|32px]] ''Lamp''{{sup|removed}}<br> | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 1986 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Lamp | item Lamp | ||
{ | { | ||
DisplayCategory = Household, | |||
Weight = 0.2, | |||
Type = Normal, | |||
DisplayName = Lamp, | |||
Icon = Lamp, | |||
} | MetalValue = 12, | ||
OBSOLETE = TRUE, | |||
} | |||
}} | |||
}} | }} | ||
Revision as of 15:52, 24 April 2024
A lamp is a light source tile.
Usage
A lamp provides a source of light when placed. It can be turned on and off by left-clicking the tile.
Distribution
The loot distributions can be found in the table(s) below.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
departmentstorage | metal_shelves | 4 | 6.0 |
electronicsstorage | shelves | 1 | 50.0 |
Building / Room | Container | Rolls | Chance |
---|---|---|---|
departmentstorage | metal_shelves | 4 | 6.0 |
electronicsstorage | shelves | 1 | 50.0 |
A
lamp can be found in various places, including bedrooms, or on shelves in electronics stores.
Variants
Trivia
- The lamp was previously only an item and could not be placed. It was removed in build 41 and replaced by the new moveables functionality. It had the following item ID:
Base.Lamp
.
Code
Important note: the item does not get all the values from this location. These values are overridden by the tile properties. The item ID will even be replaced by the tile ID as soon as it is placed, and is only used for item distribution.
Striped Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp1
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_8,
}
Black Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp2
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_9,
}
Red Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp3
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_10,
}
Gray Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp4
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_11,
}
Blue Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp5
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_12,
}
White Lamp
Source: ProjectZomboid\media\scripts\newitems.txt
item Mov_Lamp6
{
DisplayCategory = Furniture,
Type = Moveable,
Icon = default,
Weight = 0.5,
DisplayName = Moveable,
WorldObjectSprite = lighting_indoor_01_13,
}
LampRemoved
Source: ProjectZomboid\media\scripts\newitems.txt
item Lamp
{
DisplayCategory = Household,
Weight = 0.2,
Type = Normal,
DisplayName = Lamp,
Icon = Lamp,
MetalValue = 12,
OBSOLETE = TRUE,
}