Wooden Doorframe: Difference between revisions
VaileasysBot (talk | contribs) m (clean up, replaced: wikitable → pztable) |
m (Simplified redundant links) |
||
(39 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Tiles|Barriers|Wall tiles}} | |||
{{ | {{Page version|41.78.16}} | ||
{{Infobox tile | |||
|name=Wooden Door Frame | |||
|model=WoodenDoorframe1_Carpentry.png | |||
|icon=WoodenDoorframe1 Carpentry.png | |||
|model2=WoodenDoorframe2_Carpentry.png | |||
== | |icon2=WoodenDoorframe2 Carpentry.png | ||
|model3=WoodenDoorframe3_Carpentry.png | |||
|icon3=WoodenDoorframe3 Carpentry.png | |||
|function=Protect the player from [[zombies]] and [[weather]] | |||
<!--Build--> | |||
|build_skill=[[Carpentry]] | |||
|build_level=2, 4, 7 | |||
|build_tool_tag=Hammer | |||
|ingredients=<small>4 × [[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 | |||
|tile_id=walls_exterior_wooden_01_54 | |||
|tile_id2=walls_exterior_wooden_01_50 | |||
|tile_id3=walls_exterior_wooden_01_34 | |||
}} | |||
A '''wooden doorframe''' is a constructable wall used for shelter and defense. | |||
==Usage== | |||
Wooden doorframes are a defensive structure from the [[carpentry]] skill that are used to hold constructable doors for the player to enter/exit. This allows the player easy access to their structure without risking climbing over a wall, or having an exposed gap for zombies to enter through. Doorframes are not attacked by zombies, but the [[Door|wooden doors]] built into them can be destroyed by zombies. If a door is missing or destroyed, zombies will walk through the door. | |||
Wooden | Wooden doorframes can be destroyed with a [[sledgehammer]]. They can also be plastered and painted using [[paint]] and a [[paintbrush]]. | ||
===Crafting=== | |||
To build a wooden doorframe, a player must have a [[hammer]], [[plank]]s, and [[nails]] in their inventory, or on the ground within reach. They must also have at least level 2 [[carpentry]]. Unlike the [[Wooden Wall|wooden wall]] and [[Wooden Window|wooden window]], the wooden doorframe does not require a [[Wooden Wall|wooden frame]] to be built first. The level of doorframe built is based on the player's [[carpentry]] level. It cannot be selected by the player. However, lower level doorframes can be upgraded later by the player. | |||
{{Crafting/sandbox2 | |||
|wooden_doorframe | |||
|wooden_doorframe_1_to_2 | |||
|wooden_doorframe_2_to_3 | |||
}} | |||
===Health=== | |||
Doorframes have the same health calculation as log walls, and can take advantage of the handy trait | |||
{{Construction hp|doorframe}} | |||
==Gallery== | |||
<gallery> | |||
Wooden Door Frame Article.png|In-game screenshot of a wooden door frame both with a wooden door and without one | |||
</gallery> | |||
==Trivia== | |||
*Unlike [[Wooden Window|wooden windows]] and [[Wooden Wall|wooden walls]], wooden doorframes cannot be upgraded from level 1 to level 3 directly. | |||
==Code== | |||
{{CodeBox| | |||
{{CodeSnip | |||
| lang = java | |||
| line = false | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
function ISWoodenDoorFrame:getHealth() | |||
return 300 + buildUtil.getWoodHealth(self); | |||
end | |||
}} | |||
== | {{CodeSnip | ||
| lang = java | |||
| line = false | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
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 | |||
}} | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 110 | |||
| source = multistagebuild.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
multistagebuild UpgradeWoodenDoorFrame_1To2 | |||
{ | |||
PreviousStage:WoodenDoorFrameLvl1, | |||
Name:WoodenDoorFrameLvl2, | |||
TimeNeeded:200, | |||
BonusHealth:200, | |||
SkillRequired:Woodwork=4, | |||
ItemsRequired:Base.Plank=1;Base.Nails=4, | |||
ItemsToKeep:Base.Hammer, | |||
WallType:doorframe, | |||
Sprite:walls_exterior_wooden_01_50, | |||
NorthSprite:walls_exterior_wooden_01_51, | |||
CraftingSound:Hammering, | |||
ID:Upgrade to Wooden Door Frame Lvl 2, | |||
XP:Woodwork=5, | |||
} | |||
multistagebuild UpgradeWoodenDoorFrame_2To3 | |||
{ | |||
PreviousStage:WoodenDoorFrameLvl2, | |||
Name:WoodenDoorFrameLvl3, | |||
TimeNeeded:200, | |||
BonusHealth:100, | |||
SkillRequired:Woodwork=7, | |||
ItemsRequired:Base.Plank=1;Base.Nails=4, | |||
ItemsToKeep:Base.Hammer, | |||
CanBePlastered:true, | |||
WallType:doorframe, | |||
Sprite:walls_exterior_wooden_01_34, | |||
NorthSprite:walls_exterior_wooden_01_35, | |||
CraftingSound:Hammering, | |||
ID:Upgrade to Wooden Door Frame Lvl 3, | |||
XP:Woodwork=5, | |||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Carpentry]] | |||
*[[Wooden Wall]] | |||
*[[Wooden Window]] | |||
{{Navbox construction|carpentry}} | |||
[[Category:Carpentry]] | [[Category:Carpentry]] | ||
[[Category:Spiffo's Construction Crew (Project)]] | [[Category:Spiffo's Construction Crew (Project)]] |
Latest revision as of 12:13, 25 April 2024
A wooden doorframe is a constructable wall used for shelter and defense.
Usage
Wooden doorframes are a defensive structure from the carpentry skill that are used to hold constructable doors for the player to enter/exit. This allows the player easy access to their structure without risking climbing over a wall, or having an exposed gap for zombies to enter through. Doorframes are not attacked by zombies, but the wooden doors built into them can be destroyed by zombies. If a door is missing or destroyed, zombies will walk through the door.
Wooden doorframes can be destroyed with a sledgehammer. They can also be plastered and painted using paint and a paintbrush.
Crafting
To build a wooden doorframe, a player must have a hammer, planks, and nails in their inventory, or on the ground within reach. They must also have at least level 2 carpentry. Unlike the wooden wall and wooden window, the wooden doorframe does not require a wooden frame to be built first. The level of doorframe built is based on the player's carpentry level. It cannot be selected by the player. However, lower level doorframes can be upgraded later by the player.
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Wooden Doorframe |
Plank ×4 Nails ×4 |
Hammer (tag) |
Carpentry 2 | none | 5 Carpentry |
Upgrade Wooden Doorframe From Lvl 1 to Lvl 2 |
Wooden Doorframe Lvl 1 ×1 Plank ×1 Nails ×4 |
Hammer (tag) |
Carpentry 4 | none | 5 Carpentry |
Upgrade Wooden Doorframe From Lvl 2 to Lvl 3 |
Wooden Doorframe Lvl 2 ×1 Plank ×1 Nails ×4 |
Hammer (tag) |
Carpentry 7 | none | 5 Carpentry |
Health
Doorframes have the same health calculation as log walls, and can take advantage of the handy trait
Skill level | HP without handy | HP with handy |
---|---|---|
0 | 300 HP | 400 HP |
1 | 350 HP | 450 HP |
2 | 400 HP | 500 HP |
3 | 450 HP | 550 HP |
4 | 500 HP | 600 HP |
5 | 550 HP | 650 HP |
6 | 600 HP | 700 HP |
7 | 650 HP | 750 HP |
8 | 700 HP | 800 HP |
9 | 750 HP | 850 HP |
10 | 800 HP | 900 HP |
Gallery
Trivia
- Unlike wooden windows and wooden walls, wooden doorframes cannot be upgraded from level 1 to level 3 directly.
Code
function ISWoodenDoorFrame:getHealth()
return 300 + buildUtil.getWoodHealth(self);
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
Source: ProjectZomboid\media\scripts\multistagebuild.txt
multistagebuild UpgradeWoodenDoorFrame_1To2
{
PreviousStage:WoodenDoorFrameLvl1,
Name:WoodenDoorFrameLvl2,
TimeNeeded:200,
BonusHealth:200,
SkillRequired:Woodwork=4,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
WallType:doorframe,
Sprite:walls_exterior_wooden_01_50,
NorthSprite:walls_exterior_wooden_01_51,
CraftingSound:Hammering,
ID:Upgrade to Wooden Door Frame Lvl 2,
XP:Woodwork=5,
}
multistagebuild UpgradeWoodenDoorFrame_2To3
{
PreviousStage:WoodenDoorFrameLvl2,
Name:WoodenDoorFrameLvl3,
TimeNeeded:200,
BonusHealth:100,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
CanBePlastered:true,
WallType:doorframe,
Sprite:walls_exterior_wooden_01_34,
NorthSprite:walls_exterior_wooden_01_35,
CraftingSound:Hammering,
ID:Upgrade to Wooden Door Frame Lvl 3,
XP:Woodwork=5,
}