Wooden Spear

From PZwiki
Jump to: navigation, search
Language policy Language: English
Hammer.png
This article or section is currently UNDER CONSTRUCTION.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well, be sure to check the talk page first.
If this page has not been updated in a while, please remove this notice. Last edit was 24/07/2021 by Vaileasys.
Crafted Spear
Crafted Spear
Spear Spear with Bread Knife Spear with Butter Knife Spear with Fork Spear with Letter Opener
General
Category Weapon
Weight
Heavy Load
1.7
Condition max. Default: 5
Crafted: See Crafting
Attachment Shovel
Damage
Type Spear
Swing time 2
Range 0.98–1.4 tiles
Damage 1–1.5
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.SpearCrafted

A wooden spear is a tool that is crafted by a player and cannot be randomly found in containers.

Usage

The spear has relatively high damage and reach for its availability, however it 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 (1 + maintenance x 2)

Fishing

Main article: Fishing

A wooden spear can be used in fishing instead of a fishing rod

Crafting

A wooden 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 wooden spear's max 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 CP Max 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)

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.

Code

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

Retrieved
Version 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
Version 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


Equipment vde
Bag BriefcaseBig Hiking BagDuffelbagFanny PackFlight CaseFirst Aid KitGarbage BagGuitar CaseHandbagNormal Hiking BagLarge BackpackLunchboxMilitary BackpackPlastic BagPurseSackSchool BagSeed BagSewing KitSuitcaseToolboxTote Bag
Kitchen Utensil Baking PanBowlEmpty JarButter KnifeCan OpenerCooking PotEmpty Bottle (Mayonnaise)Empty Bottle (Remoulade)Empty Bottle (Water)Empty Bottle (Alcohol)Empty Pop BottleEmpty JarEmpty MugForkFrying PanHunting KnifeEmpty JarKettleKitchen KnifeMortar and PestleRoasting PanRolling PinSpoon
Electrical Alarm ClockAntique TelevisionCD PlayerCordless PhoneDigital WatchEarbudsGeneratorHeadphonesHome AlarmMakeshift Ham RadioMakeshift RadioMakeshift Walkie TalkiePremium Tech. Walkie TalkiePremium Technologies Ham RadioPremium Technologies RadioPremium Technologies TelevisionSpeakerTactical Walkie TalkieTimerToys-R-Mine Walkie TalkieTV RemoteUS ARMY COMM. Ham RadioUS Army Walkie TalkieV1 Remote ControllerV2 Remote ControllerV3 Remote ControllerValuTech RadioValuTech TelevisionValuTech Walkie TalkieVideo Game
Light CandleFlashlightHand TorchLighterMatches
Lock/Key Car KeyCombination PadlockKey (Door)Key (Padlock)Padlock
Health/Hygiene Bath TowelCleaning LiquidDish TowelExtinguisherMopSoapSuture NeedleSuture Needle HolderTissueTweezersUmbrella
Survival Cage TrapCampfire MaterialsFishing Net TrapFishing RodFishing Rod (crafted)Mouse TrapNotched Wooden PlankStone AxeSnare TrapStick TrapStone HammerTent KitTrap BoxTrap CrateWooden Spear
Stationery PenEraserNeedlePenPencilPenScissors
Tool AxeBall Peen HammerCar Battery ChargerChainsawClub HammerCrowbarGarden HoeHammerHand AxeJackLug WrenchPaint BrushPipe WrenchPropane TorchSawScrewdriverShovelSledgehammerSnow ShovelTire PumpTrowelWooden MalletWrench
Equipment vde
Bag BriefcaseBig Hiking BagDuffelbagFanny PackFlight CaseFirst Aid KitGarbage BagGuitar CaseHandbagNormal Hiking BagLarge BackpackLunchboxMilitary BackpackPlastic BagPurseSackSchool BagSeed BagSewing KitSuitcaseToolboxTote Bag
Kitchen Utensil Baking PanBowlEmpty JarButter KnifeCan OpenerCooking PotEmpty Bottle (Mayonnaise)Empty Bottle (Remoulade)Empty Bottle (Water)Empty Bottle (Alcohol)Empty Pop BottleEmpty JarEmpty MugForkFrying PanHunting KnifeEmpty JarKettleKitchen KnifeMortar and PestleRoasting PanRolling PinSpoon
Electrical Alarm ClockAntique TelevisionCD PlayerCordless PhoneDigital WatchEarbudsGeneratorHeadphonesHome AlarmMakeshift Ham RadioMakeshift RadioMakeshift Walkie TalkiePremium Tech. Walkie TalkiePremium Technologies Ham RadioPremium Technologies RadioPremium Technologies TelevisionSpeakerTactical Walkie TalkieTimerToys-R-Mine Walkie TalkieTV RemoteUS ARMY COMM. Ham RadioUS Army Walkie TalkieV1 Remote ControllerV2 Remote ControllerV3 Remote ControllerValuTech RadioValuTech TelevisionValuTech Walkie TalkieVideo Game
Light CandleFlashlightHand TorchLighterMatches
Lock/Key Car KeyCombination PadlockKey (Door)Key (Padlock)Padlock
Health/Hygiene Bath TowelCleaning LiquidDish TowelExtinguisherMopSoapSuture NeedleSuture Needle HolderTissueTweezersUmbrella
Survival Cage TrapCampfire MaterialsFishing Net TrapFishing RodFishing Rod (crafted)Mouse TrapNotched Wooden PlankStone AxeSnare TrapStick TrapStone HammerTent KitTrap BoxTrap CrateWooden Spear
Stationery PenEraserNeedlePenPencilPenScissors
Tool AxeBall Peen HammerCar Battery ChargerChainsawClub HammerCrowbarGarden HoeHammerHand AxeJackLug WrenchPaint BrushPipe WrenchPropane TorchSawScrewdriverShovelSledgehammerSnow ShovelTire PumpTrowelWooden MalletWrench