Stone Axe: Difference between revisions

From PZwiki
m (→‎Code: Bump version to .16)
(added CodeBox and condition + updates)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=50}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=78.16}}
{{Infobox weapon
{{Infobox weapon
|display_name=Stone Axe
|display_name=Stone Axe
Line 9: Line 9:
|alternate_link=
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Tool/Weapon
|weight=1.2
|weight=1.2
|function=Chop [[tree]]s
|function=Chop [[tree]]s
|equipped=Two-handed
|equipped=Two-handed
|condition_max=5
|condition_max=5
|attachment_type=Big Weapon
|skill_type=Axe
<!--DAMAGE-->
<!--DAMAGE-->
|type=Axe
|type=Slash
|swing_time=3.0
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1.2
|max_range=1.2
Line 29: Line 31:
A '''stone axe''', previously known as '''raw axe''', is a two-handed craftable melee weapon.
A '''stone axe''', previously known as '''raw axe''', is a two-handed craftable melee weapon.


==Usage==
===Weapon===
===Weapon===
The stone axe is a multi-attack weapon, capable of hitting two [[zombie]]s at a time in a swing. It is a two-handed weapon that has a max damage of 1.5.  
The stone axe is a multi-attack weapon, capable of hitting two [[zombie]]s at a time in a swing (if multi-hit is enabled). It is a two-handed weapon that has a max damage of 1.5.  


The stone axe has a chance to kill zombies in a single, well-charged hit, making it useful for close-quarter combat. Its disadvantage is that it has a long recovery time between swings, leaving the player vulnerable when overwhelmed.
The stone axe has a chance to kill zombies in a single, well-charged hit, making it useful for close-quarter combat. Its disadvantage is that it has a long recovery time between swings, leaving the player vulnerable when overwhelmed.
Line 39: Line 42:
===Chopping trees===
===Chopping trees===
The stone axe is a useful harvesting tool when cutting down trees (10 damage) to collect [[Log|log]]s which can be cut with a [[Saw|saw]] to create [[Plank|wood planks]].
The stone axe is a useful harvesting tool when cutting down trees (10 damage) to collect [[Log|log]]s which can be cut with a [[Saw|saw]] to create [[Plank|wood planks]].
==Condition==
The stone axe has a maximum condition of 5. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (5 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|5}}
===Repairing===
The stone axe cannot be repaired.


==Crafting==
==Crafting==
[[Stone Axe|Stone axes]] are made up of items which are scavenged via [[Foraging]].[[Tree Branch|Tree branches]], [[Chipped Stone|chipped stones]] and [[Ripped Sheets|ripped sheets]] (or [[twine]]) are required.
Stone axes are made up of items which are scavenged via [[foraging]]. [[Tree Branch|Tree branches]], [[Chipped Stone|chipped stones]] and [[Ripped Sheets|ripped sheets]] (or [[twine]]) are required.


{{Crafting header|ing=3}}
{{Crafting header|ing=3}}
{{Crafting survivalist|007|ing=3}}
{{Crafting survivalist|007|ing=3}}
|}
|}
==Condition==
The stone axe has a max condition of 5 and the chance to lose condition is influenced by the [[Skills#Combat|Maintenance and Axe skills]]. With level 0 Maintenance and Axe skill the stone axe has a 1 in 5 chance to lose condition each hit.
===Repairing===
The stone axe cannot be repaired.


==Code==
==Code==
'''''From Items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
item AxeStone
  | line = true
{
  | start = 1634
DisplayCategory = ToolWeapon,
  | source = items_weapons.txt
MaxRange = 1.2,
  | retrieved = true
MinAngle = 0.72,
  | version = 41
WeaponSprite = StoneAxe,
  | incver = 78.16
Type = Weapon,
  | code =
MinimumSwingTime = 3.0,
    item AxeStone
KnockBackOnNoDeath = TRUE,
    {
Categories = Axe,
        DisplayCategory = ToolWeapon,
ConditionLowerChanceOneIn = 5,
        MaxRange = 1.2,
Weight = 1.2,
MinAngle = 0.72,
SplatNumber = 3,
WeaponSprite = StoneAxe,
PushBackMod = 0.3,
Type = Weapon,
SubCategory = Swinging,
MinimumSwingTime = 3.0,
ConditionMax = 5,
KnockBackOnNoDeath = TRUE,
MaxHitCount = 3,
Categories = Axe,
DoorDamage = 15,
ConditionLowerChanceOneIn = 5,
IdleAnim = Idle_Weapon2,
Weight = 1.2,
SwingAnim = Bat,
SplatNumber = 3,
DisplayName = Raw Axe,
PushBackMod = 0.3,
MinRange = 0.61,
SubCategory = Swinging,
SwingTime = 3.0,
ConditionMax = 5,
HitAngleMod = -30,
MaxHitCount = 3,
SplatSize = 5,
DoorDamage = 15,
KnockdownMod = 1.5,
IdleAnim = Idle_Weapon2,
SplatBloodOnNoDeath = TRUE,
SwingAnim = Bat,
Icon = AxeStone,
DisplayName = Raw Axe,
RunAnim = Run_Weapon2,
MinRange = 0.61,
TwoHandWeapon = TRUE,
SwingTime = 3.0,
BreakSound  =  RawAxeBreak,
HitAngleMod = -30,
DoorHitSound = RawAxeHit,
SplatSize = 5,
HitSound = RawAxeHit,
KnockdownMod = 1.5,
HitFloorSound = RawAxeHit,
SplatBloodOnNoDeath = TRUE,
SwingSound = RawAxeSwing,
Icon = AxeStone,
TreeDamage  =  10,
RunAnim = Run_Weapon2,
CriticalChance = 15,
        TwoHandWeapon = TRUE,
CritDmgMultiplier = 5,
        BreakSound  =  RawAxeBreak,
MinDamage = 0.5,
        DoorHitSound = RawAxeHit,
MaxDamage = 1.5,
        HitSound = RawAxeHit,
BaseSpeed = 1,
        HitFloorSound = RawAxeHit,
DamageCategory = Slash,
SwingSound = RawAxeSwing,
DamageMakeHole = TRUE,
        TreeDamage  =  10,
AttachmentType = BigWeapon,
        CriticalChance = 15,
Tags = ChopTree;CutPlant,
        CritDmgMultiplier = 5,
}
        MinDamage = 0.5,
</pre>
        MaxDamage = 1.5,
        BaseSpeed = 1,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = BigWeapon,
        Tags = ChopTree;CutPlant,
    }
}}
}}


==See also==
==See also==
*[[Axe]]
*[[Foraging]]
*[[Foraging]]
*[[Wood Axe]]


{{Navbox equipment}}
{{Navbox equipment}}
{{Navbox weapons}}
{{Navbox weapons}}
[[Category:Weapons]]
[[Category:Melee weapons]]

Revision as of 13:01, 30 December 2023

Stone Axe
Stone Axe
Stone Axe
General
Category Tool/Weapon
Encumbrance
Heavy Load
1.2
Function Chop trees
Equipped Two-handed
Condition max. 5
Skill Axe
Attachment Big Weapon
Damage
Type Slash
Attack speed 1
Range 0.61–1.2 tiles
Damage 0.5–1.5
Knockback 0.3
Knockdown 1.5
Technical details
Ingredients 1 × Tree Branch
1 × Chipped Stone
1 × Ripped Sheets
or 1 × Twine
or 1 × Dirty Rag
Base ID Base.AxeStone

A stone axe, previously known as raw axe, is a two-handed craftable melee weapon.

Usage

Weapon

The stone axe is a multi-attack weapon, capable of hitting two zombies at a time in a swing (if multi-hit is enabled). It is a two-handed weapon that has a max damage of 1.5.

The stone axe has a chance to kill zombies in a single, well-charged hit, making it useful for close-quarter combat. Its disadvantage is that it has a long recovery time between swings, leaving the player vulnerable when overwhelmed.

Breaking doors

It is effective at breaking down doors, dealing 15 damage per hit.

Chopping trees

The stone axe is a useful harvesting tool when cutting down trees (10 damage) to collect logs which can be cut with a saw to create wood planks.

Condition

The stone axe has a maximum condition of 5. Its rate of degradation is influenced by the long 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 long blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability 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

The stone axe cannot be repaired.

Crafting

Stone axes are made up of items which are scavenged via foraging. Tree branches, chipped stones and ripped sheets (or twine) are required.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
AxeStone.png
Stone Axe
0 XP none Branch.png
Tree Branch
(consumed)
RockSharpened.png
Chipped Stone
(consumed)

(consumed)

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item AxeStone
    {
        DisplayCategory = ToolWeapon,
        MaxRange	=	1.2,
		MinAngle	=	0.72,
		WeaponSprite	=	StoneAxe,
		Type	=	Weapon,
		MinimumSwingTime	=	3.0,
		KnockBackOnNoDeath	=	TRUE,
		Categories	=	Axe,
		ConditionLowerChanceOneIn	=	5,
		Weight	=	1.2,
		SplatNumber	=	3,
		PushBackMod	=	0.3,
		SubCategory	=	Swinging,
		ConditionMax	=	5,
		MaxHitCount	=	3,
		DoorDamage	=	15,
		IdleAnim	=	Idle_Weapon2,
		SwingAnim	=	Bat,
		DisplayName	=	Raw Axe,
		MinRange	=	0.61,
		SwingTime	=	3.0,
		HitAngleMod	=	-30,
		SplatSize	=	5,
		KnockdownMod	=	1.5,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	AxeStone,
		RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   RawAxeBreak,
        DoorHitSound = RawAxeHit,
        HitSound = RawAxeHit,
        HitFloorSound = RawAxeHit,
		SwingSound = RawAxeSwing,
        TreeDamage  =   10,
        CriticalChance	=	15,
        CritDmgMultiplier = 5,
        MinDamage	=	0.5,
        MaxDamage	=	1.5,
        BaseSpeed = 1,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = BigWeapon,
        Tags = ChopTree;CutPlant,
    }

See also