Lamp: Difference between revisions

From PZwiki
m (category & header updates)
m (Distribution table update)
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Tiles|Lighting tiles}}
{{Header/sandbox2|Project Zomboid|Items}}
{{Page version|41.78.16}}
{{page version|41.78.16}}
{{Infobox tile
{{Obsolete|build 41|Lighting#Lamps|item=true}}
|name=Lamp
{{Infobox item
|icon=Lamp Striped.png
| display_name = Lamp
|icon_name=Striped Lamp
| icon = Lamp.png
|icon2=Lamp Black.png
| model_width = 128px
|icon_name2=Black Lamp
| category = Household
|icon3=Lamp Red.png
| weight = 0.2
|icon_name3=Red Lamp
| function = ''None''
|icon4=Lamp Grey.png
| class_name = Base.Lamp
|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
}}
}}
{{About|the item found in stores|the furniture item|Lighting#Lamps}}
A '''lamp''' is a [[Lighting|light source]] [[Tiles|tile]].
A '''lamp''' was a useless item, and often considered as ''junk''.


==Usage==
==Usage==
This lamp had no use, being added purely for the purpose of clutter, creating more realism for the player when looting. It was replaced by findable movable items in [[build 41]].
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 found in houseware and electrical stores.
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==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{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.'''''
{{Retrieved|version=40.43}}
 
<pre>
[[File:Lamp Striped.png|32px]] ''Striped Lamp''<br>
item Lamp
{{CodeSnip
Weight = 0.2,
  | lang = java
Type = Normal,
  | line = true
DisplayName = Lamp,
  | start = 4378
Icon = Lamp,
  | source = newitems.txt
MetalValue = 12,
  | retrieved = true
</pre>
  | 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
  | line = true
  | start = 4408
  | source = newitems.txt
  | retrieved = true
  | 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 =
item Lamp
{
    DisplayCategory = Household,
        Weight = 0.2,
        Type = Normal,
        DisplayName = Lamp,
        Icon = Lamp,
        MetalValue = 12,
        OBSOLETE = TRUE,
    }
}}
}}


==See also==
==See also==
*[[Lighting]]
*[[Lighting]]
*[[Light Bulb]]
*[[Light Bulb]]

Revision as of 15:52, 24 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]
Lamp
Lamp Striped.png
Lamp Black.png
Lamp Red.png
Lamp Grey.png
Lamp Blue.png
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
2
Size
1 tile
Properties
Energy source
Technical
Item ID(s)
Base.Mov_Lamp1
Base.Mov_Lamp2
Base.Mov_Lamp3
Base.Mov_Lamp4
Base.Mov_Lamp5
Base.Mov_Lamp6

[See all]
Tile ID(s)
lighting_indoor_01_8 lighting_indoor_01_9 lighting_indoor_01_10 lighting_indoor_01_11 lighting_indoor_01_12 lighting_indoor_01_13
[See all]

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.

Mov_Lamp1 distribution Show / Hide
Containers
Building / Room Container Rolls Chance
departmentstorage metal_shelves 4 6.0
electronicsstorage shelves 1 50.0
Mov_Lamp2 distribution Show / Hide
Containers
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

Icon Name Item ID Tile ID
Lamp Striped.png Striped Lamp Base.Mov_Lamp1 lighting_indoor_01_8
Lamp Black.png Black Lamp Base.Mov_Lamp2 lighting_indoor_01_9
Lamp Red.png Red Lamp Base.Mov_Lamp3 lighting_indoor_01_10
Lamp Grey.png Gray Lamp Base.Mov_Lamp4 lighting_indoor_01_11
Lamp Blue.png Blue Lamp Base.Mov_Lamp5 lighting_indoor_01_12
Lamp White.png White Lamp Base.Mov_Lamp6 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: Base.Lamp.

Code

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

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.

Lamp Striped.png Striped Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp1
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_8,
    }

Lamp Black.png Black Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp2
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_9,
    }

Lamp Red.png Red Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp3
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_10,
    }

Lamp Grey.png Gray Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp4
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_11,
    }

Lamp Blue.png Blue Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp5
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_12,
    }

Lamp White.png White Lamp
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Mov_Lamp6
    {
        DisplayCategory = Furniture,
        Type			= Moveable,
        Icon			= default,
        Weight          	= 0.5,
        DisplayName		= Moveable,
        WorldObjectSprite	= lighting_indoor_01_13,
    }

Lamp.png LampRemoved
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Lamp
	{
	    DisplayCategory = Household,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	Lamp,
        Icon	=	Lamp,
        MetalValue = 12,
        OBSOLETE = TRUE,
    }

See also