Hammer: Difference between revisions
m (Automated navbox deployment) |
m (Automated Formatting) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
|item_id=Base.Hammer | |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 58: | 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== | ||
Line 135: | Line 134: | ||
! colspan="4" | Containers | ! colspan="4" | Containers | ||
|- | |- | ||
!Building/Room | ! Building/Room | ||
!Container | ! Container | ||
! style="width: 3.2em;" |Rolls | ! style="width: 3.2em;" | Rolls | ||
! style="width: 3.2em;" |Chance | ! style="width: 3.2em;" | Chance | ||
|- | |||
|SafehouseLoot | |||
|[[counter]] | |||
|4 | |||
|1 | |||
|- | |- | ||
|all | |||
| [[toolcabinet]] | |[[toolcabinet]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|armyhanger | |||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|bedroom | |||
| [[crate]] | |[[crate]] | ||
| 1 | |1 | ||
| 0.6 | |0.6 | ||
|- | |- | ||
|cabinetfactory | |||
| [[crate]] | |[[crate]] | ||
| 4 | |4 | ||
| 1 | |1 | ||
|- | |- | ||
| rowspan="3"|closet | |rowspan="3"|closet | ||
| [[crate]] | |[[crate]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|[[crate]] | |[[crate]] | ||
Line 173: | Line 177: | ||
|8 | |8 | ||
|- | |- | ||
| rowspan="2"|drugshack | |rowspan="2"|drugshack | ||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|[[crate]] | |[[crate]] | ||
Line 182: | Line 186: | ||
|8 | |8 | ||
|- | |- | ||
|firestorage | |||
| [[metal_shelves]] | |[[metal_shelves]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
| rowspan="3"|garagestorage | |rowspan="3"|garagestorage | ||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 6 | |6 | ||
|- | |- | ||
|[[counter]] | |[[counter]] | ||
Line 200: | Line 204: | ||
|8 | |8 | ||
|- | |- | ||
|gasstorage | |||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|generalstore | |||
| [[metal_shelves]] | |[[metal_shelves]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
|kitchen | |||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 6 | |6 | ||
|- | |- | ||
|pawnshop | |||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 8 | |8 | ||
|- | |- | ||
| rowspan="2"|toolstorestorage | |rowspan="2"|toolstorestorage | ||
| [[metal_shelves]] | |[[metal_shelves]] | ||
| 4 | |4 | ||
| 6 | |6 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
Line 232: | Line 236: | ||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 241: | Line 246: | ||
| version = 41.78.16 | | version = 41.78.16 | ||
| code = | | code = | ||
item Hammer | |||
{ | { | ||
DisplayCategory = ToolWeapon, | DisplayCategory = ToolWeapon, | ||
Line 315: | Line 320: | ||
*[[Wooden Mallet]] | *[[Wooden Mallet]] | ||
{{Navbox | {{Navbox items|blunt}} | ||
[[Category:Tools]] | [[Category:Tools]] | ||
[[Category:Carpentry tools]] | [[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,
}