Log Wall: Difference between revisions

From PZwiki
m (minor)
(Page updates, remove stub tag, add code)
Line 2: Line 2:
{{Header/sandbox2|Project Zomboid|Items|Construction|Carpentry}}
{{Header/sandbox2|Project Zomboid|Items|Construction|Carpentry}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Stub}}
{{Infobox tile
{{Infobox tile
|name = Log Wall
|name = Log Wall
|model = LogWall.png
|model = LogWall.png
|icon = LogWall.png
|icon = LogWall.png
|category = Movable
|category = Wall
|size = 1
|size = 1
<!--Properties-->
<!--Properties-->
|type = Wall
|health = See [[#Health]]
<!--Build-->
|build_skill= [[Carpentry]]
|build_level= 0
|build_tool_tag= Hammer
|ingredients = <small>4 × [[File:Logs.png|20px|link=Log]] [[Log]]<br>2 ×  [[File:Rope.png|20px|link=Rope]] [[Rope]]<br>or 4 × [[File:Ripped Sheets.png|20px|link=Ripped Sheets]] [[Ripped Sheets]]<br>or 4 × [[File:Twine.png|20px|link=Twine]] [[Twine]]</small>
<!--Disassemble-->
<!--Disassemble-->
|disassemble_skill = [[Carpentry]]
|disassemble_skill = [[Carpentry]]
Line 22: Line 26:


==Usage==
==Usage==
It can be used to improve [[carpentry]] early on. It requires a large number of resources to make, but can withstand a lot of damage. It will always appear crude and cannot be decorated like a constructed [[Wooden Wall|wooden wall]].
It can be used to improve [[carpentry]] early on, as it requires no carpentry level to construct, however, it requires a large number of raw materials. A log wall can withstand a lot of damage, particularly if the player as the [[skills|handy]] skill, which only applies to log walls. The log wall cannot be decorated like a [[Wooden Wall|wooden wall]].


Be aware that if [[rope]] is used to haul logs to the construction site, the ropes can be consumed when building the wall instead of [[Ripped Sheets|ripped sheets]]. Consider hauling logs first, putting away ropes, and then building the walls.
Be aware that if you have [[rope]] in your inventory, the ropes can be consumed when building the wall, instead of [[Ripped Sheets|ripped sheets]]. Consider putting ropes away before starting construction.


==Crafting==
==Crafting==
Line 33: Line 37:
==Health==
==Health==
{{Construction hp|log}}  
{{Construction hp|log}}  
==Code==
{{CodeBox
|{{CodeSnip
  | lang = java
  | line = false
  | retrieved = true
  | version = 41.78.16
  | code =
function ISWoodenWall:getHealth()
    if self.sprite == "carpentry_02_80" then -- log walls are stronger
    return 400 + buildUtil.getWoodHealth(self);
    else
        return 200 + buildUtil.getWoodHealth(self);
    end
end
buildUtil.getWoodHealth = function(ISItem)
if not ISItem or not ISItem.player then
return 100;
end
local playerObj = getSpecificPlayer(ISItem.player)
local health = (playerObj:getPerkLevel(Perks.Woodwork) * 50);
if playerObj:HasTrait("Handy") then
health = health + 100;
end
return health;
end
}}
}}


==See also==
==See also==

Revision as of 23:21, 24 February 2024

Template:Header/sandbox2

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Log Wall
LogWall.png
[[File:{{{icon2}}}|Log Wall|]]
[[File:{{{icon3}}}|Log Wall|]]
[[File:{{{icon4}}}|Log Wall|]]
[[File:{{{icon5}}}|Log Wall|]]
General
Category
Wall
Size
1 tile
Properties
Health
Build
Skill (level)
Tool(s)
Ingredients
4 × Logs.png Log
2 × Rope.png Rope
or 4 × Ripped Sheets.png Ripped Sheets
or 4 × Twine.png Twine
Disassemble
Skill (level)
Tool(s)
Technical
Item ID(s)
carpentry_02_80
carpentry_02_81

A log wall is a constructable wall that can be made by beginner carpenters.

Usage

It can be used to improve carpentry early on, as it requires no carpentry level to construct, however, it requires a large number of raw materials. A log wall can withstand a lot of damage, particularly if the player as the handy skill, which only applies to log walls. The log wall cannot be decorated like a wooden wall.

Be aware that if you have rope in your inventory, the ropes can be consumed when building the wall, instead of ripped sheets. Consider putting ropes away before starting construction.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
LogWall Carpentry.png
Log Wall
1.25 Carpentry none Hammer.png
Hammer (tag)
(keep)
Logs.png
Log x4
(consumed)
One of:
Ripped Sheets.png Ripped Sheets x4
Twine.png Twine x4
Rope.png Rope x2

(consumed)

Health

Calculations are based on log walls
Skill level HP without handy HP with handy
0 400 HP 500 HP
1 450 HP 550 HP
2 500 HP 600 HP
3 550 HP 650 HP
4 600 HP 700 HP
5 650 HP 750 HP
6 700 HP 800 HP
7 750 HP 850 HP
8 800 HP 900 HP
9 850 HP 950 HP
10 900 HP 1000 HP

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
function ISWoodenWall:getHealth()
    if self.sprite == "carpentry_02_80" then -- log walls are stronger
	    return 400 + buildUtil.getWoodHealth(self);
    else
        return 200 + buildUtil.getWoodHealth(self);
    end
end

buildUtil.getWoodHealth = function(ISItem)
	if not ISItem or not ISItem.player then
		return 100;
	end
	local playerObj = getSpecificPlayer(ISItem.player)
	local health = (playerObj:getPerkLevel(Perks.Woodwork) * 50);
	if playerObj:HasTrait("Handy") then
		health = health + 100;
	end
	return health;
end

See also