User:Calvy/sandbox2: Difference between revisions

From PZwiki
(Bot testing)
(New bot test)
Line 1: Line 1:
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Axes}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
|name=Axe
|name=Shovel
|model=Axe_Model.png
|model=Shovel_Model.png
|icon=Axe.png
|icon=Shovel.png
|icon_name=Axe
|icon_name=Shovel
<!--GENERAL-->
|model2=Shovel02_Model.png
|category=Tool/Weapon
|icon2=Shovel2.png
|weight=3
|icon_name2=Shovel
<!--General-->
|category=Gardening
|weight=2.0
|equipped=Two-handed
|equipped=Two-handed
|attachment_type=BigWeapon
|attachment_type=Shovel
|function=Chop trees
|function=[[Farming]]
|skill_type=Axe
|skill_type=Blunt
<!--PROPERTIES-->
<!--Properties-->
|condition_max=13
|metal_value=70
<!--DAMAGE-->
|condition_max=10
|damage_type=Slash
|condition_lower_chance=10
<!--Damage-->
|damge_type=Slash
|min_damage=0.8
|min_damage=0.8
|max_damage=2
|max_damage=1.9
|door_damage=35
|door_damage=10
|tree_damage=35
|tree_damage=1
|min_range=0.61
|min_range=0.61
|max_range=1.2
|max_range=1.6
|base_speed=1
|base_speed=0.8
|push_back=0.3
|push_back=0.5
|knockdown=2
|knockdown=2
|crit_chance=20
|crit_chance=40
|crit_multiplier=5
<!--Technical-->
<!-- TECHNICAL -->
|tag=ClearAshes
|item_id=Base.Axe
|tag2=DigGrave
|tag3=DigPlow
|tag4=TakeDirt
|item_id=Base.Shovel
|item_id2=Base.Shovel2
}}
}}
{{About|the item|the skill|Axe (skill)}}
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]].
An '''axe''' is a two-handed melee [[Weapons|weapon]].


==Usage==
==Usage==
===Weapon===
===General===
The axe is a multi-attack weapon, capable of hitting two [[zombie]]s at a time in a swing (if multi-hit is enabled). It is a two-handed weapon that has a max damage of 2, the third highest of damage of any tool behind the [[pickaxe]] and the [[sledgehammer]].
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===
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.


The axe has a chance to kill zombies in a single, well-charged hit, making it useful for close-quarter combat. It has the advantage of having a greater damage output and durability compared to other tools, making it a great weapon alongside its uses as a tool. Its disadvantage is that it has a long recovery time between swings, leaving the player vulnerable when surrounded.
This option only works with the spade variant of the shovel, not the square head.


===Breaking doors===
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 Wall|sandbag wall]]s and [[Gravel Bag Wall|gravel bag wall]]s, which offer some protection from [[Weapons#Firearms|gunfire]].
It is very effective at breaking down [[door]]s, dealing 35 damage per hit.


===Chopping trees===
===Weapon===
The axe is an ideal harvesting device to cut down trees (also 35 damage) to collect [[log]]s which can be cut with a [[saw]] to create [[Wood Planks|wood planks]].
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==
==Condition==
The axe has a maximum condition of 13. Its rate of degradation is influenced by the [[Skills|axe]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (35 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the axe and maintenance skills.<br>
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.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|axe]] skills.
{{Durability weapon|35}}


===Repairing===
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{| class="wikitable theme-red" style="text-align:center;"
{{Durability weapon|10}}
|-
! Item repaired
! 1st Repair materials = <br> 55% repaired, 100% success
!  <br> 20% repaired, 95% success
!  <br> 10% repaired, 95% success
!  <br> 10% repaired, 95% success
|-
|[[File:Axe.png|32px]]<br>
Axe
| [[File:Woodglue.png|32px]]<br>
[[Wood Glue]] <small>(2 Uses)</small><br>
<small>(Requires Carpentry Level 2)</small>
| [[File:DuctTape.png|32px]]<br>
[[Duct Tape]] <small>(2 Uses)</small>
| [[File:Glue.png|32px]]<br>
[[Glue]] <small>(2 Uses)</small>
| [[File:Scotchtape.png|32px]]<br>
[[Adhesive Tape]] <small>(4 Uses)</small>
|}
It should be noted that repairing the axe makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.


==Distribution==
==Distribution==
Line 93: Line 81:
|[[toolcabinet]]
|[[toolcabinet]]
|4
|4
|0.05
|4
|-
|-
|bedroom
|bedroom
|[[crate]]
|[[crate]]
|1
|1
|0.05
|0.4
|-
|-
|closet
|closet
|[[crate]]
|[[crate]]
|4
|4
|0.05
|4
|-
|-
|rowspan="2"|drugshack
|drugshack
|[[counter]]
|[[counter]]
|4
|4
|0.05
|4
|-
|-
|farmstorage
|[[crate]]
|[[crate]]
|4
|4
|0.05
|4
|-
|-
|farmstorage
|firestorage
|[[crate]]
|[[metal_shelves]]
|4
|4
|-
|garagestorage
|[[counter]]
|4
|4
|-
|gardenstore
|[[metal_shelves]]
|4
|4
|4
|0.05
|-
|-
|rowspan="2"|firestorage
|generalstore
|[[metal_shelves]]
|[[metal_shelves]]
|4
|4
|4
|-
|pawnshop
|[[counter]]
|4
|4
|}
{| 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
|4
|-
|bedroom
|[[crate]]
|1
|1
|0.4
|-
|-
|closet
|[[crate]]
|4
|4
|-
|drugshack
|[[counter]]
|4
|4
|-
|farmstorage
|[[crate]]
|4
|4
|-
|firestorage
|[[metal_shelves]]
|[[metal_shelves]]
|4
|4
|2
|4
|-
|-
|rowspan="2"|garagestorage
|garagestorage
|[[counter]]
|[[counter]]
|4
|4
|0.05
|4
|-
|-
|[[counter]]
|gardenstore
|[[metal_shelves]]
|4
|4
|4
|0.05
|-
|-
|generalstore
|generalstore
|[[metal_shelves]]
|[[metal_shelves]]
|4
|4
|0.05
|4
|-
|-
|pawnshop
|pawnshop
|[[counter]]
|[[counter]]
|4
|4
|0.05
|-
|toolstorestorage
|[[metal_shelves]]
|4
|4
|0.05
|}
|}
Axes are quite rare in the game, but are found most often in [[Crate|storage crates]], which are usually in warehouses and storage facilities. The hardware store in [[West Point]] and [[Riverside]] are a very good place to pick up a few '''axes''' and other useful tools relatively early in the game. Axes begin spawning on Zombie's backs with a very low chance after 15 days survived. Axes can sometimes be found in fire stations, abandoned fire department vehicles, as well as in park ranger vehicles. There is also a chance of obtaining axes by looting barricaded buildings or sheds/garages.
==Crafting==
The axe can be used to slice open a [[watermelon]].
{{Crafting/sandbox2
|watermelon_slice
}}


==Code==
==Code==
{{CodeBox|
{{CodeBox|[[File:Shovel.png]] {{ID|Base.Shovel}}<br>
 
===Item===
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 2624
   | start = 1727
   | source = items_weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
item Axe
item Shovel
{
    {
    DisplayCategory = ToolWeapon,
        DisplayCategory = Gardening,
MaxRange = 1.2,
        Type = Weapon,
WeaponSprite = FireAxe,
        DisplayName = Shovel,
MinAngle = 0.72,
        Icon = Shovel,
Type = Weapon,
        Weight = 2.0,
MinimumSwingTime = 3.0,
        SubCategory    =     Swinging,
KnockBackOnNoDeath = TRUE,
        MinAngle = 0.85,
SwingAmountBeforeImpact = 0.002,
        MaxRange = 1.6,
Categories = Axe,
        MinRange = 0.61,
ConditionLowerChanceOneIn = 35,
        PushBackMod = 0.5,
Weight = 3,
        HitAngleMod = -30.0,
SplatNumber = 3,
        SwingAnim = Bat,
PushBackMod = 0.3,
        MaxHitCount = 3,
SubCategory = Swinging,
        WeaponSprite = Shovel,
ConditionMax = 13,
        IdleAnim = Idle_Weapon2,
MaxHitCount = 2,
        RunAnim = Run_Weapon2,
DoorDamage = 35,
        Weight = 1.5,
IdleAnim = Idle_Weapon2,
        DoorDamage = 10,
SwingAnim = Bat,
        MinimumSwingTime = 2.1,
DisplayName = Axe,
        SwingTime = 2.1,
MinRange = 0.61,
        SwingAmountBeforeImpact = 0.02,
SwingTime = 3.0,
        ConditionLowerChanceOneIn = 10,
HitAngleMod = -30,
        ConditionMax = 10,
SplatSize = 5,
        Categories = Blunt,
KnockdownMod = 2,
SplatBloodOnNoDeath = TRUE,
Icon = Axe,
RunAnim = Run_Weapon2,
         TwoHandWeapon = TRUE,
         TwoHandWeapon = TRUE,
         DoorHitSound = AxeHit,
        BreakSound  =  ShovelBreak,
HitSound = AxeHit,
         DoorHitSound = ShovelHit,
HitFloorSound = AxeHit,
HitSound = ShovelHit,
SwingSound = AxeSwing,
HitFloorSound = ShovelHit,
         BreakSound  =   AxeBreak,
SwingSound = ShovelSwing,
         TreeDamage  =   35,
         KnockdownMod = 2,
         MetalValue = 120,
         KnockBackOnNoDeath = TRUE,
         CriticalChance = 20,
         MetalValue = 70,
         CritDmgMultiplier = 5,
        TreeDamage = 1,
         BaseSpeed = 1,
         CriticalChance = 40,
         MinDamage = 0.8,
         CritDmgMultiplier = 2,
         MaxDamage = 2,
         MaxDamage = 1.9,
WeaponLength = 0.38,
         MinDamage = 0.8,
DamageCategory = Slash,
         BaseSpeed = 0.8,
DamageMakeHole = TRUE,
      WeaponLength = 0.55,
AttachmentType = BigWeapon,
        DamageCategory = Slash,
Tags = ChopTree;CutPlant,
        DamageMakeHole = TRUE,
    }
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}
}}


===Repair===
[[File:Shovel2.png]] {{ID|Base.Shovel2}}<br>
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 3
   | start = 1775
   | source = fixing.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
fixing Fix Axe
item Shovel2
{
    {
  Require : Axe,
        DisplayCategory = Gardening,
 
        Type = Weapon,
      Fixer : Woodglue=2; Woodwork=2,
        DisplayName = Shovel,
      Fixer : DuctTape=2,
        Icon = Shovel2,
      Fixer : Glue=2,
        Weight = 2.0,
      Fixer : Scotchtape=4,
        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==
*[[Wood Axe]]
*[[Trowel]]
*[[Stone Axe]]
*[[Hand Fork]]
*[[Farming]]
 
{{Navbox items|blunt}}
 


{{Navbox items|axe}}


[[Category:Farming tools]]
[[Category:Tools]]
[[Category:Tools]]
[[Category:Carpentry tools]]

Revision as of 13:38, 23 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
Condition lower chance
10
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 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%)

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 4
bedroom crate 1 0.4
closet crate 4 4
drugshack counter 4 4
farmstorage crate 4 4
firestorage metal_shelves 4 4
garagestorage counter 4 4
gardenstore metal_shelves 4 4
generalstore metal_shelves 4 4
pawnshop counter 4 4
Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
all toolcabinet 4 4
bedroom crate 1 0.4
closet crate 4 4
drugshack counter 4 4
farmstorage crate 4 4
firestorage metal_shelves 4 4
garagestorage counter 4 4
gardenstore metal_shelves 4 4
generalstore metal_shelves 4 4
pawnshop counter 4 4

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