Pipe Wrench: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, Condition and other fixes/updates/adjustments)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=66}}{{Infobox weapon
{{Languages}}
{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=78.16}}
{{Infobox weapon
|display_name=Pipe Wrench
|display_name=Pipe Wrench
|name_colour=Weapon
|name_colour=Weapon
Line 11: Line 13:
|category=Weapon
|category=Weapon
|weight=1.5
|weight=1.5
|function=
|function=[[Plumbing]]
|equipped=One-handed
|equipped=One-handed
|secondary_item=
|condition_max=10
|condition_max=10
|skill_type=Short Blunt
|attachment_type=Wrench
|attachment_type=Wrench
<!--DAMAGE-->
<!--DAMAGE-->
|type=Blunt
|type=Blunt
|swing_time=4
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1.1
|max_range=1.1
Line 26: Line 28:
|push_back=0.3
|push_back=0.3
|knockdown=2
|knockdown=2
<!--TECHNICAL-->
|class_name=Base.PipeWrench
|class_name=Base.PipeWrench
}}The Pipe Wrench is a short blunt weapon.
}}A '''pipe wrench''' is a tool used in [[plumbing]] and as a short blunt [[Weapons|weapon]].


==Usage==
==Usage==
===Plumbing===
{{Main|Plumbing}}
The pipe wrench is primarily used to plumb water fixtures ([[Plumbing#Sinks|sink]]) with a water source ([[Rain Collector Barrel|rain collector barrel]]).
===Weapon===
===Weapon===
The Pipe Wrench is similar to the [[Hammer]] in most of its stats, but comes with a slightly faster swing time at the cost of a higher weight.
The pipe wrench can be used as a weapon, which has similar stats to the [[hammer]].
 
===Breaking doors===
The Pipe Wrench does 10 damage per hit to a door.


===Plumbing===
====Breaking doors====
The Pipe Wrench is required to plumb entities such as sinks, bathtubs, and more. See [[Plumbing]] for more information.
The pipe wrench does 10 damage per hit to a door.


==Condition==
==Condition==
The Pipe Wrench is a [[Skills#Blunt|blunt]] weapon. It has high durability, with a chance to lower condition per hit of <code>1 in (25 + maintenance x 2)</code>.
The pipe wrench has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|short blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (25 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
{{Durability weapon|25}}


===Repairing===
===Repairing===
The Pipe Wrench cannot be repaired.
The pipe wrench cannot be repaired.


==Code==
==Code==
===Item===
{{CodeBox
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
| {{CodeSnip
{{Retrieved|version=41|incver=66}}
  | lang = java
<pre>
  | line = true
item PipeWrench
  | start = 403
{
  | source = weapons.txt
    DisplayCategory = ToolWeapon,
  | retrieved = true
    MaxRange       =       1.1,
  | version = 41
    WeaponSprite   =       PipeWrench,
  | incver = 78.16
    MinAngle       =       0.67,
  | code =
    Type   =       Weapon,
    item PipeWrench
    MinimumSwingTime       =       4,
    {
    KnockBackOnNoDeath     =       FALSE,
        DisplayCategory = ToolWeapon,
    SwingAmountBeforeImpact =       0.02,
        MaxRange = 1.1,
    Categories     =       SmallBlunt,
        WeaponSprite = PipeWrench,
    ConditionLowerChanceOneIn       =       25,
        MinAngle = 0.67,
    Weight =       1.5,
        Type = Weapon,
    SplatNumber     =       1,
        MinimumSwingTime = 4,
    PushBackMod     =       0.3,
        KnockBackOnNoDeath = FALSE,
    SubCategory     =       Swinging,
        SwingAmountBeforeImpact = 0.02,
    ConditionMax   =       10,
        Categories = SmallBlunt,
    MaxHitCount     =       2,
        ConditionLowerChanceOneIn = 25,
    DoorDamage     =       10,
        Weight = 1.5,
    SwingAnim       =       Bat,
        SplatNumber = 1,
    DisplayName     =       Pipe Wrench,
        PushBackMod = 0.3,
    MinRange       =       0.61,
        SubCategory = Swinging,
    SwingTime       =       4,
        ConditionMax = 10,
    KnockdownMod   =       2,
        MaxHitCount = 2,
    SplatBloodOnNoDeath     =       FALSE,
        DoorDamage = 10,
    Icon   =       PipeWrench,
        SwingAnim = Bat,
    BreakSound  =  PipeWrenchBreak,
        DisplayName = Pipe Wrench,
    DoorHitSound = PipeWrenchHit,
        MinRange = 0.61,
    HitSound = PipeWrenchHit,
        SwingTime = 4,
    HitFloorSound = PipeWrenchHit,
        KnockdownMod = 2,
    SwingSound = PipeWrenchSwing,
        SplatBloodOnNoDeath = FALSE,
    TreeDamage  =  0,
        Icon = PipeWrench,
    CriticalChance =       25,
        BreakSound  =  PipeWrenchBreak,
    CritDmgMultiplier = 2,
        DoorHitSound = PipeWrenchHit,
    MinDamage       =       0.5,
HitSound = PipeWrenchHit,
    MaxDamage       =       1,
HitFloorSound = PipeWrenchHit,
    BaseSpeed = 1,
SwingSound = PipeWrenchSwing,
    WeaponLength = 0.3,
        TreeDamage  =  0,
    AttachmentType = Wrench,
        CriticalChance = 25,
}
        CritDmgMultiplier = 2,
</pre>
        MinDamage = 0.5,
        MaxDamage = 1,
        BaseSpeed = 1,
        WeaponLength = 0.3,
        AttachmentType = Wrench,
    }
}}
}}


==See also==
==See also==
*[[Plumbing]]
*[[Plumbing]]
*[[Wrench]]


{{Navbox equipment}}
{{Navbox equipment}}
{{Navbox weapons}}
{{Navbox weapons}}

Revision as of 12:59, 29 December 2023

Pipe Wrench
Pipe Wrench
Pipe Wrench
General
Category Weapon
Encumbrance
Heavy Load
1.5
Function Plumbing
Equipped One-handed
Condition max. 10
Skill Short Blunt
Attachment Belt
Damage
Type Blunt
Attack speed 1
Range 0.61–1.1 tiles
Damage 0.5–1
Knockback 0.3
Knockdown 2
Technical details
Base ID Base.PipeWrench

A pipe wrench is a tool used in plumbing and as a short blunt weapon.

Usage

Plumbing

Main article: Plumbing

The pipe wrench is primarily used to plumb water fixtures (sink) with a water source (rain collector barrel).

Weapon

The pipe wrench can be used as a weapon, which has similar stats to the hammer.

Breaking doors

The pipe wrench does 10 damage per hit to a door.

Condition

The pipe wrench has a maximum condition of 10. Its rate of degradation is influenced by the short blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (25 + 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 short blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/25 (4%)
0 4 1/27 (4%)
0 8 1/29 (3%)
4 0 1/29 (3%)
8 0 1/33 (3%)
4 4 1/31 (3%)
4 8 1/33 (3%)
8 8 1/37 (3%)
10 10 1/39 (3%)

Repairing

The pipe wrench cannot be repaired.

Code

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

Source: ProjectZomboid\media\scripts\weapons.txt

Retrieved: Build 41.78.16
item PipeWrench
    {
        DisplayCategory = ToolWeapon,
        MaxRange	=	1.1,
        WeaponSprite	=	PipeWrench,
        MinAngle	=	0.67,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	SmallBlunt,
        ConditionLowerChanceOneIn	=	25,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	2,
        DoorDamage	=	10,
        SwingAnim	=	Bat,
        DisplayName	=	Pipe Wrench,
        MinRange	=	0.61,
        SwingTime	=	4,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	PipeWrench,
        BreakSound  =   PipeWrenchBreak,
        DoorHitSound = PipeWrenchHit,
		HitSound = PipeWrenchHit,
		HitFloorSound = PipeWrenchHit,
		SwingSound = PipeWrenchSwing,
        TreeDamage  =   0,
        CriticalChance	=	25,
        CritDmgMultiplier = 2,
        MinDamage	=	0.5,
        MaxDamage	=	1,
        BaseSpeed = 1,
        WeaponLength = 0.3,
        AttachmentType = Wrench,
     }

See also