Lamp on Pillar: Difference between revisions
(Automated infobox update) |
m (Automatic formatting) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Tiles|Lighting tiles}} | ||
{{Page version|41.78.16}} | |||
{{ | |||
{{Infobox tile | {{Infobox tile | ||
|name | |name=Lamp on Pillar | ||
|model=LamponPillar_Carpentry.png | |||
|icon=LamponPillar_Carpentry.png | |||
|model | |category=Furniture | ||
| | |weight=2 | ||
|category | |size=1 | ||
|weight | |||
|size | |||
<!--Properties--> | <!--Properties--> | ||
|function | |function=Light source | ||
<!--Build--> | <!--Build--> | ||
|build_skill | |build_skill=[[Carpentry]] | ||
|build_level | |build_level=4 | ||
| | |build_tool_tag=Hammer | ||
|ingredients | |ingredients=<small>2 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>4 × [[File:Nails.png|20px|link=Nails]] [[Nails]]<br>1 × [[File:Flashlight.png|20px|link=Flashlight]] [[Flashlight]]<br>1 × [[File:Rope.png|20px|link=Rope]] [[Rope]]</small> | ||
<!--Technical details--> | <!--Technical details--> | ||
| | |tile_id=carpentry_02_61 | ||
}} | }} | ||
'''Lamp on pillar''' is a [[Crafting|craftable]] [[light sources|light source]]. | '''Lamp on pillar''' is a [[Crafting|craftable]] [[light sources|light source]]. | ||
==Usage== | ==Usage== | ||
The lamp on pillar is used as a light source, | The lamp on pillar is used as a light source, which uses [[Battery|batteries]] for power. It will light an area so long as the battery has charge. It can be used when the power is out, but the player does not have access to a [[generator]], or as additional lighting. | ||
The lamp on pillar requires a [[battery]] as a fuel source. A battery can be inserted or removed via the | The lamp on pillar requires a [[battery]] as a fuel source. A battery can be inserted or removed via the context menu, by right-clicking the lamp on pillar and selecting "insert fuel" or "remove battery". The battery is slowly drained while the lamp on pillar is turned on. Turning the light on and off can be done via the context menu. | ||
The lamp on pillar is most useful after the [[electricity]] has shutoff, as it is not powered by the electrical grid. However, this is only useful so long as the [[Player]] has a supply of batteries, making it very situational, considering other [[Lighting|lights]] can be powered by a [[generator]]. | The lamp on pillar is most useful after the [[electricity]] has shutoff, as it is not powered by the electrical grid. However, this is only useful so long as the [[Player|player]] has a supply of batteries, making it very situational, considering other [[Lighting|lights]] can be powered by a [[generator]]. | ||
==Crafting== | ==Crafting== | ||
Crafting requires a [[carpentry]] skill of 4. | Crafting requires a [[carpentry]] skill of 4. | ||
===Carpentry=== | |||
{{Crafting header|ing= | {{Crafting header|ing=5}} | ||
{{Crafting carpentry|402|ing= | {{Crafting carpentry|402|ing=5}} | ||
|} | |} | ||
==Code== | ==Code== | ||
{{CodeBox| | |||
{{CodeSnip | |||
| lang = lua | |||
| line = true | |||
| start = 943 | |||
| source = IsBuildMenu.lua | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player) | ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player) | ||
-- sprite, northSprite | -- sprite, northSprite | ||
Line 72: | Line 62: | ||
lamp.radius = 10; | lamp.radius = 10; | ||
lamp.player = player | lamp.player = player | ||
lamp.completionSound = "BuildWoodenStructureLarge" | |||
getCell():setDrag(lamp, player); | getCell():setDrag(lamp, player); | ||
end | end | ||
}} | |||
}} | |||
==See also== | ==See also== | ||
*[[Carpentry]] | *[[Carpentry]] | ||
*[[Battery]] | |||
*[[Light sources]] | |||
{{Navbox construction}} | {{Navbox construction|carpentry}} | ||
[[Category:Spiffo's Construction Crew (Project)]] | [[Category:Spiffo's Construction Crew (Project)]] |
Revision as of 16:55, 25 March 2024
Lamp on pillar is a craftable light source.
Usage
The lamp on pillar is used as a light source, which uses batteries for power. It will light an area so long as the battery has charge. It can be used when the power is out, but the player does not have access to a generator, or as additional lighting.
The lamp on pillar requires a battery as a fuel source. A battery can be inserted or removed via the context menu, by right-clicking the lamp on pillar and selecting "insert fuel" or "remove battery". The battery is slowly drained while the lamp on pillar is turned on. Turning the light on and off can be done via the context menu.
The lamp on pillar is most useful after the electricity has shutoff, as it is not powered by the electrical grid. However, this is only useful so long as the player has a supply of batteries, making it very situational, considering other lights can be powered by a generator.
Crafting
Crafting requires a carpentry skill of 4.
Carpentry
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 | Ingredient 5 |
---|---|---|---|---|---|---|---|---|
Lamp on Pillar |
1.25 Carpentry | Carpentry 4 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) |
Rope x1 (consumed) |
Flashlight x1 (consumed) |
Code
Source: ProjectZomboid\media\scripts\IsBuildMenu.lua
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
-- sprite, northSprite
local lamp = ISLightSource:new(sprite.sprite, sprite.northSprite, getSpecificPlayer(player));
lamp.offsetX = 5;
lamp.offsetY = 5;
lamp.modData["need:Base.Plank"] = "2";
lamp.modData["need:Base.Rope"] = "1";
lamp.modData["need:Base.Nails"] = "4";
lamp.modData["xp:Woodwork"] = 5;
-- lamp.modData["need:Base.Torch"] = "1";
lamp:setEastSprite(sprite.eastSprite);
lamp:setSouthSprite(sprite.southSprite);
lamp.fuel = "Base.Battery";
lamp.baseItem = "Base.Torch";
lamp.radius = 10;
lamp.player = player
lamp.completionSound = "BuildWoodenStructureLarge"
getCell():setDrag(lamp, player);
end