Stone Hammer: Difference between revisions
(added CodeBox, Condition and other fixes/updates/adjustments) |
m (Automated Formatting) |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}} | |||
{{Header| | {{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 30: | Line 26: | ||
<!--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''' 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. | 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. | ||
Line 51: | Line 47: | ||
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|5}} | {{Durability weapon|5}} | ||
===Repairing=== | ===Repairing=== | ||
A stone hammer cannot be repaired. However it can be [[#Crafting|crafted]] from raw materials. | A stone hammer cannot be repaired. However it can be [[#Crafting|crafted]] from raw materials. | ||
==Crafting== | ==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. | 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 | {{Crafting/sandbox2 | ||
|stone_hammer | |||
}} | |||
===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 | |||
}} | |||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 132: | Line 131: | ||
| source = items_weapons.txt | | source = items_weapons.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
item HammerStone | |||
{ | { | ||
DisplayCategory = ToolWeapon, | DisplayCategory = ToolWeapon, | ||
Line 190: | Line 188: | ||
| path = ProjectZomboid\media\lua\client\BuildingObjects\TimedActions | | path = ProjectZomboid\media\lua\client\BuildingObjects\TimedActions | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | 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 | ||
Line 209: | Line 206: | ||
*[[Sledgehammer]] | *[[Sledgehammer]] | ||
{{Navbox | {{Navbox items|blunt}} | ||
[[Category: | [[Category:Tools]] | ||
[[Category: | [[Category:Carpentry tools]] |
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