Snow Shovel: Difference between revisions

From PZwiki
(updates/fixes incl. standardised article layout, added CodeBox, Condition & Usage)
m (→‎Code: fix code source)
Line 42: Line 42:
   | line = true
   | line = true
   | start = 1681
   | start = 1681
   | source = weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41

Revision as of 13:43, 29 December 2023

Snow Shovel
Snow Shovel
Snow Shovel
General
Category Tool/Weapon
Encumbrance
Heavy Load
1.5
Function Weapon
Equipped Two-handed
Condition max. 10
Skill Long Blunt
Damage
Type Blunt
Attack speed 0.8
Range 0.61–1.6 tiles
Damage 0.8–1.9
Knockback 0.5
Knockdown 0
Technical details
Base ID Base.SnowShovel

A snow shovel is a long blunt weapon.

Usage

Other than being used as a weapon, the snow shovel can be used to clear ashes, dig graves, plow dirt and collect dirt with a sack.

Weapon

The snow shovel's stats are similar to the shovel but cannot damage clothing. It can hit up to 3 enemies at a time (with multi-hit enabled), dealing a maximum of 1.9 damage to enemies (unless a critical hit) from up to 1.6 tiles away at an attack speed of 0.8.

Condition

The snow 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 short 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%)

Code

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

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item SnowShovel
    {
        DisplayCategory = ToolWeapon,
        Type				=			Weapon,
        DisplayName			=		Snow Shovel,
        Icon				=		SnowShovel,
        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	=	SnowShovel,
        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  =   SnowShovelBreak,
        DoorHitSound = SnowShovelHit,
		HitSound = SnowShovelHit,
		HitFloorSound = SnowShovelHit,
		SwingSound = SnowShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MaxDamage			=			1.9,
        MinDamage			=			0.8,
        BaseSpeed = 0.8,
      	WeaponLength = 0.7,
      	AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

See also