Bar Corner: Difference between revisions
m (Automated navbox update) |
m (IDs) |
||
Line 37: | Line 37: | ||
|products = | |products = | ||
<!--Technical details--> | <!--Technical details--> | ||
| | |item_id = Base.Movable | ||
|tile_id = carpentry_02_34 | |||
|tile_id2 = carpentry_02_26 | |||
|tile_id3 = carpentry_02_18 | |||
}} | }} | ||
Revision as of 23:27, 17 March 2024
This article may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.
Bar Corner
Technical
Item ID(s)
Base.Movable
Tile ID(s)
carpentry_02_34 carpentry_02_26 carpentry_02_18
“
A wooden counter, as perhaps found in a favored drinking den.
A bar corner is a craftable wooden container.
Usage
A bar corner can be used to store up to 50 weight worth of items.
Crafting
Crafting Requires a carpentry skill of 0. The quality of the construction is based off the players skill level, and increases at level 4 and 7.
Carpentry
- Main article: Carpentry
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 |
---|---|---|---|---|---|---|
Bar Corner |
1.25 Carpentry | Carpentry 7 | Hammer (tag) (keep) |
Plank x4 (consumed) |
Nails x4 (consumed) |
Crafting skill
Name | Sprite | Level |
---|---|---|
Poorly Crafted Corner Counter | Carpentry 0 | |
Crafted Corner Counter | Carpentry 4 | |
Quality Crafted Corner Counter | Carpentry 7 |
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
ISBuildMenu.getBarCornerSprites = function(player)
local spriteLvl = ISBuildMenu.getSpriteLvl(player);
local sprite = {};
if spriteLvl == 1 then
sprite.southSprite = "carpentry_02_32";
sprite.sprite = "carpentry_02_34";
sprite.northSprite = "carpentry_02_36";
sprite.eastSprite = "carpentry_02_38";
elseif spriteLvl == 2 then
sprite.southSprite = "carpentry_02_24";
sprite.sprite = "carpentry_02_26";
sprite.northSprite = "carpentry_02_28";
sprite.eastSprite = "carpentry_02_30";
else
sprite.southSprite = "carpentry_02_16";
sprite.sprite = "carpentry_02_18";
sprite.northSprite = "carpentry_02_20";
sprite.eastSprite = "carpentry_02_22";
end
return sprite;
end
ISBuildMenu.buildBarMenu = function(subMenu, option, player)
local barElemSprite = ISBuildMenu.getBarElementSprites(player);
local barElemOption = subMenu:addOption(getText("ContextMenu_Bar_Element"), worldobjects, ISBuildMenu.onBarElement, barElemSprite, player);
local tooltip = ISBuildMenu.canBuild(4,4,0,0,0,7,barElemOption, player);
tooltip:setName(getText("ContextMenu_Bar_Element"));
tooltip.description = getText("Tooltip_craft_barElementDesc") .. tooltip.description;
tooltip:setTexture(barElemSprite.sprite);
ISBuildMenu.requireHammer(barElemOption)
local barCornerSprite = ISBuildMenu.getBarCornerSprites(player);
local barCornerOption = subMenu:addOption(getText("ContextMenu_Bar_Corner"), worldobjects, ISBuildMenu.onBarElement, barCornerSprite, player);
local tooltip2 = ISBuildMenu.canBuild(4,4,0,0,0,7,barCornerOption, player);
tooltip2:setName(getText("ContextMenu_Bar_Corner"));
tooltip2.description = getText("Tooltip_craft_barElementDesc") .. tooltip2.description;
tooltip2:setTexture(barCornerSprite.sprite);
ISBuildMenu.requireHammer(barCornerOption)
if barElemOption.notAvailable and barCornerOption.notAvailable then
option.notAvailable = true;
end
end