Crafted Spear: Difference between revisions

From PZwiki
m (added the formula for losing durability)
(Added info about max condition when crafted + added fishing mention + replaced/added crafting recipes Template:Crafting_survival + un-commented alt images in infobox (infobox to be updated to include up to 15))
Line 1: Line 1:
{{languages|Wooden Spear}}
{{languages}}
{{header|The Game World|Items|Tools|version=Version 41|incver=50}}
{{header|The Game World|Items|Tools|version=Version 41|incver=52}}
{{Notice|underconstruction}}
{{Notice|underconstruction}}
{{Infobox weapon
{{Infobox weapon
Line 13: Line 13:
|alternate_name2=Spear with Bread Knife
|alternate_name2=Spear with Bread Knife
|alternate_image3=SpearButterKnife.png
|alternate_image3=SpearButterKnife.png
|alternate_name3=Spear with Butter Knife
|alternate_name3=Spear with Butter Knife  
<!--
|alternate_image4=SpearFork.png
|alternate_image4=SpearFork.png
|alternate_name4=Spear with Fork
|alternate_name4=Spear with Fork
Line 37: Line 36:
|alternate_image14=SpearIcePick.png
|alternate_image14=SpearIcePick.png
|alternate_name14=Spear with Ice Pick
|alternate_name14=Spear with Ice Pick
-->
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Weapon
|weight=1.7
|weight=1.7
|condition_max=5
|condition_max=Default: 5<br>Crafted: <small>''See [[#Crafting|Crafting]]''</small>
|attachment_type=Shovel
|attachment_type=Shovel
<!--CHARACTERISTICS-->
<!--CHARACTERISTICS-->
Line 55: Line 53:
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|ingredients=<!-- Omitted because there's many variations -->
|ingredients=<!-- Omitted because there's many variations -->
|class_name=SpearCrafted
|class_name=Base.SpearCrafted
}}
}}
A '''wooden spear''' is a tool that is crafted by a player and cannot be randomly found in containers.
A '''wooden spear''' is a tool that is crafted by a player and cannot be randomly found in containers.
Line 61: Line 59:
== Usage ==
== 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 [[Skills#Combat|Maintenance]] is leveled. At level 0 Maintenance, it has a 50% chance  of lowering its condition each attack. The chance of losing durability is: <code>1 in (1 + maintenance x 2)</code>
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 [[Skills#Combat|Maintenance]] is leveled. At level 0 Maintenance, it has a 50% chance  of lowering its condition each attack. The chance of losing durability is: <code>1 in (1 + maintenance x 2)</code>
===Fishing===
{{Main|Fishing}}<!-- Needs more content please -->
A wooden spear can be used in fishing instead of a [[Fishing Rod|fishing rod]]


== Crafting ==
== Crafting ==
A '''wooden spear''' is created by sharpening a [[Tree Branch|tree branch]] or a [[Plank|plank]] with a [[Kitchen Knife|kitchen knife]], [[Hunting Knife|hunting knife]], [[Chipped Stone|chipped stone]], [[Stone Knife|stone knife]], [[Meat Cleaver|meat cleaver]], or [[Machete|machete]].
A wooden spear is created by sharpening a [[Tree Branch|tree branch]] or [[Plank|plank]] with a [[Kitchen Knife|kitchen knife]], [[Hunting Knife|hunting knife]], [[Chipped Stone|chipped stone]], [[Stone Knife|stone knife]], [[Meat Cleaver|meat cleaver]], or [[Machete|machete]].<br>
<br>
The wooden spear's max condition is dependant on the player's [[carpentry]] [[skill]]. This is defined by a random number between: <code>2 + carpentry</code> and <code>4 + carpentry</code>. The tool used to craft the spear will then lose 1 durability, excluding the chipped stone. The chipped stone has a <code>1 in 4</code> chance of being consumed.
{| class="pztable sortable" style="text-align:center;"
{{Crafting header|ing=2}}
|-
{{Crafting survivalist|101|ing=2}}
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
! Crafting Level
{{RecipeLookup|3006}}
|}
|}


=== Attachments ===
=== Upgrading ===
A spear may have many different attachments, each can be applied with two units of duct tape. The following items can be attached:
A spear may have many different attachments, each can be applied with two units of duct tape.<br>
*[[Bread Knife]]
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.
*[[Butter Knife]]
{{Crafting header|ing=3}}
*[[Fork]]
{{Crafting survivalist|102|ing=3}}
*[[Letter Opener]]
{{Crafting survivalist|103|ing=3}}
*[[Scalpel]]
{{Crafting survivalist|104|ing=3}}
*[[Spoon]]
{{Crafting survivalist|105|ing=3}}
*[[Scissors]]
{{Crafting survivalist|106|ing=3}}
*[[Hand Fork]]
{{Crafting survivalist|107|ing=3}}
*[[Screwdriver]]
{{Crafting survivalist|108|ing=3}}
*[[Kitchen Knife]]
{{Crafting survivalist|109|ing=3}}
*[[Hunting Knife]]
{{Crafting survivalist|110|ing=3}}
*[[Machete]]
{{Crafting survivalist|111|ing=3}}
*[[Ice Pick]]
{{Crafting survivalist|112|ing=3}}
<!-- EDITOR NOTE: We should almost certainly make a recipe for this, no? -->
{{Crafting survivalist|113|ing=3}}
{{Crafting survivalist|114|ing=3}}
|}


== Distribution ==
== Distribution ==
Line 166: Line 165:
* [[Foraging]]
* [[Foraging]]


{{Navbox/Tools}}{{Navbox/Weapons}}
{{Navbox_equipment}}{{Navbox_equipment}}
[[Category:Weapons]]
[[Category:Weapons]]
[[Category:Melee Weapons]]
[[Category:Melee Weapons]]

Revision as of 17:35, 24 July 2021

The Game WorldItemsToolsCrafted Spear
Hammer.png
This article 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.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 24/07/2021.
Crafted Spear
Crafted Spear
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 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 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)

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: 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