Table with Drawer: Difference between revisions
m (Automated navbox update) |
(Version bump, infobox update) |
||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Tiles|Container tiles}} | {{Header|Project Zomboid|Tiles|Container tiles}} | ||
{{Page version| | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
|name = Table with Drawer | |name = Table with Drawer | ||
Line 35: | Line 34: | ||
|disassemble_tool_tag = Hammer | |disassemble_tool_tag = Hammer | ||
|disassemble_tool_tag2 = Saw | |disassemble_tool_tag2 = Saw | ||
|products | |products = | ||
<!--Technical details--> | <!--Technical details--> | ||
| | |tile_id = carpentry_02_0 | ||
|tile_id2 = carpentry_02_4 | |||
|tile_id3 = carpentry_02_8 | |||
}} | }} | ||
Line 72: | Line 73: | ||
| [[Carpentry]] 7 | | [[Carpentry]] 7 | ||
|} | |} | ||
==Code== | |||
{{CodeBox| | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 1247 | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
local drawerSprite = ISBuildMenu.getTableWithDrawerSprites(player); | |||
local drawerTableOption = subMenuTable:addOption(getText("ContextMenu_Table_with_Drawer"), worldobjects, ISBuildMenu.onSmallWoodTableWithDrawer, square, drawerSprite, player); | |||
local tooltip3 = ISBuildMenu.canBuild(5,4,0,0,0,5,drawerTableOption, player); | |||
-- we add that we need a Drawer too | |||
local drawer = ISBuildMenu.countMaterial(player, "Base.Drawer"); | |||
if not playerInv:containsTypeRecurse("Drawer") then | |||
tooltip3.description = tooltip3.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Drawer") .. " " .. drawer .. "/1 <LINE>"; | |||
if not ISBuildMenu.cheat then | |||
drawerTableOption.onSelect = nil; | |||
drawerTableOption.notAvailable = true; | |||
end | |||
else | |||
tooltip3.description = tooltip3.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Drawer") .. " " .. drawer .. "/1 <LINE>"; | |||
end | |||
tooltip3:setName(getText("ContextMenu_Table_with_Drawer")); | |||
tooltip3.description = getText("Tooltip_craft_tableDrawerDesc") .. tooltip3.description; | |||
tooltip3:setTexture(drawerSprite.sprite); | |||
ISBuildMenu.requireHammer(drawerTableOption) | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 07:41, 12 March 2024
Table with Drawer
Technical
Tile ID(s)
carpentry_02_0 carpentry_02_4 carpentry_02_8
“
Comes with a drawer to keep useful gear inside.
A table with drawer is a craftable container.
Usage
A table with drawer can be used to store up to 10 weight worth of items. Due to the minimal storage this container is used more for aesthetic purposes than practical reasons.
Crafting
Crafting requires a carpentry skill of 5.
Carpentry
- Main article: Carpentry
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 |
---|---|---|---|---|---|---|---|
Table with Drawer |
1.25 Carpentry | Carpentry 5 | Hammer (tag) (keep) |
Plank x5 (consumed) |
Nails x4 (consumed) |
Drawer x1 (consumed) |
Crafting skill
Name | Sprite | Level |
---|---|---|
Shoddy Table | Carpentry 0 | |
Quality Table | Carpentry 4 | |
Medium Counter | Carpentry 7 |
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
local drawerSprite = ISBuildMenu.getTableWithDrawerSprites(player);
local drawerTableOption = subMenuTable:addOption(getText("ContextMenu_Table_with_Drawer"), worldobjects, ISBuildMenu.onSmallWoodTableWithDrawer, square, drawerSprite, player);
local tooltip3 = ISBuildMenu.canBuild(5,4,0,0,0,5,drawerTableOption, player);
-- we add that we need a Drawer too
local drawer = ISBuildMenu.countMaterial(player, "Base.Drawer");
if not playerInv:containsTypeRecurse("Drawer") then
tooltip3.description = tooltip3.description .. ISBuildMenu.bhs .. getItemNameFromFullType("Base.Drawer") .. " " .. drawer .. "/1 <LINE>";
if not ISBuildMenu.cheat then
drawerTableOption.onSelect = nil;
drawerTableOption.notAvailable = true;
end
else
tooltip3.description = tooltip3.description .. ISBuildMenu.ghs .. getItemNameFromFullType("Base.Drawer") .. " " .. drawer .. "/1 <LINE>";
end
tooltip3:setName(getText("ContextMenu_Table_with_Drawer"));
tooltip3.description = getText("Tooltip_craft_tableDrawerDesc") .. tooltip3.description;
tooltip3:setTexture(drawerSprite.sprite);
ISBuildMenu.requireHammer(drawerTableOption)