Garden Fork: Difference between revisions

From PZwiki
m (Minor cleanup)
m (Automated Formatting)
(26 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Tools|version=Version 41|incver=78.16}}{{Infobox weapon
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Spears}}
|display_name=Garden Fork
{{Page version|41.78.16}}
|name_colour=Weapon
{{Infobox item
|name_text_colour=Weapon
|name=Garden Fork
|image=Pitchfork.png
|model=Pitchfork_Model.png
|image_width=200px
|icon=Pitchfork.png
|icon_name=Garden Fork
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Gardening
|weight=1.5
|weight=1.5
|function=[[Farming]]
|condition_max=10
|condition_max=10
<!--CHARACTERISTICS-->
|attachment_type=Shovel
|skill_type=Spear
<!--DAMAGE-->
<!--DAMAGE-->
|type=Spear
|type={{tooltip|Slash|Creates holes in clothing.}}
|swing_time=2
|base_speed=0.9
|min_range=0.61
|min_range=0.61
|max_range=1.37
|max_range=1.37
|min_damage=1
|min_damage=1
|max_damage=1.5
|max_damage=1.5
|door_damage=7
|tree_damage=0
|push_back=0.3
|push_back=0.3
|knockdown=0
|knockdown=0
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=item Garden Fork
|item_id=Base.GardenFork
}}The '''Garden Fork''' is an uncraftable spear-type weapon. It can be used one-handed at the cost of reduced impact. The weapon can be attached to the character's back for quick access and weight reduction.
}}
A '''garden fork''' is an improvised spear [[Weapons|weapon]].


==Usage==
==Usage==
===Farming===
The garden fork can be used similar to a [[shovel]] or [[trowel]] as a way of [[Plowed Land|tilling]] [[grass]] for [[farming]].
===Weapon===
The garden fork can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 1.5 damage (unless a critical hit or using the [[#Special ability: spear charge|spear charge]]) from up to 1.37 tiles away at an attack speed of 0.9.
Although it is a two-handed weapon, it can be used one-handed at the cost of reduced impact. It can be attached to the character's back for quick access and weight reduction.
{{pros-cons
{{pros-cons
<!-- #PROS# - below this line -->
<!-- #PROS# - below this line -->
Line 30: Line 44:
|pros3 = Spear charge ability.
|pros3 = Spear charge ability.
<!-- #CONS# - below this line -->
<!-- #CONS# - below this line -->
|cons1 = The only spear that cannot be crafted.
|cons1 = Cannot be crafted.
}}
}}
====Spear charge====
Every spear has the ability to use a unique spear charge attack. To use the spear charge ability, you must sprint (Left Alt key by default), after a few seconds of sprinting, the character will begin a spear charge and any zombie on the receiving end of the charge will be killed in one blow. Spear charges are best used against lone zombies due to the character being vulnerable during the kill animation. It may also alert nearby zombies from your sprinting, and it is more difficult for the character to turn while sprinting.  The character will fall over if they sprint into a wall.


===Special Ability: Spear Charge===
==Condition==
Every spear has the ability to use a unique spear charge attack. To use the spear charge ability, you must sprint (Left Alt key by default), after a few seconds of sprinting, the character will begin a spear charge and any zombie on the receiving end of the charge will be killed in one blow. Spear charges are best used against lone zombies due to the character being vulnerable during the kill animation. It may also alert nearby zombies from your sprinting, and it is more difficult for the character to turn while sprinting.  The character will fall over if they sprint into a wall.
The garden fork has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|spear]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (10 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the spear and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|spear]] skills.
{{Durability weapon|10}}
 
===Repairing===
A garden fork can be repaired with the following:
*2 × [[Wood Glue]] and level 2 [[Carpentry]]
*2 × [[Duct Tape]]
*2 × [[Glue]]
*4 × [[Adhesive Tape]]


==Distribution==
==Distribution==
The best locations to find a garden fork are farming stores and industrial areas such as warehouses and storage units. Rarely, they may be found inside survivor houses.  
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|6
|-
|all
|[[toolcabinet]]
|4
|1
|-
|bedroom
|[[crate]]
|1
|0.1
|-
|rowspan="2"|closet
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|1
|-
|garagestorage
|[[counter]]
|4
|1
|-
|gardenstore
|[[metal_shelves]]
|4
|1
|-
|generalstore
|[[metal_shelves]]
|4
|0.5
|-
|pawnshop
|[[counter]]
|4
|1
|-
|toolstorestorage
|[[metal_shelves]]
|4
|0.5
|}


==Gallery==
==Gallery==
<gallery>
<gallery>
File:HoldingGardenFork.jpg|Survivor holding the garden fork.
File:HoldingGardenFork.jpg|Survivor holding the garden fork
</gallery>
</gallery>


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|


{{Retrieved|version=41|incver=50}}
===Item===
<pre>
{{CodeSnip
  | lang = java
  | line = true
  | start = 4363
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item GardenFork
item GardenFork
     {
     {
        DisplayCategory = Gardening,
         MaxRange = 1.37,
         MaxRange = 1.37,
         WeaponSprite = GardenFork,
         WeaponSprite = GardenFork,
Line 76: Line 167:
         RunAnim = Run_Weapon2,
         RunAnim = Run_Weapon2,
         IdleAnim = Idle_Weapon2,
         IdleAnim = Idle_Weapon2,
        BreakSound  =  BreakWoodItem,
         TreeDamage  =  0,
         TreeDamage  =  0,
         TwoHandWeapon = TRUE,
         TwoHandWeapon = TRUE,
Line 86: Line 176:
         DamageCategory = Slash,
         DamageCategory = Slash,
         DamageMakeHole = TRUE,
         DamageMakeHole = TRUE,
         BreakSound = HandForkBreak,
         BreakSound =   GardenForkBreak,
         HitFloorSound = HandForkHit,
         HitFloorSound = GardenForkHit,
         ImpactSound = HandForkHit,
         ImpactSound = GardenForkHit,
         DoorHitSound = HandForkHit,
         DoorHitSound = GardenForkHit,
         HitSound = HandForkHit,
         HitSound = GardenForkHit,
        SwingSound = GardenForkSwing,
         AttachmentType = Shovel,
         AttachmentType = Shovel,
         Tags = DigPlow,
         Tags = DigPlow,
     }
     }
</pre>
}}
 
===Repair===
{{CodeSnip
  | lang = java
  | line = true
  | start = 543
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
    fixing Fix Garden Fork
    {
      Require : GardenFork,
 
      Fixer : Woodglue=2; Woodwork=2,
      Fixer : DuctTape=2,
      Fixer : Glue=2,
      Fixer : Scotchtape=4,
    }
}}
}}
 
==See also==
*[[Hand Fork]]
*[[Hand Scythe]]
 
{{Navbox items|spears}}
 


{{Navbox weapons}}
[[Category:Farming tools]]
[[Category:Weapons]]
[[Category:Tools]]
[[Category:Melee Weapons]]

Revision as of 08:44, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Garden Fork
Pitchfork Model.png
General
Category
Gardening
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Slot attached
Back
Function
Skill
Spear
Properties
Max condition
10
Performance
Damage
1–1.5
Door damage
7
Tree damage
0
Range
0.61–1.37
Attack speed
0.9
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.GardenFork

A garden fork is an improvised spear weapon.

Usage

Farming

The garden fork can be used similar to a shovel or trowel as a way of tilling grass for farming.

Weapon

The garden fork can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 1.5 damage (unless a critical hit or using the spear charge) from up to 1.37 tiles away at an attack speed of 0.9.

Although it is a two-handed weapon, it can be used one-handed at the cost of reduced impact. It can be attached to the character's back for quick access and weight reduction.

Pros Cons
  • Long reach, great for not getting too close to zombies.
  • Highest durability of any spear.
  • Spear charge ability.
  • Cannot be crafted.

Spear charge

Every spear has the ability to use a unique spear charge attack. To use the spear charge ability, you must sprint (Left Alt key by default), after a few seconds of sprinting, the character will begin a spear charge and any zombie on the receiving end of the charge will be killed in one blow. Spear charges are best used against lone zombies due to the character being vulnerable during the kill animation. It may also alert nearby zombies from your sprinting, and it is more difficult for the character to turn while sprinting. The character will fall over if they sprint into a wall.

Condition

The garden fork has a maximum condition of 10. Its rate of degradation is influenced by the spear and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (10 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the spear and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and spear skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/10 (10%)
0 4 1/12 (8%)
0 8 1/14 (7%)
4 0 1/14 (7%)
8 0 1/18 (6%)
4 4 1/16 (6%)
4 8 1/18 (6%)
8 8 1/22 (5%)
10 10 1/24 (4%)

Repairing

A garden fork can be repaired with the following:

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
all toolcabinet 4 1
bedroom crate 1 0.1
closet crate 4 1
crate 4 1
garagestorage counter 4 1
gardenstore metal_shelves 4 1
generalstore metal_shelves 4 0.5
pawnshop counter 4 1
toolstorestorage metal_shelves 4 0.5

Gallery

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GardenFork
    {
        DisplayCategory = Gardening,
        MaxRange	=	1.37,
        WeaponSprite	=	GardenFork,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	15,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	2,
        DoorDamage	=	7,
        SwingAnim	=	Spear,
        DisplayName	=	Garden Fork,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Pitchfork,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	30,
        CritDmgMultiplier = 10,
        MinDamage	=	1,
        MaxDamage	=	1.5,
        BaseSpeed = 0.9,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   GardenForkBreak,
        HitFloorSound	=	GardenForkHit,
        ImpactSound	=	GardenForkHit,
        DoorHitSound = GardenForkHit,
        HitSound	=	GardenForkHit,
        SwingSound = GardenForkSwing,
        AttachmentType = Shovel,
        Tags = DigPlow,
    }

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Garden Fork
    {
       Require : GardenFork,

       Fixer : Woodglue=2; Woodwork=2,
       Fixer : DuctTape=2,
       Fixer : Glue=2,
       Fixer : Scotchtape=4,
    }

See also