Crafted Spear: Difference between revisions

From PZwiki
(Updating to 41.5 details; as WoodenLance is obsoleted in favor of SpearCrafted in a prior patch(unknown which one, last update to this page was 37.8). Calculated *approximate* chance for a random zombie to have a spear. Requires additional work.)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{languages|Wooden Spear}}
{{languages|Wooden Spear}}
{{header|The Game World|Items|Tools|version=Version 37|incver=8}}{{Tools
{{header|The Game World|Items|Tools|version=Version 41|incver=5}}{{Tools
|image = StickSharpened.png
|image = StickSharpened.png
|primaryuse= Fishing
|primaryuse= Fishing
|otheruses= Kill Zombies
|otheruses= Kill Zombies
|weight = 0.4
|weight = 0.4
}}A '''wooden spear''' is a tool that is crafted by a player and cannot be naturally found. It is used as a basic fishing tool. It has immensely feeble durability in combat and does only a low amount of damage. Once the spear breaks it is unrepairable.  
}}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. Once the spear breaks it cannot be repaired and must be discarded.  


Using it in combat is not advisable, though it does have decent range.
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.
 
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 ==
Line 24: Line 26:
== Code ==
== Code ==
  <nowiki>
  <nowiki>
    item WoodenLance
From items_weapons.txt:
         MaxRange = 1.5,
    item SpearCrafted
         WeaponSprite = Poolcue,
    {
         MinAngle = 0.2,
         MaxRange = 1.4,
         Type = Weapon,
         WeaponSprite = SpearCrafted,
         MinimumSwingTime = 2,
         MinAngle = 0.8,
         KnockBackOnNoDeath = FALSE,
         Type = Weapon,
         SwingAmountBeforeImpact = 0.02,
         MinimumSwingTime = 2,
         Categories = Improvised;Blunt,
         KnockBackOnNoDeath = FALSE,
         ConditionLowerChanceOneIn = 1,
         SwingAmountBeforeImpact = 0.02,
         Weight = 0.4,
         Categories = Improvised;Spear,
         SplatN.umber = 0,
         ConditionLowerChanceOneIn = 2,
         PushBackMod = 0.3,
         Weight = 1.7,
        MaxDamage = 0.7,
         SplatNumber = 1,
         SubCategory = Swinging,
         PushBackMod = 0.3,
         ConditionMax = 3,
         SubCategory = Spear,
         MaxHitCount = 2,
         ConditionMax = 5,
         DoorDamage = 2,
         MaxHitCount = 2,
         SwingAnim = Bat,
         DoorDamage = 5,
        WeaponWeight = 1,
         SwingAnim = Spear,
         DisplayName = Wooden Spear,
         DisplayName = Crafted Spear,
         MinRange = 0.61,
         MinRange = 0.98,
         SwingTime = 2,
         SwingTime = 2,
        MinDamage = 0.5,
         KnockdownMod = 0,
         KnockdownMod = 0,
         SplatBloodOnNoDeath = FALSE,
         SplatBloodOnNoDeath = FALSE,
         Icon = SpearStick,
         Icon = StickSharpened,
         RunAnim = Run_Weapon2,
         RunAnim = Run_Weapon2,
         IdleAnim = Idle_Weapon2,
         IdleAnim = Idle_Weapon2,
         BreakSound =   BreakWoodItem,
         BreakSound = PZ_WoodSnap,
         TreeDamage =   0,
         TreeDamage = 0,
         TwoHandWeapon = TRUE,
         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:
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",
},
}
</nowiki>
</nowiki>



Revision as of 03:16, 13 May 2021


The Game WorldItemsToolsCrafted Spear

Template:ToolsA 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. Once the spear breaks it cannot be repaired and must be discarded.

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.

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

Crafting

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

Name Recipe Description Crafting Level












Code

	
From items_weapons.txt:
    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:
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