Hammer: Difference between revisions
VaileasysBot (talk | contribs) m (→top: category project: "The Game World") |
m (Automated Formatting) |
||
(21 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}} | |||
{{Header|Project Zomboid|Items| | {{Page version|41.78.16}} | ||
{{Infobox | {{Infobox item | ||
| | |name=Hammer | ||
| | |model=Hammer_Model.png | ||
|icon=Hammer.png | |||
|icon_name=Hammer | |||
| | |||
| | |||
<!--GENERAL--> | <!--GENERAL--> | ||
|category=Tool/Weapon | |category=Tool/Weapon | ||
Line 29: | Line 25: | ||
|knockdown=0 | |knockdown=0 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
| | |item_id=Base.Hammer | ||
}} | }} | ||
A '''hammer''' is a tool used in [[crafting]] furniture and structures from [[carpentry]], as well as dismantling [[tiles]]. | A '''hammer''' is a tool used in [[crafting]] furniture and structures from [[carpentry]], as well as dismantling [[tiles]]. | ||
Line 37: | Line 33: | ||
{{Main|Carpentry}} | {{Main|Carpentry}} | ||
A hammer, in combination with [[plank]]s and [[nails]], is required for most carpentry recipes. | A hammer, in combination with [[plank]]s and [[nails]], is required for most carpentry recipes. | ||
It is also necessary for [[Barricade|barricading]] [[door]]s and [[window]]s. | It is also necessary for [[Barricade|barricading]] [[door]]s and [[window]]s. | ||
===Weapon=== | ===Weapon=== | ||
A hammer can be used as a melee [[ | A hammer can be used as a melee [[weapon]]. It deals a decent amount of damage, but has a short range and little knockback. It is poor at damaging doors, dealing 9 damage per swing. It cannot be used to cut trees. | ||
Both the [[baseball bat]] and [[plank]] can be improved by combining with them nails using a hammer, making them deal slightly more damage. | Both the [[baseball bat]] and [[plank]] can be improved by combining with them nails using a hammer, making them deal slightly more damage. | ||
Line 48: | Line 45: | ||
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills. | Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills. | ||
{{Durability weapon|30}} | {{Durability weapon|30}} | ||
===Repairing=== | ===Repairing=== | ||
A hammer can be repaired with the following: | A hammer can be repaired with the following: | ||
*1 × [[Wood Glue]] and level 1 [[ | *1 × [[Wood Glue]] and level 1 [[carpentry]] | ||
*1 × [[Duct Tape]] | *1 × [[Duct Tape]] | ||
*2 × [[Glue]] | *2 × [[Glue]] | ||
Line 59: | Line 57: | ||
===Items=== | ===Items=== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|drawer | |||
|spiked_baseball_bat | |||
|spiked_plank | |||
|watermelon_chunks | |||
}} | |||
===Construction=== | ===Construction=== | ||
====Barriers==== | ====Barriers==== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|barricade | |||
|wooden_stake | |||
|barbed_fence | |||
|wooden_fence | |||
|sandbag_wall | |||
|gravel_bag_wall | |||
}} | |||
====Furniture==== | ====Furniture==== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|wooden_crate | |||
|bar_element | |||
|bar_corner | |||
|small_table | |||
|large_table | |||
|table_with_drawer | |||
|wooden_chair | |||
|rain_collector_barrel_small | |||
|rain_collector_barrel_large | |||
|composter | |||
|bookcase | |||
|small_bookcase | |||
|shelves | |||
|double_shelves | |||
|bed | |||
}} | |||
====Miscellaneous==== | ====Miscellaneous==== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|cairn | |||
|lamp_on_pillar | |||
|sheet_rope_nailed | |||
|wooden_cross | |||
|wooden_picket | |||
|wooden_sign | |||
}} | |||
====Structure==== | ====Structure==== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|wooden_wall_frame | |||
|wooden_wall_1 | |||
|wooden_wall_2 | |||
|wooden_wall_3 | |||
|wooden_wall_1_to_2 | |||
|wooden_wall_1_to_3 | |||
|wooden_wall_2_to_3 | |||
|wooden_window_1 | |||
|wooden_window_2 | |||
|wooden_window_3 | |||
|wooden_window_1_to_2 | |||
|wooden_window_1_to_3 | |||
|wooden_window_2_to_3 | |||
|wooden_doorframe | |||
|wooden_pillar | |||
|log_wall | |||
|wooden_door | |||
|double_wooden_door | |||
|stairs_piece | |||
|wooden_floor | |||
}} | |||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
|- | |||
! Building/Room | |||
! Container | |||
! style="width: 3.2em;" | Rolls | |||
! style="width: 3.2em;" | Chance | |||
|- | |||
|SafehouseLoot | |||
|[[counter]] | |||
|4 | |||
|1 | |||
|- | |||
|all | |||
|[[toolcabinet]] | |||
|4 | |||
|8 | |||
|- | |||
|armyhanger | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|bedroom | |||
|[[crate]] | |||
|1 | |||
|0.6 | |||
|- | |||
|cabinetfactory | |||
|[[crate]] | |||
|4 | |||
|1 | |||
|- | |||
|rowspan="3"|closet | |||
|[[crate]] | |||
|4 | |||
|8 | |||
|- | |||
|[[crate]] | |||
|4 | |||
|6 | |||
|- | |||
|[[metal_shelves]] | |||
|4 | |||
|8 | |||
|- | |||
|rowspan="2"|drugshack | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|[[crate]] | |||
|4 | |||
|8 | |||
|- | |||
|firestorage | |||
|[[metal_shelves]] | |||
|4 | |||
|8 | |||
|- | |||
|rowspan="3"|garagestorage | |||
|[[counter]] | |||
|4 | |||
|6 | |||
|- | |||
|[[counter]] | |||
|4 | |||
|6 | |||
|- | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|gasstorage | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|generalstore | |||
|[[metal_shelves]] | |||
|4 | |||
|8 | |||
|- | |||
|kitchen | |||
|[[counter]] | |||
|4 | |||
|6 | |||
|- | |||
|pawnshop | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|rowspan="2"|toolstorestorage | |||
|[[metal_shelves]] | |||
|4 | |||
|6 | |||
|- | |||
|[[metal_shelves]] | |||
|4 | |||
|6 | |||
|} | |||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 142: | Line 244: | ||
| source = items_weapons.txt | | source = items_weapons.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
item Hammer | |||
{ | { | ||
DisplayCategory = ToolWeapon, | DisplayCategory = ToolWeapon, | ||
Line 199: | Line 300: | ||
| source = fixing.txt | | source = fixing.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
fixing Fix Hammer | fixing Fix Hammer | ||
Line 220: | Line 320: | ||
*[[Wooden Mallet]] | *[[Wooden Mallet]] | ||
{{Navbox | {{Navbox items|blunt}} | ||
[[Category: | [[Category:Tools]] | ||
[[Category: | [[Category:Carpentry tools]] | ||
[[Category:Spiffo's Construction Crew (Project)]] | [[Category:Spiffo's Construction Crew (Project)]] |
Revision as of 09:04, 14 April 2024
A hammer is a tool used in crafting furniture and structures from carpentry, as well as dismantling tiles.
Usage
Carpentry
- Main article: Carpentry
A hammer, in combination with planks and nails, is required for most carpentry recipes.
It is also necessary for barricading doors and windows.
Weapon
A hammer can be used as a melee weapon. It deals a decent amount of damage, but has a short range and little knockback. It is poor at damaging doors, dealing 9 damage per swing. It cannot be used to cut trees.
Both the baseball bat and plank can be improved by combining with them nails using a hammer, making them deal slightly more damage.
Condition
The hammer has a maximum condition of 10. Its rate of degradation is influenced by the short blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (30 + maintenanceMod × 2)
. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and short blunt skills.
Maintenance skill | Weapon skill | Condition lower chance |
---|---|---|
0 | 0 | 1/30 (3%) |
0 | 4 | 1/32 (3%) |
0 | 8 | 1/34 (3%) |
4 | 0 | 1/34 (3%) |
8 | 0 | 1/38 (3%) |
4 | 4 | 1/36 (3%) |
4 | 8 | 1/38 (3%) |
8 | 8 | 1/42 (2%) |
10 | 10 | 1/44 (2%) |
Repairing
A hammer can be repaired with the following:
- 1 × Wood Glue and level 1 carpentry
- 1 × Duct Tape
- 2 × Glue
- 3 × Adhesive Tape
Crafting
A hammer can be used in the following recipes:
Items
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Drawer |
Plank ×1 Doorknob ×1 Nails ×1 |
Hammer (tag) |
none | none | 0.25 Carpentry |
Spiked Baseball Bat |
Baseball Bat ×1 Nails ×5 |
Hammer (tag) |
none | none | none |
Spiked Plank |
Plank ×1 Nails ×5 |
Hammer (tag) |
none | none | 0.25 Carpentry |
Watermelon Chunks ×5 |
One of: Baseball Bat ×1 Hammer ×1 Log ×1 Plank ×1 Sledgehammer ×1 Spiked Baseball Bat ×1 Stone Hammer ×1 Each of: Watermelon ×1 |
none | none | none | 0.75 Cooking |
Construction
Barriers
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Barricade |
One of: Door ×1 Window ×1 Each of: Plank ×1 Nails ×2 |
Hammer (tag) |
none | none | 0.75 Carpentry |
Wooden Stake |
Plank ×1 Nails ×2 |
Hammer (tag) |
Carpentry 5 | none | 1.25 Carpentry |
Barbed Fence |
Barbed Wire ×1 | Hammer (tag) |
Carpentry 5 | none | 1.25 Carpentry |
Wooden Fence |
Plank ×2 Nails ×3 |
Hammer (tag) |
Carpentry 2 | none | 1.25 Carpentry |
Sandbag Wall |
Sand Bag ×3 | Hammer (tag) |
none | none | 1.25 Carpentry |
Gravel Bag Wall |
Gravel Bag ×3 | Hammer (tag) |
none | none | 1.25 Carpentry |
Furniture
Miscellaneous
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Cairn |
Stone ×6 | Hammer (tag) |
none | none | none |
Lamp on Pillar |
Plank ×2 Nails ×4 Rope ×1 Flashlight ×1 |
Hammer (tag) |
Carpentry 4 | none | 1.25 Carpentry |
Sheet Rope |
One of: Sheet Rope ×1 Rope ×1 Nails ×1 |
Hammer (tag) |
none | none | none |
Wooden Cross |
Plank ×2 Nails ×2 |
Hammer (tag) |
none | none | 1.25 Carpentry |
Wooden Picket |
Plank ×1 Sheet Rope ×1 |
Hammer (tag) |
none | none | 1.25 Carpentry |
Wooden Sign |
Plank ×3 Nails ×3 |
Hammer (tag) |
Carpentry 1 | none | 0.75 Carpentry |
Structure
Distribution
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
SafehouseLoot | counter | 4 | 1 |
all | toolcabinet | 4 | 8 |
armyhanger | counter | 4 | 8 |
bedroom | crate | 1 | 0.6 |
cabinetfactory | crate | 4 | 1 |
closet | crate | 4 | 8 |
crate | 4 | 6 | |
metal_shelves | 4 | 8 | |
drugshack | counter | 4 | 8 |
crate | 4 | 8 | |
firestorage | metal_shelves | 4 | 8 |
garagestorage | counter | 4 | 6 |
counter | 4 | 6 | |
counter | 4 | 8 | |
gasstorage | counter | 4 | 8 |
generalstore | metal_shelves | 4 | 8 |
kitchen | counter | 4 | 6 |
pawnshop | counter | 4 | 8 |
toolstorestorage | metal_shelves | 4 | 6 |
metal_shelves | 4 | 6 |
Code
Item
Source: ProjectZomboid\media\scripts\items_weapons.txt
item Hammer
{
DisplayCategory = ToolWeapon,
MaxRange = 1.1,
WeaponSprite = Hammer,
MinAngle = 0.67,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = SmallBlunt,
ConditionLowerChanceOneIn = 30,
Weight = 1,
SplatNumber = 1,
PushBackMod = 0.5,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 1,
DoorDamage = 9,
CanBarricade = TRUE,
SwingAnim = Bat,
DisplayName = Hammer,
MinRange = 0.61,
SwingTime = 3,
KnockdownMod = 0,
SplatBloodOnNoDeath = TRUE,
Icon = Hammer,
RunAnim = Run_Weapon2,
IdleAnim = Idle_Weapon2,
BreakSound = HammerBreak,
DoorHitSound = HammerHit,
HitSound = HammerHit,
HitFloorSound = HammerHit,
SwingSound = HammerSwing,
TreeDamage = 0,
MetalValue = 25,
CriticalChance = 20,
CritDmgMultiplier = 3,
MinDamage = 0.5,
MaxDamage = 1,
BaseSpeed = 1,
WeaponLength = 0.23,
AttachmentType = Hammer,
Tags = Hammer;RemoveBarricade,
}
Repair
Source: ProjectZomboid\media\scripts\fixing.txt
fixing Fix Hammer
{
Require : Hammer,
Fixer : Woodglue; Woodwork=1,
Fixer : DuctTape,
Fixer : Glue=2,
Fixer : Scotchtape=3,
}