Crafted Spear

From PZwiki
Revision as of 06:11, 11 May 2022 by IChekhov (talk | contribs)
The Game WorldItemsToolsCrafted Spear
Crafted Spear
Crafted Spear
Crafted Spear Spear with Bread Knife Spear with Butter Knife Spear with Fork Spear with Letter Opener Spear with Scalpel Spear with Spoon
Spear with Scissors Spear with Hand Fork Spear with Screwdriver Spear with Kitchen Knife Spear with Hunting Knife Spear with Machete Spear with Ice Pick
General
Category Weapon
Encumbrance
Heavy Load
1.7
Condition max. Default: 5
Crafted: See Crafting
Skill Spear
Attachment Back
Damage
Type Spear
Attack speed 2
Range 0.98–1.4 tiles
Damage 1–1.5
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.SpearCrafted

A crafted spear, previously called wooden spear, is a weapon and tool that is crafted by a player and cannot be randomly found in containers. Spears can be attached to the character's back for quick access and weight reduction.

Usage

Pros Cons
  • Long reach, great for not getting too close to zombies.
  • Spear charge ability.
  • Easy to gather the resources required to craft it.
  • Able to attach short blades to the spear, making it more powerful.
  • Can be used to fish.
  • Weapon condition influenced by crafter's Carpentry skill level.
  • Weak durability. Carrying additional spears or backup weapons is recommended.
  • Likely to break when fishing.

Condition/Durability

The spear suffers from a low maximum Condition and takes damage at an exceedingly high rate until Maintenance is leveled. At level 0 Maintenance, it has a 50% chance of lowering its condition each attack. The chance of losing durability is: 1 in (2 + (maintenance x 2 + weapon level/2))

There is a workaround for maintaining a single upgraded spear, you can remove the attached weapon and re-attach it, this will reset the number of times repaired to 0, allowing it to be repaired effectively again, note that this consumes a good deal of duct tape in the process.

Special Ability: Spear Charge

Every spear has the ability to use a unique spear charge attack. To use the spear charge ability, you must sprint(Left Alt key by default), after a few seconds of sprinting, the character will begin a spear charge and any zombie on the receiving end of the charge will be killed in one blow. Spear charges are best used against lone zombies due to your character being vulnerable during the kill animation. There are other risks such as nearby zombies being alerted by your sprinting, more difficult for your character to turn while sprinting and your character falling over if they sprint into a wall.

Spear-fishing

Fishing with a crafted spear.
Main article: Fishing

A crafted spear can be used in fishing instead of a fishing rod. Although easier to obtain, a crafted spear is just as likely to break as a twine line on a crafted fishing rod.

A crafted spear has a lower chance of catching a fish, equal to the benefits gained when fishing during dawn or dusk, regardless of the player's fishing level. It also takes less time to complete a fishing cycle compared to any other fishing gear.








Crafting

A crafted spear is created by sharpening a tree branch or plank with a kitchen knife, hunting knife, chipped stone, stone knife, meat cleaver, or machete.
The crafted spear's starting condition is dependant on the player's carpentry skill. This is defined by a random number between: 2 + carpentry and 4 + carpentry. The tool used to craft the spear will then lose 1 durability, excluding the chipped stone. The chipped stone has a 1 in 4 chance of being consumed.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
SpearStick.png
Crafted Spear
1.25 Carpentry Starting condition scales with player's carpentry.
(consumed)

(keep)

Upgrading

A spear may have many different attachments, each can be applied with two units of duct tape.
The upgraded spear's max condition is dependant on the items used to craft it. If the tools are damaged, the spear will have a lower condition.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SpearButterKnife.png
Spear with Bread Knife
0 XP none SpearStick.png
Crafted Spear
(consumed)
KnifeButter.png
Bread Knife
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearButterKnife.png
Spear with Butter Knife
0 XP none SpearStick.png
Crafted Spear
(consumed)
KnifeButter.png
Butter Knife
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearFork.png
Spear with Fork
0 XP none SpearStick.png
Crafted Spear
(consumed)
Fork.png
Fork
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearKnife.png
Spear with Letter Opener
0 XP none SpearStick.png
Crafted Spear
(consumed)
LetterOpener.png
Letter Opener
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearScalpel.png
Spear with Scalpel
0 XP none SpearStick.png
Crafted Spear
(consumed)
Scalpel.png
Scalpel
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearSpoon.png
Spear with Spoon
0 XP none SpearStick.png
Crafted Spear
(consumed)
Spoon.png
Spoon
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearScissors.png
Spear with Scissors
0 XP none SpearStick.png
Crafted Spear
(consumed)
Scissors.png
Scissors
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearGardeningFork.png
Spear with Hand Fork
0 XP none SpearStick.png
Crafted Spear
(consumed)
GardeningFork.png
Hand Fork
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearScrewdriver.png
Spear with Screwdriver
0 XP none SpearStick.png
Crafted Spear
(consumed)
Screwdriver.png
Screwdriver
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearKnife.png
Spear with Knife
0 XP none SpearStick.png
Crafted Spear
(consumed)
KnifeChopping.png
Kitchen Knife
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearHuntingKnife.png
Spear with Hunting Knife
0 XP none SpearStick.png
Crafted Spear
(consumed)
HuntingKnife.png
Hunting Knife
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearMachete.png
Spear with Machete
0 XP none SpearStick.png
Crafted Spear
(consumed)
Machete.png
Machete
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
SpearIcePick.png
Spear with Ice Pick
0 XP none SpearStick.png
Crafted Spear
(consumed)
IcePick.png
Ice Pick
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)

Stats of spear upgrades

Each of the upgraded spears mostly have different stats from the other, but will always be better than the normal spear in at least one stat.

Also see Weapons

Icon Name Weight Attack
Type
Damage Range Swing Time Critical Hit Chance Knockback Knockdown Weapon Durability Base ID
Minimum Maximum Damage done to doors Damage done to trees Minimum Maximum
SpearStick.png Crafted Spear 1.7 Spear 1 1.5 5 - 0.98 1.4 2 30 0.3 - 5 Base.SpearCrafted
SpearButterKnife.png Spear with Bread Knife 1.5 Spear 1 1.6 5 - 0.98 1.55 2 30 0.3 - 6 Base.SpearBreadKnife
SpearButterKnife.png Spear with Butter Knife 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearButterKnife
SpearFork.png Spear with Fork 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearFork
SpearKnife.png Spear with Letter Opener 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearLetterOpener
SpearScalpel.png Spear with Scalpel 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearScalpel
SpearSpoon.png Spear with Spoon 1.5 Spear 1 1.6 5 - 0.98 1.4 2 30 0.3 - 6 Base.SpearSpoon
SpearScissors.png Spear with Scissors 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearScissors
SpearGardeningFork.png Spear with Hand Fork 1.5 Spear 1.1 1.6 6 - 0.98 1.45 2 30 0.3 - 7 Base.SpearHandFork
SpearScrewdriver.png Spear with Screwdriver 1.5 Spear 1.2 1.6 7 - 0.98 1.45 2 30 0.3 - 7 Base.SpearScrewdriver
SpearHuntingKnife.png Spear with Hunting Knife 1.5 Spear 1.2 1.7 7 - 0.98 1.48 2 30 0.3 - 9 Base.SpearHuntingKnife
SpearMachete.png Spear with Machete 1.5 Spear 1.3 2 10 - 0.98 1.55 2 30 0.3 - 12 Base.SpearMachete
SpearIcePick.png Spear with Ice Pick 1.5 Spear 1 1.6 5 - 0.98 1.42 2 30 0.3 - 6 Base.SpearIcePick
SpearKnife.png Spear with Knife 1.5 Spear 1 1.6 5 - 0.98 1.45 2 30 0.3 - 7 Base.SpearKnife

Distribution

Any spear may be randomly generated inside a zombie's stomach after having survived for 30 days. Approximately 0.16% of zombies will have a Spear or Spear with attachments on them.

Gallery

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/)

Retrieved: Build 41.50

item SpearCrafted
        MaxRange			= 1.4,
        WeaponSprite			= SpearCrafted,
        MinAngle			= 0.8,
        Type				= Weapon,
        MinimumSwingTime		= 2,
        KnockBackOnNoDeath		= FALSE,
        SwingAmountBeforeImpact		= 0.02,
        Categories			= Improvised;Spear,
        ConditionLowerChanceOneIn 	= 2,
        Weight				= 1.7,
        SplatNumber			= 1,
        PushBackMod			= 0.3,
        SubCategory			= Spear,
        ConditionMax			= 5,
        MaxHitCount			= 2,
        DoorDamage			= 5,
        SwingAnim			= Spear,
        DisplayName			= Crafted Spear,
        MinRange			= 0.98,
        SwingTime			= 2,
        KnockdownMod			= 0,
        SplatBloodOnNoDeath		= FALSE,
        Icon				= SpearStick,
        RunAnim				= Run_Weapon2,
        IdleAnim			= Idle_Weapon2,
        BreakSound  			= BreakWoodItem,
        TreeDamage  			= 0,
        TwoHandWeapon 			= TRUE,
        CriticalChance			= 30,
        CritDmgMultiplier 		= 10,
        MinDamage			= 1,
        MaxDamage			= 1.5,
        DamageCategory 			= Slash,
        DamageMakeHole 			= TRUE,
        HitFloorSound			= BladeHit,
        ImpactSound			= BladeHit,
	HitSound			= BladeHit,
	AttachmentType 			= Shovel,
        Tags 				= FishingSpear,

From AttachedWeaponDefinitions.lua (Project Zomboid directory/media/lua/shared/Definitions/)

Retrieved: Build 41.50

AttachedWeaponDefinitions.spearStomach = {
	chance = 5, -- chance is total, we'll get the chance of every definition and take one from there
	weaponLocation = {"Stomach"}, -- defined in AttachedLocations.lua
	bloodLocations = {"Torso_Lower","Back"}, -- we add blood & hole on this part
	addHoles = true, -- if true, you need at least one bloodLocation
	daySurvived = 30, -- needed day of survival before seeing this one
	weapons = { -- list of possible weapons, we'll take one randomly from there
		"Base.SpearKnife",
		"Base.SpearCrafted",
		"Base.SpearHuntingKnife",
		"Base.SpearScrewdriver",
		"Base.SpearScissors",
		"Base.SpearScalpel",
		"Base.SpearButterKnife",
		"Base.SpearHuntingKnife",
	},
}

See also