Lamp on Pillar: Difference between revisions
m (Minor cleanup) |
(Added infobox, adjusted header, and rewrote some parts, and standardised format.) |
||
Line 1: | Line 1: | ||
{{Languages}}{{Header|The Game World| | {{Languages}}{{Header|The Game World|Tiles|Furniture|type=Furniture|version=Version 41|incver=78.16}} | ||
[[File: | {{Infobox furniture | ||
|display_name = Lamp on Pillar | |||
|name_colour = Furniture | |||
|name_text_colour = Furniture | |||
|image = LamponPillar_Carpentry.png | |||
|image_width = 128px | |||
|category = Furniture | |||
|weight = 2 | |||
|size = 1 | |||
<!--Properties--> | |||
|function = Light source | |||
<!--Build--> | |||
|build_skill = [[Carpentry]] | |||
|build_level = 4 | |||
|build_tool = <small>One of:<br>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]<br>[[File:BallPeenHammer.png|20px|link=Ball-peen Hammer]] [[Ball-peen Hammer]]</small> | |||
|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> | |||
<!--Move--> | |||
|move_skill = [[Carpentry]] | |||
|move_level = 1 | |||
|move_tool = <small>One of:<br>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]<br>[[File:BallPeenHammer.png|20px|link=Ball-peen Hammer]] [[Ball-peen Hammer]]</small> | |||
<!--Disassemble--> | |||
|disassemble_skill = [[Carpentry]] | |||
|disassemble_level = 0 | |||
|disassemble_tool = <small>One of:<br>[[File:Saw.png|20px|link=Saw]] [[Saw]] <br> [[File:Handsaw.png|20px|link=Garden Saw]] [[Garden Saw]] | |||
---- | |||
[[File:Screwdriver.png|20px|link=Screwdriver]] [[Screwdriver]]</small> | |||
|products = | |||
<!--Technical details--> | |||
|class_name = Base.Movable | |||
}} | |||
'''Lamp on pillar''' is a [[Crafting|craftable]] [[light sources|light source]]. | |||
__TOC__ | |||
==Usage== | |||
The lamp on pillar is used as a light source, not requiring a power source. light an area so long as the [[flashlight]] has power. It can be used for marking areas in the dark or more for cosmetic usage ingame for bases. | |||
The lamp on pillar requires a [[battery]] as a fuel source. A battery can be inserted or removed via the contextual menu after 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 on and off can be selected via the contextual menu. | |||
The lamp on pillar is most useful after the [[electricity]] has shutoff, is 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 [[Tiles/Lighting|lights]] can be powered by a [[generator]]. | |||
==Crafting== | ==Crafting== | ||
Crafting requires a [[carpentry]] skill of 4. | |||
Like other 'buildables', the [[player]] must have a [[hammer]] in their main inventory, ''right-click'' in the world, then select "Carepentry" in the contextual menu. | |||
{{Crafting header|ing=4}} | {{Crafting header|ing=4}} | ||
{{Crafting carpentry|402|ing=4}} | {{Crafting carpentry|402|ing=4}} | ||
|} | |} | ||
==Gallery== | |||
<gallery> | |||
File:Lamp on Pillar Article Img2.png|Screenshot of Lamp on Pillar in [[Build 36|Build 36.40]]. | |||
</gallery> | |||
==Code== | ==Code== |
Revision as of 14:28, 2 June 2023
Lamp on Pillar | |
---|---|
General | |
Category | Furniture |
Encumbrance | 2 |
Size | 1 tile |
Properties | |
Function | Light source |
Build | |
Skill (Level) | Carpentry (4) |
Tool(s) |
One of: Hammer Stone Hammer Ball-peen Hammer |
Ingredients |
2 × Plank 4 × Nails 1 × Flashlight 1 × Rope |
Move | |
Skill (Level) | Carpentry (1) |
Tool(s) |
One of: Hammer Stone Hammer Ball-peen Hammer |
Disassemble | |
Skill (Level) | Carpentry (0) |
Tool(s) |
One of: Screwdriver |
Technical details | |
Base ID | Base.Movable |
Lamp on pillar is a craftable light source.
Usage
The lamp on pillar is used as a light source, not requiring a power source. light an area so long as the flashlight has power. It can be used for marking areas in the dark or more for cosmetic usage ingame for bases.
The lamp on pillar requires a battery as a fuel source. A battery can be inserted or removed via the contextual menu after 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 on and off can be selected via the contextual menu.
The lamp on pillar is most useful after the electricity has shutoff, is 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.
Like other 'buildables', the player must have a hammer in their main inventory, right-click in the world, then select "Carepentry" in the contextual menu.
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 |
---|---|---|---|---|---|---|---|
Lamp on Pillar |
1.25 Carpentry | Carpentry 4 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) |
Rope x1 (consumed) |
Gallery
Screenshot of Lamp on Pillar in Build 36.40.
Code
From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)
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 getCell():setDrag(lamp, player); end