Stone Hammer: Difference between revisions
(added model image + changed navbox & crafting table) |
m (Automated Formatting) |
||
(22 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}} | ||
{{ | {{Page version|41.50}} | ||
{{Infobox | {{Infobox item | ||
| | |name=Stone Hammer | ||
| | |model=StoneHammer_Model.png | ||
|icon=HammerStone.png | |||
|icon_name=Stone Hammer | |||
| | |||
| | |||
<!--GENERAL--> | <!--GENERAL--> | ||
|category=Tool | |category=Tool | ||
Line 25: | Line 21: | ||
|min_damage=0.3 | |min_damage=0.3 | ||
|max_damage=0.7 | |max_damage=0.7 | ||
|door_damage=2 | |||
|push_back=0.5 | |push_back=0.5 | ||
|knockdown=0 | |knockdown=0 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
|ingredients=1 × [[Stone]]<br>1 × [[Tree Branch]]<br>1 × [[Ripped Sheet]] or [[Twine]] | |ingredients=1 × [[Stone]]<br>1 × [[Tree Branch]]<br>1 × [[Ripped Sheet]] or [[Twine]] | ||
| | |item_id=Base.HammerStone | ||
}} | }} | ||
A '''stone hammer''' construction tool and weapon that can be made through [[foraging]]. It is strictly worse than a [[hammer]] as both a weapon and construction tool. | A '''stone hammer''' is a construction tool and [[Weapons|weapon]] that can be made through [[foraging]]. It is strictly worse than a [[hammer]] as both a weapon and construction tool. | ||
== Usage == | ==Usage== | ||
=== Construction === | ===Construction=== | ||
{{Main|Carpentry}} | {{Main|Carpentry}} | ||
A | A stone hammer, in combination with [[Wooden Plank|wooden planks]] and [[nails]], can be used as a replacement to a conventional [[hammer]] for most carpentry recipes. It can also be used for [[Barricade|barricading]] [[doors]] and [[window]]s. | ||
It | |||
A stone hammer will lose durability during construction, whereas a regular hammer will not. | A stone hammer will lose durability during construction, whereas a regular hammer will not. | ||
=== Weapon === | ===Weapon=== | ||
A stone hammer can be used as a low tier weapon. Compared to a regular hammer, it is heavier, less damaging, has slightly shorter range, and has a much lower durability. | A stone hammer can be used as a low tier weapon. Compared to a regular hammer, it is heavier, less damaging, has slightly shorter range, and has a much lower durability. | ||
=== Breaking doors === | ===Breaking doors=== | ||
The | The stone hammer is capable of breaking down doors dealing 2 damage per swing. For comparison, an [[axe]] deals 35 damage. | ||
== | ==Condition== | ||
The stone hammer has a maximum condition of 5. Its rate of degradation is influenced by the [[Skills|short blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (5 + maintenanceMod × 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br> | |||
{{ | Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills. | ||
{{Durability weapon|5}} | |||
== | ===Repairing=== | ||
A stone hammer cannot be repaired. However it can be [[#Crafting|crafted]] from raw materials. | |||
== | ==Crafting== | ||
Stone hammers are made up of items which are scavenged via [[foraging]].[[Tree Branch|Tree branches]], [[stone]]s and [[ripped sheet]]s (or [[twine]]) are required. | |||
{{ | {{Crafting/sandbox2 | ||
< | |stone_hammer | ||
}} | |||
===Construction=== | |||
====Barriers==== | |||
{{Crafting/sandbox2 | |||
|barricade | |||
|wooden_stake | |||
|barbed_fence | |||
|wooden_fence | |||
|sandbag_wall | |||
|gravel_bag_wall | |||
}} | |||
====Furniture==== | |||
{{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==== | |||
{{Crafting/sandbox2 | |||
|cairn | |||
|lamp_on_pillar | |||
|sheet_rope_nailed | |||
|wooden_cross | |||
|wooden_picket | |||
|wooden_sign | |||
}} | |||
====Structure==== | |||
{{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 | |||
}} | |||
==Code== | |||
{{CodeBox| | |||
===Item=== | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 1147 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item HammerStone | |||
{ | |||
DisplayCategory = ToolWeapon, | |||
MaxRange = 1.05, | |||
WeaponSprite = StoneHammer, | |||
MinAngle = 0.65, | |||
Type = Weapon, | |||
MinimumSwingTime = 3, | |||
KnockBackOnNoDeath = TRUE, | |||
SwingAmountBeforeImpact = 0.02, | |||
Categories = SmallBlunt, | |||
ConditionLowerChanceOneIn = 5, | |||
Weight = 1.2, | |||
SplatNumber = 1, | |||
PushBackMod = 0.5, | |||
SubCategory = Swinging, | |||
ConditionMax = 5, | |||
MaxHitCount = 1, | |||
DoorDamage = 2, | |||
CanBarricade = TRUE, | |||
SwingAnim = Bat, | |||
DisplayName = Stone Hammer, | |||
MinRange = 0.61, | |||
SwingTime = 3, | |||
KnockdownMod = 0, | |||
SplatBloodOnNoDeath = TRUE, | |||
Icon = HammerStone, | |||
RunAnim = Run_Weapon2, | |||
IdleAnim = Idle_Weapon2, | |||
BreakSound = StoneHammerBreak, | |||
DoorHitSound = StoneHammerHit, | |||
HitSound = StoneHammerHit, | |||
HitFloorSound = StoneHammerHit, | |||
SwingSound = StoneHammerSwing, | |||
TreeDamage = 0, | |||
CriticalChance = 15, | |||
CritDmgMultiplier = 3, | |||
MinDamage = 0.3, | |||
MaxDamage = 0.7, | |||
BaseSpeed = 1, | |||
WeaponLength = 0.23, | |||
AttachmentType = Hammer, | |||
Tags = Hammer, | |||
} | |||
}} | |||
===Building=== | |||
Code showing the stone hammer is to be damaged when used in construction. <br> | |||
{{CodeSnip | |||
| lang = lua | |||
| line = true | |||
| start = 151 | |||
| source = ISBuildMenu.lua | |||
| path = ProjectZomboid\media\lua\client\BuildingObjects\TimedActions | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
-- reduce the condition of the hammer if it's a stone hammer | -- reduce the condition of the hammer if it's a stone hammer | ||
local hammer = self.character:getPrimaryHandItem() | local hammer = self.character:getPrimaryHandItem() | ||
Line 106: | Line 196: | ||
ISWorldObjectContextMenu.checkWeapon(self.character); | ISWorldObjectContextMenu.checkWeapon(self.character); | ||
end | end | ||
}} | |||
}} | |||
==See also== | |||
*[[Ball-peen Hammer]] | |||
*[[Crowbar]] | |||
*[[Hammer]] | |||
*[[Stone Axe]] | |||
*[[Sledgehammer]] | |||
{{Navbox items|blunt}} | |||
[[Category:Tools]] | |||
[[Category: | [[Category:Carpentry tools]] | ||
[[Category: |
Latest revision as of 12:26, 14 April 2024
A stone hammer is a construction tool and weapon that can be made through foraging. It is strictly worse than a hammer as both a weapon and construction tool.
Usage
Construction
- Main article: Carpentry
A stone hammer, in combination with wooden planks and nails, can be used as a replacement to a conventional hammer for most carpentry recipes. It can also be used for barricading doors and windows.
A stone hammer will lose durability during construction, whereas a regular hammer will not.
Weapon
A stone hammer can be used as a low tier weapon. Compared to a regular hammer, it is heavier, less damaging, has slightly shorter range, and has a much lower durability.
Breaking doors
The stone hammer is capable of breaking down doors dealing 2 damage per swing. For comparison, an axe deals 35 damage.
Condition
The stone hammer has a maximum condition of 5. 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 (5 + 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/5 (20%) |
0 | 4 | 1/7 (14%) |
0 | 8 | 1/9 (11%) |
4 | 0 | 1/9 (11%) |
8 | 0 | 1/13 (8%) |
4 | 4 | 1/11 (9%) |
4 | 8 | 1/13 (8%) |
8 | 8 | 1/17 (6%) |
10 | 10 | 1/19 (5%) |
Repairing
A stone hammer cannot be repaired. However it can be crafted from raw materials.
Crafting
Stone hammers are made up of items which are scavenged via foraging.Tree branches, stones and ripped sheets (or twine) are required.
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Stone Hammer |
One of: Ripped Sheets ×1 Dirty Rag ×1 Twine ×1 Each of: Tree Branch ×1 Stone ×1 |
none | none | none | none |
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
Code
Item
Source: ProjectZomboid\media\scripts\items_weapons.txt
item HammerStone
{
DisplayCategory = ToolWeapon,
MaxRange = 1.05,
WeaponSprite = StoneHammer,
MinAngle = 0.65,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = SmallBlunt,
ConditionLowerChanceOneIn = 5,
Weight = 1.2,
SplatNumber = 1,
PushBackMod = 0.5,
SubCategory = Swinging,
ConditionMax = 5,
MaxHitCount = 1,
DoorDamage = 2,
CanBarricade = TRUE,
SwingAnim = Bat,
DisplayName = Stone Hammer,
MinRange = 0.61,
SwingTime = 3,
KnockdownMod = 0,
SplatBloodOnNoDeath = TRUE,
Icon = HammerStone,
RunAnim = Run_Weapon2,
IdleAnim = Idle_Weapon2,
BreakSound = StoneHammerBreak,
DoorHitSound = StoneHammerHit,
HitSound = StoneHammerHit,
HitFloorSound = StoneHammerHit,
SwingSound = StoneHammerSwing,
TreeDamage = 0,
CriticalChance = 15,
CritDmgMultiplier = 3,
MinDamage = 0.3,
MaxDamage = 0.7,
BaseSpeed = 1,
WeaponLength = 0.23,
AttachmentType = Hammer,
Tags = Hammer,
}
Building
Code showing the stone hammer is to be damaged when used in construction.
Source: ProjectZomboid\media\lua\client\BuildingObjects\TimedActions\ISBuildMenu.lua
-- reduce the condition of the hammer if it's a stone hammer
local hammer = self.character:getPrimaryHandItem()
if hammer and hammer:getType() == "HammerStone" and ZombRand(hammer:getConditionLowerChance()) == 0 then
hammer:setCondition(hammer:getCondition() - 1)
ISWorldObjectContextMenu.checkWeapon(self.character);
end