Spiked Plank: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, Condition and other fixes/updates/adjustments)
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=Spiked Plank
|display_name=Spiked Plank
Line 10: Line 10:
|alternate_name=Spiked Plank
|alternate_name=Spiked Plank
|alternate_link=
|alternate_link=
|category=Weapon
<!--GENERAL-->
|category=Weapon - Crafted
|weight=3.1
|weight=3.1
|equipped=Two-handed
|equipped=Two-handed
|condition_max=10
|attachment_type=Shovel
|skill_type=Blunt
<!--DAMAGE-->
|type=Slash
|type=Slash
|min_range=0.61
|min_range=0.61
|max_range=1.32
|max_range=1.32
|swing_time=4
|base_speed=0.85
|condition_max=10
|min_damage=0.5
|min_damage=0.5
|max_damage=0.8
|max_damage=0.8
|push_back=0.5
|push_back=0.5
|knockdown=2
|knockdown=2
<!--TECHNICAL-->
|class_name=Base.PlankNail
|class_name=Base.PlankNail
}}
}}
The '''Spiked Plank''' is a player constructed weapon using a wooden [[plank]] and hammering in nails.
A '''spiked plank''' is a crafted [[Weapons|weapon]]. It's just a [[plank]] with [[nail]]s [[hammer]]ed into it.  


==Usage==
==Usage==
===Weapon===
===Weapon===
The Spiked Plank has a very slow swing rate but compensates with a longer range than many of the weapons, and is a weapon that can be made again when it breaks by finding another plank. The Spiked Plank is better than some weapon alternatives for damage output, but its durability is similar to the [[Kitchen Knife|kitchen knife]], and is quite fragile in comparison to more sturdily built weapons.
The spiked plank has a very slow attack speed, but compensates with a longer range and damage than many other [[weapons]]. Its durability is similar to the [[Kitchen Knife|kitchen knife]], and is quite fragile in comparison to more sturdily built weapons.


The Spiked Plank, despite its flaws, is a multi-attack weapon and can attack 2 zombies at once. It also has a good chance of knocking zombies down so they can be finished off.  
The spiked plank, despite its flaws, is a multi-hit weapon, hitting 2 zombies at once (if multi-hit is enabled). It also has a good chance of knocking zombies down so they can be finished off.  


===Breaking doors===
===Breaking doors===
It also can cause 8 door damage per swing. For comparison, an [[Axe]] does 35 damage.
It can cause 8 door damage per swing. For comparison, an [[axe]] does 35 damage.
 
==Condition==
The spiked plank has a maximum condition of 10. 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 (2 + 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|2}}
 
===Repairing===
A spiked plank cannot be repaired.


==Crafting==
==Crafting==
Line 41: Line 54:


==Trivia==
==Trivia==
*Strangely, the Spiked Plank has 0.02 increased range from a regular [[Plank]]. This may be due to the nails at the end adding a little bit more reach.
*Strangely, the spiked plank has 0.02 increased range from a regular [[Plank]]. This may be due to the nails at the end adding a little bit more reach.


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=50}}
{{CodeSnip
<pre>
  | lang = java
  | line = true
  | start = 1914
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item PlankNail
item PlankNail
MaxRange = 1.32,
{
WeaponSprite = NailedPlank,
    DisplayCategory = WeaponCrafted,
MinAngle = 0.75,
MaxRange = 1.32,
Type = Weapon,
WeaponSprite = NailedPlank,
MinimumSwingTime = 4,
MinAngle = 0.75,
KnockBackOnNoDeath = FALSE,
Type = Weapon,
SwingAmountBeforeImpact = 0.02,
MinimumSwingTime = 4,
Categories = Improvised;Blunt,
KnockBackOnNoDeath = FALSE,
Weight = 3.1,
SwingAmountBeforeImpact = 0.02,
SplatNumber = 2,
Categories = Improvised;Blunt,
ConditionLowerChanceOneIn = 2,
Weight = 3.1,
PushBackMod = 0.3,
SplatNumber = 2,
SubCategory = Swinging,
ConditionLowerChanceOneIn = 2,
ConditionMax = 10,
PushBackMod = 0.3,
MaxHitCount = 2,
SubCategory = Swinging,
DoorDamage = 8,
ConditionMax = 10,
SwingAnim = Bat,
MaxHitCount = 2,
MinRange = 0.61,
DoorDamage = 8,
DisplayName = Spiked Plank,
SwingAnim = Bat,
SwingTime = 4,
MinRange = 0.61,
KnockdownMod = 2,
        DisplayName = Spiked Plank,
SplatBloodOnNoDeath = TRUE,
SwingTime = 4,
Icon = PlankNail,
KnockdownMod = 2,
RunAnim = Run_Weapon2,
SplatBloodOnNoDeath = TRUE,
IdleAnim = Idle_Weapon2,
Icon = PlankNail,
BreakSound = BreakWoodItem,
RunAnim = Run_Weapon2,
TreeDamage = 0,
        IdleAnim = Idle_Weapon2,
MetalValue = 5,
        BreakSound  =  SpikedPlankBreak,
TwoHandWeapon = TRUE,
        DoorHitSound = SpikedPlankHit,
CriticalChance = 25,
HitSound = SpikedPlankHit,
CritDmgMultiplier = 5,
HitFloorSound = SpikedPlankHit,
MinDamage = 0.5,
SwingSound = SpikedPlankSwing,
MaxDamage = 0.8,
        TreeDamage =   0,
BaseSpeed = 0.85,
        MetalValue = 5,
DamageCategory = Slash,
        TwoHandWeapon = TRUE,
DamageMakeHole = TRUE,
        CriticalChance = 25,
AttachmentType = Shovel,
        CritDmgMultiplier = 5,
</pre>
        MinDamage = 0.5,
        MaxDamage = 0.8,
        BaseSpeed = 0.85,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
}
}}
}}
 
==See also==
*[[Spiked Baseball Bat]]
*[[Spiked Pickaxe Handle]]


{{Navbox weapons}}
{{Navbox weapons}}

Revision as of 16:31, 31 December 2023

Spiked Plank
Spiked Plank
Spiked Plank
General
Category Weapon - Crafted
Encumbrance
Heavy Load
3.1
Equipped Two-handed
Condition max. 10
Skill Long Blunt
Attachment Back
Damage
Type Slash
Attack speed 0.85
Range 0.61–1.32 tiles
Damage 0.5–0.8
Knockback 0.5
Knockdown 2
Technical details
Base ID Base.PlankNail

A spiked plank is a crafted weapon. It's just a plank with nails hammered into it.

Usage

Weapon

The spiked plank has a very slow attack speed, but compensates with a longer range and damage than many other weapons. Its durability is similar to the kitchen knife, and is quite fragile in comparison to more sturdily built weapons.

The spiked plank, despite its flaws, is a multi-hit weapon, hitting 2 zombies at once (if multi-hit is enabled). It also has a good chance of knocking zombies down so they can be finished off.

Breaking doors

It can cause 8 door damage per swing. For comparison, an axe does 35 damage.

Condition

The spiked plank has a maximum condition of 10. 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 (2 + 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 Condition lower chance
0 0 1/2 (50%)
0 4 1/4 (25%)
0 8 1/6 (17%)
4 0 1/6 (17%)
8 0 1/10 (10%)
4 4 1/8 (13%)
4 8 1/10 (10%)
8 8 1/14 (7%)
10 10 1/16 (6%)

Repairing

A spiked plank cannot be repaired.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
PlankNail.png
Spiked Plank
0.25 Carpentry none Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank
(consumed)
Nails.png
Nails x5
(consumed)

Trivia

  • Strangely, the spiked plank has 0.02 increased range from a regular Plank. This may be due to the nails at the end adding a little bit more reach.

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 PlankNail
	{
	    DisplayCategory = WeaponCrafted,
		MaxRange	=	1.32,
		WeaponSprite	=	NailedPlank,
		MinAngle	=	0.75,
		Type	=	Weapon,
		MinimumSwingTime	=	4,
		KnockBackOnNoDeath	=	FALSE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Improvised;Blunt,
		Weight	=	3.1,
		SplatNumber	=	2,
		ConditionLowerChanceOneIn	=	2,
		PushBackMod	=	0.3,
		SubCategory	=	Swinging,
		ConditionMax	=	10,
		MaxHitCount	=	2,
		DoorDamage	=	8,
		SwingAnim	=	Bat,
		MinRange	=	0.61,
        DisplayName	=	Spiked Plank,
		SwingTime	=	4,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	PlankNail,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   SpikedPlankBreak,
        DoorHitSound = SpikedPlankHit,
		HitSound = SpikedPlankHit,
		HitFloorSound = SpikedPlankHit,
		SwingSound = SpikedPlankSwing,
        TreeDamage  =   0,
        MetalValue = 5,
        TwoHandWeapon = TRUE,
        CriticalChance	=	25,
        CritDmgMultiplier = 5,
        MinDamage	=	0.5,
        MaxDamage	=	0.8,
        BaseSpeed = 0.85,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
	}

See also