Crafted Spear: Difference between revisions

From PZwiki
m (Spears can be repaired with standard repairs(wood glue, etc) in 41.50)
(Unsure of how to do all of the variants.)
Line 1: Line 1:
__NOTOC__
{{languages|Wooden Spear}}
{{languages|Wooden Spear}}
{{header|The Game World|Items|Tools|version=Version 41|incver=5}}{{Tools
{{header|The Game World|Items|Tools|version=Version 41|incver=50}}
|image = StickSharpened.png
{{Notice|underconstruction}}
|primaryuse= Fishing
{{Infobox weapon
|otheruses= Kill Zombies
|display_name=Crafted Spear
|weight = 0.4
|name_colour=Weapon
}}A '''wooden spear''' is a tool that is crafted by a player and cannot be randomly found in containers. It is used as a basic [[Fishing]] tool.
|name_text_colour=Weapon
|image=SpearCrafted_Model.png
|image_width=200px
|alternate_image=StickSharpened.png
|alternate_name=Spear
|alternate_image2=SpearButterKnife.png
|alternate_name2=Spear with Bread Knife
|alternate_image3=SpearButterKnife.png
|alternate_name3=Spear with Butter Knife
<!--
|alternate_image4=SpearFork.png
|alternate_name4=Spear with Fork
|alternate_image5=SpearKnife.png
|alternate_name5=Spear with Letter Opener
|alternate_image6=SpearScalpel.png
|alternate_name6=Spear with Scalpel
|alternate_image7=SpearSpoon.png
|alternate_name7=Spear with Spoon
|alternate_image8=SpearScissors.png
|alternate_name8=Spear with Scissors
|alternate_image9=SpearGardeningFork.png
|alternate_name9=Spear with Hand Fork
|alternate_image10=SpearScrewdriver.png
|alternate_name10=Spear with Screwdriver
|alternate_image11=SpearKnife.png
|alternate_name11=Spear with Kitchen Knife
|alternate_image12=SpearHuntingKnife.png
|alternate_name12=Spear with Hunting Knife
|alternate_image13=SpearMachete.png
|alternate_name13=Spear with Machete
|alternate_image14=SpearIcePick.png
|alternate_name14=Spear with Ice Pick
-->
<!--GENERAL-->
|category=Weapon
|weight=1.7
|condition_max=5
|attachment_type=Shovel
<!--CHARACTERISTICS-->
<!--DAMAGE-->
|type=Spear
|swing_time=2
|min_range=0.98
|max_range=1.4
|min_damage=1
|max_damage=1.5
|push_back=0.3
|knockdown=0
<!--TECHNICAL DETAILS-->
|ingredients=<!-- Omitted because there's many variations -->
|class_name=SpearCrafted
}}
A '''wooden spear''' is a tool that is crafted by a player and cannot be randomly found in containers.


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.
== 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 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 with a 50% chance at 0 Maintenance.


== 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]], or [[Chipped Stone|chipped stone]].
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]].
<br>
<br>
{| class="pztable sortable" style="text-align:center;"  
{| class="pztable sortable" style="text-align:center;"  
Line 23: Line 73:
{{RecipeLookup|3006}}
{{RecipeLookup|3006}}
|}
|}
=== Attachments ===
A spear may have many different attachments, each can be applied with two units of duct tape. The following items can be attached:
*[[Bread Knife]]
*[[Butter Knife]]
*[[Fork]]
*[[Letter Opener]]
*[[Scalpel]]
*[[Spoon]]
*[[Scissors]]
*[[Hand Fork]]
*[[Screwdriver]]
*[[Kitchen Knife]]
*[[Hunting Knife]]
*[[Machete]]
*[[Ice Pick]]
<!-- EDITOR NOTE: We should almost certainly make a recipe for this, no? -->
== 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 ==
== Code ==

Revision as of 01:37, 16 June 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 16/06/2021.
Crafted Spear
Crafted Spear
Spear Spear with Bread Knife Spear with Butter Knife
General
Category Weapon
Encumbrance
Heavy Load
1.7
Condition max. 5
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 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.

Crafting

A wooden spear is created by sharpening a tree branch or a plank with a kitchen knife, hunting knife, chipped stone, stone knife, meat cleaver, or machete.

Name Recipe Description Crafting Level












Attachments

A spear may have many different attachments, each can be applied with two units of duct tape. The following items can be attached:

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

Template:Navbox/ToolsTemplate:Navbox/Weapons