Wooden Wall: Difference between revisions
m (Change to match the description from the Wooden Window page) |
(Content updates, infobox, cleanup, formatting) |
||
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}} | ||
{{Infobox tile | {{Infobox tile | ||
|name=Wooden Wall | |name=Wooden Wall | ||
Line 15: | Line 14: | ||
|icon_name3=Level 1 Wooden Wall Lvl 3 | |icon_name3=Level 1 Wooden Wall Lvl 3 | ||
|function=Protect the player from [[zombies]] and [[weather]] | |function=Protect the player from [[zombies]] and [[weather]] | ||
<!--Build--> | |||
|crafting= | |||
|build_skill=[[Carpentry]] | |||
|build_level=2, 4, 7 | |||
|build_tool_tag= Hammer | |||
|ingredients = <small>2 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>4 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small> | |||
<!--Disassemble--> | |||
|disassemble_skill= [[Carpentry]] | |||
|disassemble_level= 0 | |||
|disassemble_tool_tag= Hammer | |||
|disassemble_tool_tag2= Saw | |||
}} | }} | ||
A '''wooden wall''' is a constructable wall used for shelter and defense. | |||
A '''wooden wall''' is a | |||
== | ==Usage== | ||
All wooden walls require the player to have a [[hammer]], [[plank]]s, and [[nails]] to construct. The strength of the wall itself is dependent on the level of wall built, and the [[player]]'s [[carpentry]] skill level. Contrary to its description, the [[Traits|handy]] trait only effects [[Log Wall|log walls]]. | |||
===Crafting=== | |||
To construct a wooden wall the player must be at least [[carpentry]] level 2, and have already constructed either a [[Wooden Wall Frame|wooden wall frame]] or a [[Metal Wall Frame|metalwall frame]]. The plyer can then right click on the frame, and choose the level of wall they wish to construct, so long as they meet the construction requirements. | |||
{{Crafting header|ing=4}} | {{Crafting header|ing=4}} | ||
{{Crafting carpentry|502|ing=4}} | {{Crafting carpentry|502|ing=4}} | ||
{{Crafting carpentry|503|ing=4}} | {{Crafting carpentry|503|ing=4}} | ||
Line 35: | Line 43: | ||
|} | |} | ||
=== | ===Health=== | ||
The HP of a wall in Project Zomboid is determined based on its base material, the skill level of the builder, and the wall's level. A [[carpentry]] level 10 [[Log Wall|log wall]] with [[traits|handy]] has more HP than a level 10 wood wall with a metal frame. | |||
The HP of a wall in Project Zomboid is determined based on its base material, the skill level of the builder, and the wall's level. | |||
{{Construction hp|wood|wood}} | {{Construction hp|wood|wood}} | ||
Line 50: | Line 50: | ||
{{Construction hp|wood|metal}} | {{Construction hp|wood|metal}} | ||
== | ==Trivia== | ||
* | *Wooden walls can be painted after [[Bucket of Plaster|plstering]], by using [[paint]] and a [[paintbrush]]. | ||
*The highest possible HP for a wall is a [[metalworking]] level 10 [[Metal Wall|metal wall]] (level 2), with a [[Metal Wall Frame|metal frame]], at 1070 HP. | |||
==Gallery== | |||
<Gallery> | |||
Wall_Construction.png|In-game screenshot of wooden walls at different levels in order from left to right. | |||
Wall Construction 2.png|Right-clicking on the wooden frame displays the upgrade menu. | |||
</Gallery> | |||
==Code== | ==Code== | ||
{{CodeBox | {{CodeBox| | ||
{{CodeSnip | |||
| lang = | | lang = lua | ||
| line = | | line = false | ||
| retrieved = true | | retrieved = true | ||
| version = 41.78.16 | | version = 41.78.16 | ||
Line 168: | Line 172: | ||
XP:Woodwork=30, | XP:Woodwork=30, | ||
} | } | ||
}} | }} | ||
{{CodeSnip | |||
| lang = java | |||
| line = false | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
public void doStage(IsoGameCharacter isoGameCharacter, IsoThumpable isoThumpable, boolean bl) { | |||
int n = isoThumpable.getHealth(); | |||
int n2 = isoThumpable.getMaxHealth(); | |||
String string = this.sprite; | |||
if (isoThumpable.north) { | |||
string = this.northSprite; | |||
} | |||
IsoThumpable isoThumpable2 = new IsoThumpable(IsoWorld.instance.getCell(), isoThumpable.square, string, isoThumpable.north, isoThumpable.getTable()); | |||
isoThumpable2.setCanBePlastered(this.canBePlastered); | |||
if ("doorframe".equals(this.wallType)) { | |||
isoThumpable2.setIsDoorFrame(true); | |||
isoThumpable2.setCanPassThrough(true); | |||
isoThumpable2.setIsThumpable(isoThumpable.isThumpable()); | |||
} | |||
int n3 = this.bonusHealth; | |||
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) { | |||
// Code edited out by Ed because we are using default values | |||
} | |||
Iterator<String> iterator = this.perks.keySet().iterator(); | |||
int n4 = 20; | |||
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) { | |||
// Code edited out by Ed because we are using default values | |||
} | |||
int n5 = 0; | |||
if (this.bonusHealthSkill) { | |||
while (iterator.hasNext()) { | |||
String string2 = iterator.next(); | |||
n5 += isoGameCharacter.getPerkLevel(PerkFactory.Perks.FromString(string2)) * n4; | |||
} | |||
} | |||
isoThumpable2.setMaxHealth(n2 + n3 + n5); | |||
isoThumpable2.setHealth(n + n3 + n5); | |||
}} | |||
}} | }} | ||
==See also== | ==See also== | ||
*[[Wooden Wall Frame]] | |||
*[[Wooden Door]] | |||
*[[Carpentry]] | *[[Carpentry]] | ||
Revision as of 02:42, 25 February 2024
A wooden wall is a constructable wall used for shelter and defense.
Usage
All wooden walls require the player to have a hammer, planks, and nails to construct. The strength of the wall itself is dependent on the level of wall built, and the player's carpentry skill level. Contrary to its description, the handy trait only effects log walls.
Crafting
To construct a wooden wall the player must be at least carpentry level 2, and have already constructed either a wooden wall frame or a metalwall frame. The plyer can then right click on the frame, and choose the level of wall they wish to construct, so long as they meet the construction requirements.
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 |
---|---|---|---|---|---|---|---|
Wooden Wall Lvl 1 |
2.5 Carpentry | Carpentry 2 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) | ||
Wooden Wall Lvl 2 |
5 Carpentry | Carpentry 4 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) | ||
Wooden Wall Lvl 3 |
7.5 Carpentry | Carpentry 7 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) | ||
Upgrade Wooden Wall From Lvl 1 to Lvl 2 |
2.5 Carpentry | Carpentry 4 | Hammer (tag) (keep) |
Wooden Wall Lvl 1 |
Plank x1 (consumed) |
Nails x4 (consumed) | |
Upgrade Wooden Wall From Lvl 1 to Lvl 3 |
5 Carpentry | Carpentry 7 | Hammer (tag) (keep) |
Wooden Wall Lvl 1 |
Plank x2 (consumed) |
Nails x8 (consumed) | |
Upgrade Wooden Wall From Lvl 2 to Lvl 3 |
2.5 Carpentry | Carpentry 7 | Hammer (tag) (keep) |
Wooden Wall Lvl 2 |
Plank x1 (consumed) |
Nails x4 (consumed) |
Health
The HP of a wall in Project Zomboid is determined based on its base material, the skill level of the builder, and the wall's level. A carpentry level 10 log wall with handy has more HP than a level 10 wood wall with a metal frame.
Skill level | Level 1 wall | Level 2 wall | Level 3 wall |
---|---|---|---|
2 | 490 HP | - | - |
3 | 510 HP | - | - |
4 | 530 HP | 630 HP | - |
5 | 550 HP | 650 HP | - |
6 | 570 HP | 670 HP | - |
7 | 590 HP | 690 HP | 790 HP |
8 | 610 HP | 710 HP | 810 HP |
9 | 630 HP | 730 HP | 830 HP |
10 | 650 HP | 750 HP | 850 HP |
Skill level | Level 1 wall | Level 2 wall | Level 3 wall |
---|---|---|---|
2 | 560 HP | - | - |
3 | 580 HP | - | - |
4 | 600 HP | 700 HP | - |
5 | 620 HP | 720 HP | - |
6 | 640 HP | 740 HP | - |
7 | 660 HP | 760 HP | 860 HP |
8 | 680 HP | 780 HP | 880 HP |
9 | 700 HP | 800 HP | 900 HP |
10 | 720 HP | 820 HP | 920 HP |
Trivia
- Wooden walls can be painted after plstering, by using paint and a paintbrush.
- The highest possible HP for a wall is a metalworking level 10 metal wall (level 2), with a metal frame, at 1070 HP.
Gallery
Code
multistagebuild CreateWoodenWall_1
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl1,
TimeNeeded:250,
BonusHealth:400,
SkillRequired:Woodwork=2,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_44,
NorthSprite:walls_exterior_wooden_01_45,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 1,
XP:Woodwork=10,
}
multistagebuild UpgradeWoodenWall_1To2
{
PreviousStage:WoodenWallLvl1,
Name:WoodenWallLvl2,
TimeNeeded:200,
BonusHealth:100,
BonusSkill:FALSE,
SkillRequired:Woodwork=4,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_40,
NorthSprite:walls_exterior_wooden_01_41,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 2,
XP:Woodwork=10,
}
multistagebuild CreateWoodenWall_2
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl2,
TimeNeeded:250,
BonusHealth:500,
SkillRequired:Woodwork=4,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_40,
NorthSprite:walls_exterior_wooden_01_41,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 2,
XP:Woodwork=20,
}
multistagebuild UpgradeWoodenWall_1To3
{
PreviousStage:WoodenWallLvl1,
Name:WoodenWallLvl3,
TimeNeeded:220,
BonusHealth:200,
BonusSkill:FALSE,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=2;Base.Nails=8,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 3,
XP:Woodwork=20,
}
multistagebuild UpgradeWoodenWall_2To3
{
PreviousStage:WoodenWallLvl2,
Name:WoodenWallLvl3,
TimeNeeded:200,
BonusHealth:100,
BonusSkill:FALSE,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 32,
XP:Woodwork=10,
}
multistagebuild CreateWoodenWall_3
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl3,
TimeNeeded:250,
BonusHealth:600,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 3,
XP:Woodwork=30,
}
public void doStage(IsoGameCharacter isoGameCharacter, IsoThumpable isoThumpable, boolean bl) {
int n = isoThumpable.getHealth();
int n2 = isoThumpable.getMaxHealth();
String string = this.sprite;
if (isoThumpable.north) {
string = this.northSprite;
}
IsoThumpable isoThumpable2 = new IsoThumpable(IsoWorld.instance.getCell(), isoThumpable.square, string, isoThumpable.north, isoThumpable.getTable());
isoThumpable2.setCanBePlastered(this.canBePlastered);
if ("doorframe".equals(this.wallType)) {
isoThumpable2.setIsDoorFrame(true);
isoThumpable2.setCanPassThrough(true);
isoThumpable2.setIsThumpable(isoThumpable.isThumpable());
}
int n3 = this.bonusHealth;
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) {
// Code edited out by Ed because we are using default values
}
Iterator<String> iterator = this.perks.keySet().iterator();
int n4 = 20;
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) {
// Code edited out by Ed because we are using default values
}
int n5 = 0;
if (this.bonusHealthSkill) {
while (iterator.hasNext()) {
String string2 = iterator.next();
n5 += isoGameCharacter.getPerkLevel(PerkFactory.Perks.FromString(string2)) * n4;
}
}
isoThumpable2.setMaxHealth(n2 + n3 + n5);
isoThumpable2.setHealth(n + n3 + n5);