Crafted Spear: Difference between revisions
(Unsure of how to do all of the variants.) |
m (added the formula for losing durability) |
||
Line 60: | Line 60: | ||
== 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 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> | ||
== Crafting == | == Crafting == |
Revision as of 17:38, 6 July 2021
{{Improve}}
. Last edit was 06/07/2021.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)
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:
- Bread Knife
- Butter Knife
- Fork
- Letter Opener
- Scalpel
- Spoon
- Scissors
- Hand Fork
- Screwdriver
- Kitchen Knife
- Hunting Knife
- Machete
- Ice Pick
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", }, }