User:Calvy/sandbox2: Difference between revisions

From PZwiki
m (Distribution table update)
(Blank)
Tag: Blanking
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{Page version|41.78.16}}
{{Infobox item
|name=Shovel
|model=Shovel_Model.png
|icon=Shovel.png
|icon_name=Shovel
|model2=Shovel02_Model.png
|icon2=Shovel2.png
|icon_name2=Shovel
<!--General-->
|category=Gardening
|weight=2.0
|equipped=Two-handed
|attachment_type=Shovel
|function=[[Farming]]
|skill_type=Blunt
<!--Properties-->
|metal_value=70
|condition_max=10
|condition_lower_chance=10
<!--Damage-->
|damge_type=Slash
|min_damage=0.8
|max_damage=1.9
|door_damage=10
|tree_damage=1
|min_range=0.61
|max_range=1.6
|base_speed=0.8
|push_back=0.5
|knockdown=2
|crit_chance=40
<!--Technical-->
|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==
===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.
===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.
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 Wall|sandbag wall]]s and [[Gravel Bag Wall|gravel bag wall]]s, which offer some protection from [[Weapons#Firearms|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 [[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|long blunt]] skills.
{{Durability weapon|10}}
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Shovel|41.78.16-->
<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
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 4
    | 6
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 4
    | 4
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 4
    | 6
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 4
    | 6
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 4
    | 6
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 4
    | 6
    |-
    | all
    | {{ll|Bag_ToolBag}}
    | 1
    | 4
    |-
    | all
    | {{ll|ToolsBox}}
    | 4
    | 4
    |-
    | all
    | {{ll|counter}}
    | 4
    | 4
    |-
    | all
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | all
    | {{ll|metal_shelves}}
    | 4
    | 0.4
    |-
    | all
    | {{ll|toolcabinet}}
    | 4
    | 4
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0
    |-
    | closet
    | {{ll|crate}}
    | 1
    | 0
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4
    |-
    | construction
    | {{ll|crate}}
    | 4
    | 4
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 4
    |-
    | drugshack
    | {{ll|crate}}
    | 4
    | 4
    |-
    | factory
    | {{ll|crate}}
    | 4
    | 4
    |-
    | factory
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | farmstorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|counter}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|crate}}
    | 1
    | 0
    |-
    | garagestorage
    | {{ll|locker}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | gardenstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | generalstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | gigamart
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | kitchen
    | {{ll|crate}}
    | 4
    | 4
    |-
    | loggingfactory
    | {{ll|crate}}
    | 4
    | 4
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|counter}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|crate}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | producestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | shed
    | {{ll|crate}}
    | 4
    | 4
    |-
    | shed
    | {{ll|locker}}
    | 4
    | 4
    |-
    | shed
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | storageunit
    | {{ll|crate}}
    | 4
    | 4
    |-
    | storageunit
    | {{ll|crate}}
    | 1
    | 0
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1
    | 0
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|counter}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|crate}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | warehouse
    | {{ll|crate}}
    | 4
    | 4
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 4
    | 4
    |}
</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-->
<!--BOT FLAG|Shovel2|41.78.16-->
<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
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 4
    | 6
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 4
    | 4
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 4
    | 6
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 4
    | 6
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 4
    | 6
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 4
    | 6
    |-
    | all
    | {{ll|Bag_ToolBag}}
    | 1
    | 4
    |-
    | all
    | {{ll|ToolsBox}}
    | 4
    | 4
    |-
    | all
    | {{ll|counter}}
    | 4
    | 4
    |-
    | all
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | all
    | {{ll|metal_shelves}}
    | 4
    | 0.4
    |-
    | all
    | {{ll|toolcabinet}}
    | 4
    | 4
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0
    |-
    | closet
    | {{ll|crate}}
    | 1
    | 0
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4
    |-
    | construction
    | {{ll|crate}}
    | 4
    | 4
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 4
    |-
    | drugshack
    | {{ll|crate}}
    | 4
    | 4
    |-
    | factory
    | {{ll|crate}}
    | 4
    | 4
    |-
    | factory
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | farmstorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|counter}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|crate}}
    | 1
    | 0
    |-
    | garagestorage
    | {{ll|locker}}
    | 4
    | 4
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | gardenstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | gardenstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | generalstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | gigamart
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | kitchen
    | {{ll|crate}}
    | 4
    | 4
    |-
    | loggingfactory
    | {{ll|crate}}
    | 4
    | 4
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|counter}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|crate}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | pawnshop
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | producestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | shed
    | {{ll|crate}}
    | 4
    | 4
    |-
    | shed
    | {{ll|locker}}
    | 4
    | 4
    |-
    | shed
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | storageunit
    | {{ll|crate}}
    | 4
    | 4
    |-
    | storageunit
    | {{ll|crate}}
    | 1
    | 0
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1
    | 0
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|counter}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|crate}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | toolstore
    | {{ll|shelves}}
    | 4
    | 4
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 4
    | 4
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 4
    |-
    | warehouse
    | {{ll|crate}}
    | 4
    | 4
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 4
    | 4
    |}
</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==
{{CodeBox|[[File:Shovel.png]] {{ID|Base.Shovel}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1727
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
    }
}}
[[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==
*[[Trowel]]
*[[Hand Fork]]
*[[Farming]]
{{Navbox items|blunt}}
[[Category:Farming tools]]
[[Category:Tools]]

Revision as of 14:37, 25 April 2024