Shovel: Difference between revisions

From PZwiki
No edit summary
m (Distribution table update)
 
(33 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{notice|standard}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Shovel}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Tools|Farming Tools|type=Tool|version=Version 41|incver=73}}{{Infobox weapon
{{Infobox item
|display_name=Shovel
|name=Shovel
|name_colour=Tool
|model=Shovel_Model.png
|name_text_colour=Tool
|icon=Shovel.png
|image=Shovel_Model.png
|icon_name=Shovel
|image_width=200px
|model2=Shovel02_Model.png
|alternate_image=Shovel.png
|icon2=Shovel2.png
|alternate_name=Shovel
|icon_name2=Shovel
|alternate_link=
<!--General-->
|alternate_image2=Shovel2.png
|category=Gardening
|alternate_name2=Shovel
|weight=2.0
|alternate_link2=
<!--GENERAL-->
|weight=1.5
|equipped=Two-handed
|equipped=Two-handed
|attachment_type=Shovel
|function=[[Farming]]
|function=[[Farming]]
|skill_type=Blunt
<!--Properties-->
|metal_value=70
|condition_max=10
|condition_max=10
|skill_type=Blunt
|condition_lower_chance=10
<!--DAMAGE-->
<!--Damage-->
|type=Slash
|damge_type=Slash
|swing_time=2.1
|min_damage=0.8
|max_damage=1.9
|door_damage=10
|tree_damage=1
|min_range=0.61
|min_range=0.61
|max_range=1.6
|max_range=1.6
|min_damage=0.8
|base_speed=0.8
|max_damage=1.9
|push_back=0.5
|push_back=0.5
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
|crit_chance=40
|class_name=farming.Shovel
<!--Technical-->
}}A '''shovel''' is a [[farming]] tool or [[Weapons#Long Blunt|long blunt weapon]] that can move dirt, sand, and gravel. It can also [[Farming|till soil]].
|tag=ClearAshes
|tag2=DigGrave
|tag3=DigPlow
|tag4=TakeDirt
|item_id=Base.Shovel
|item_id2=Base.Shovel2
}}
A '''shovel''' is a [[farming]] tool or [[Weapons#Long Blunt|long blunt weapon]] that can move dirt, sand, and gravel. It can also [[Farming|till soil]].


==Usage==
==Usage==
===General===
===General===
 
Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a [[trowel]] or [[Hand Fork|hand fork]], in that they can be used to [[Farming|till]] grass and dirt tiles and to find [[worm]]s.
Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a [[trowel]] or [[Hand Fork|hand fork]] in that they can be used to [[Farming|till]] grass and dirt tiles and to find [[worm]]s.


===Moving tiles===
===Moving tiles===
 
While the player has the shovel and an [[Sack|empty sack]] in their main inventory, a new contextual option will appear when ''right-clicking'' any one of these aforementioned tiles. This new option allows the player to move up to ''four'' tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a [[Dirt Bag|dirt bag]], [[sandbag]] or [[Gravel Bag|gravel bag]], respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.
While the player has the shovel and an [[Sack|empty sack]] in their main inventory, a new contextual option will appear when ''right-clicking'' any one of these aforementioned tiles. This new option allows the player to move up to ''four'' tiles of dirt, sand or gravel into a single sack, upon changing the sack to a [[Dirt Bag|dirt bag]], [[sandbag]] or [[Gravel Bag|gravel bag]], respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.  


This option only works with the spade variant of the shovel, not the square head.
This option only works with the spade variant of the shovel, not the square head.
Line 47: Line 54:


===Weapon===
===Weapon===
The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 [[zombie]] kills before breaking, depending on the players' maintenance and long blunt skills, respectively.
==Condition==
The shovel has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|long blunt]] 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 long blunt and maintenance skills.


The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage, however it is fairly fragile and caps at around 20-50 [[zombie]] kills before breaking, depending on long blunt level.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|10}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Shovel|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Shovel distribution
        <span class="mw-customtoggle-togglebox-Shovel" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Shovel">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | Not referenced
    | {{ll|LoggingFactoryTools}}
    | 4
    | 8.0
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 4
    | 6.0
    |-
    | all
    | {{ll|Bag_ToolBag}}
    | 1
    | 4.0
    |-
    | all
    | {{ll|ToolsBox}}
    | 4
    | 4.0
    |-
    | all
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | all
    | {{ll|toolcabinet}}
    | 4
    | 4.0
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 4.0
    |-
    | farmstorage
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | garagestorage
    | {{ll|counter}}
    | 4
    | 4.0
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | pawnshop
    | {{ll|counter}}
    | 4
    | 4.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Shovel" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Shovel|41.78.16-->


Shovels can commonly be found inside [[Container#Crates|crates]], sheds, and [[Containers#Shelves|work shelves]].
<!--BOT FLAG|Shovel2|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Shovel2 distribution
        <span class="mw-customtoggle-togglebox-Shovel2" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Shovel2">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | Not referenced
    | {{ll|LoggingFactoryTools}}
    | 4
    | 8.0
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 4
    | 6.0
    |-
    | all
    | {{ll|Bag_ToolBag}}
    | 1
    | 4.0
    |-
    | all
    | {{ll|ToolsBox}}
    | 4
    | 4.0
    |-
    | all
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | all
    | {{ll|toolcabinet}}
    | 4
    | 4.0
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 4.0
    |-
    | farmstorage
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | garagestorage
    | {{ll|counter}}
    | 4
    | 4.0
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | pawnshop
    | {{ll|counter}}
    | 4
    | 4.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Shovel2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Shovel2|41.78.16-->


== Code ==
==Code==
'''''From farming.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Shovel.png]] {{ID|Base.Shovel}}<br>
<pre>    
{{CodeSnip
    item Shovel
  | lang = java
         DisplayCategory = Gardening,
  | line = true
         Type = Weapon,
  | start = 1727
         DisplayName = Shovel,
  | source = items_weapons.txt
         Icon = Shovel,
  | retrieved = true
         Weight = 2.0,
  | version = 41.78.16
         SubCategory = Swinging,
  | code =
         MinAngle = 0.85,
item Shovel
         MaxRange = 1.6,
    {
         MinRange = 0.61,
         DisplayCategory = Gardening,
         PushBackMod = 0.5,
         Type = Weapon,
         HitAngleMod = -30.0,
         DisplayName = Shovel,
         SwingAnim = Bat,
         Icon = Shovel,
         MaxHitCount = 3,
         Weight = 2.0,
         WeaponSprite = Shovel,
         SubCategory   =     Swinging,
         IdleAnim = Idle_Weapon2,
         MinAngle = 0.85,
         RunAnim = Run_Weapon2,
         MaxRange = 1.6,
         Weight = 1.5,
         MinRange = 0.61,
         DoorDamage = 10,
         PushBackMod = 0.5,
         MinimumSwingTime = 2.1,
         HitAngleMod = -30.0,
         SwingTime = 2.1,
         SwingAnim = Bat,
         SwingAmountBeforeImpact = 0.02,
         MaxHitCount = 3,
         ConditionLowerChanceOneIn = 10,
         WeaponSprite = Shovel,
         ConditionMax = 10,
         IdleAnim = Idle_Weapon2,
         Categories = Blunt,
         RunAnim = Run_Weapon2,
         TwoHandWeapon = TRUE,
         Weight = 1.5,
         BreakSound = ShovelBreak,
         DoorDamage = 10,
         DoorHitSound = ShovelHit,
         MinimumSwingTime = 2.1,
HitSound = ShovelHit,
         SwingTime = 2.1,
HitFloorSound = ShovelHit,
         SwingAmountBeforeImpact = 0.02,
SwingSound = ShovelSwing,
         ConditionLowerChanceOneIn = 10,
         KnockdownMod = 2,
         ConditionMax = 10,
         KnockBackOnNoDeath = TRUE,
         Categories = Blunt,
         MetalValue = 70,
         TwoHandWeapon = TRUE,
         TreeDamage = 1,
         BreakSound =   ShovelBreak,
         CriticalChance = 40,
         DoorHitSound = ShovelHit,
         CritDmgMultiplier = 2,
HitSound = ShovelHit,
         MaxDamage = 1.9,
HitFloorSound = ShovelHit,
         MinDamage = 0.8,
SwingSound = ShovelSwing,
         BaseSpeed = 0.8,
         KnockdownMod = 2,
       WeaponLength = 0.55,
         KnockBackOnNoDeath = TRUE,
         DamageCategory = Slash,
         MetalValue = 70,
         DamageMakeHole = TRUE,
         TreeDamage = 1,
         AttachmentType = Shovel,
         CriticalChance = 40,
         Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
         CritDmgMultiplier = 2,
</pre>
         MaxDamage = 1.9,
         MinDamage = 0.8,
         BaseSpeed = 0.8,
       WeaponLength = 0.55,
         DamageCategory = Slash,
         DamageMakeHole = TRUE,
         AttachmentType = Shovel,
         Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}


[[File:Shovel2.png]] {{ID|Base.Shovel2}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1775
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Shovel2
    {
        DisplayCategory = Gardening,
        Type = Weapon,
        DisplayName = Shovel,
        Icon = Shovel2,
        Weight = 2.0,
        SubCategory    =    Swinging,
        MinAngle = 0.85,
        MaxRange = 1.6,
        MinRange = 0.61,
        PushBackMod = 0.5,
        HitAngleMod = -30.0,
        SwingAnim = Bat,
        MaxHitCount = 3,
        WeaponSprite = Shovel02,
        IdleAnim = Idle_Weapon2,
        RunAnim = Run_Weapon2,
        Weight = 1.5,
        DoorDamage = 5,
        MinimumSwingTime = 2.1,
        SwingTime = 2.1,
        SwingAmountBeforeImpact = 0.02,
        ConditionLowerChanceOneIn = 10,
        ConditionMax = 10,
        Categories = Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =  ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
        KnockdownMod = 2,
        KnockBackOnNoDeath = TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance = 40,
        CritDmgMultiplier = 2,
        MinDamage = 0.8,
        MaxDamage = 1.9,
        BaseSpeed = 0.8,
      WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}
}}


==See also==
==See also==
*[[Trowel]]
*[[Trowel]]
*[[Hand Fork]]
*[[Hand Fork]]
*[[Farming Guide]]
*[[Farming]]
 
{{Navbox items|blunt}}
 


{{Navbox_equipment}}
{{Navbox_weapons}}


[[Category:Farming]]
[[Category:Farming tools]]
[[Category:Weapons]]
[[Category:Tools]]
[[Category:Melee Weapons]]

Latest revision as of 16:36, 24 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]
Shovel
Shovel Model.png
Shovel02 Model.png
General
Category
Gardening
Encumbrance
Moodle Icon HeavyLoad.png
2.0
Equipped
Two-handed
Slot attached
Back
Function
Skill
Properties
Max condition
10
Base durability
100
Performance
Damage
0.8–1.9
Door damage
10
Tree damage
1
Range
0.61–1.6
Attack speed
0.8
Knockback
0.5
Knockdown
2
Crit chance
40%
Technical
Item ID
Base.Shovel
Base.Shovel2

A shovel is a farming tool or long blunt weapon that can move dirt, sand, and gravel. It can also till soil.

Usage

General

Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a trowel or hand fork, in that they can be used to till grass and dirt tiles and to find worms.

Moving tiles

While the player has the shovel and an empty sack in their main inventory, a new contextual option will appear when right-clicking any one of these aforementioned tiles. This new option allows the player to move up to four tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a dirt bag, sandbag or gravel bag, respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.

This option only works with the spade variant of the shovel, not the square head.

This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by erosion and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up sandbag walls and gravel bag walls, which offer some protection from gunfire.

Weapon

The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 zombie kills before breaking, depending on the players' maintenance and long blunt skills, respectively.

Condition

The shovel has a maximum condition of 10. Its rate of degradation is influenced by the long blunt 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 long blunt and maintenance skills.

Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability 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%)

Distribution

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

Shovel distribution Show / Hide
Containers
Building / Room Container Rolls Chance
Not referenced LoggingFactoryTools 4 8.0
SafehouseLoot counter 4 6.0
all Bag_ToolBag 1 4.0
all ToolsBox 4 4.0
all crate 1 0.4
all toolcabinet 4 4.0
bedroom crate 1 0.4
closet crate 4 4.0
drugshack counter 4 4.0
farmstorage crate 4 4.0
firestorage metal_shelves 4 4.0
garagestorage counter 4 4.0
gardenstore metal_shelves 4 4.0
generalstore metal_shelves 4 4.0
pawnshop counter 4 4.0
Shovel2 distribution Show / Hide
Containers
Building / Room Container Rolls Chance
Not referenced LoggingFactoryTools 4 8.0
SafehouseLoot counter 4 6.0
all Bag_ToolBag 1 4.0
all ToolsBox 4 4.0
all crate 1 0.4
all toolcabinet 4 4.0
bedroom crate 1 0.4
closet crate 4 4.0
drugshack counter 4 4.0
farmstorage crate 4 4.0
firestorage metal_shelves 4 4.0
garagestorage counter 4 4.0
gardenstore metal_shelves 4 4.0
generalstore metal_shelves 4 4.0
pawnshop counter 4 4.0

Code

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

Shovel.png Base.Shovel
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			10,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
		HitSound = ShovelHit,
		HitFloorSound = ShovelHit,
		SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MaxDamage			=			1.9,
        MinDamage			=			0.8,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

Shovel2.png Base.Shovel2
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel2
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel2,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel02,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			5,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MinDamage			=			0.8,
        MaxDamage			=			1.9,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

See also