Plunger: Difference between revisions
VaileasysBot (talk | contribs) m (→top: Category update: "Melee weapons") |
(added condition, CodeBox, see also) |
||
Line 1: | Line 1: | ||
{{languages | {{languages}} | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver= | {{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=78.16}} | ||
{{Infobox weapon | {{Infobox weapon | ||
|display_name=Plunger | |display_name=Plunger | ||
Line 9: | Line 9: | ||
|alternate_name=Plunger | |alternate_name=Plunger | ||
<!--GENERAL--> | <!--GENERAL--> | ||
|category= | |category=Household | ||
|weight=0.5 | |weight=0.5 | ||
|equipped=One-handed | |equipped=One-handed | ||
Line 16: | Line 16: | ||
<!--CHARACTERISTICS--> | <!--CHARACTERISTICS--> | ||
<!--DAMAGE--> | <!--DAMAGE--> | ||
|type= | |type=Short Blunt | ||
|swing_time=4 | |swing_time=4 | ||
|min_range=0.61 | |min_range=0.61 | ||
Line 26: | Line 26: | ||
|knockdown=2 | |knockdown=2 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
|class_name=Plunger | |class_name=Base.Plunger | ||
}} | }} | ||
A '''plunger''' is an improvised short blunt weapon. | A '''plunger''' is an improvised short blunt weapon. | ||
Line 32: | Line 32: | ||
== Usage == | == Usage == | ||
A plunger is a short blunt weapon with a low durability and damage. | A plunger is a short blunt weapon with a low durability and damage. | ||
==Condition== | |||
The plunger has a maximum condition of 3. 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 (2 + maintenanceMod × 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|long blunt]] skills. | |||
{{Durability weapon|2}} | |||
== Code == | == Code == | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
MaxRange | | line = true | ||
WeaponSprite | | start = 600 | ||
MinAngle | | source = weapons.txt | ||
Type | | retrieved = true | ||
MinimumSwingTime | | version = 41 | ||
KnockBackOnNoDeath | | incver = 78.16 | ||
SwingAmountBeforeImpact | | code = | ||
Categories | item Plunger | ||
ConditionLowerChanceOneIn = 2, | { | ||
Weight | DisplayCategory = Household, | ||
SplatNumber | MaxRange = 1.1, | ||
PushBackMod | WeaponSprite = Plunger, | ||
SubCategory | MinAngle = 0.65, | ||
ConditionMax | Type = Weapon, | ||
MaxHitCount | MinimumSwingTime = 4, | ||
DoorDamage | KnockBackOnNoDeath = FALSE, | ||
SwingAnim | SwingAmountBeforeImpact = 0.02, | ||
DisplayName | Categories = Improvised;SmallBlunt, | ||
MinRange | ConditionLowerChanceOneIn = 2, | ||
SwingTime | Weight = 0.5, | ||
KnockdownMod | SplatNumber = 1, | ||
SplatBloodOnNoDeath | PushBackMod = 0.3, | ||
Icon | SubCategory = Swinging, | ||
ConditionMax = 3, | |||
MaxHitCount = 2, | |||
HitSound | DoorDamage = 2, | ||
HitFloorSound | SwingAnim = Bat, | ||
SwingSound | DisplayName = Plunger, | ||
MinRange = 0.61, | |||
SwingTime = 4, | |||
KnockdownMod = 2, | |||
SplatBloodOnNoDeath = FALSE, | |||
Icon = Plunger, | |||
BreakSound = PlungerBreak, | |||
DoorHitSound = PlungerHit, | |||
HitSound = PlungerHit, | |||
HitFloorSound = PlungerHit, | |||
SwingSound = PlungerSwing, | |||
TreeDamage = 0, | |||
CriticalChance = 5, | |||
CritDmgMultiplier = 2, | |||
MinDamage = 0.3, | |||
MaxDamage = 0.5, | |||
BaseSpeed = 1.2, | |||
AttachmentType = Knife, | |||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Broom]] | |||
*[[Mop]] | |||
{{Navbox_weapons}} | {{Navbox_weapons}} |
Revision as of 04:51, 29 December 2023
Plunger | ||
---|---|---|
| ||
General | ||
Category | Household | |
Encumbrance | 0.5 | |
Equipped | One-handed | |
Condition max. | 3 | |
Skill | Short Blunt | |
Attachment | Belt | |
Damage | ||
Type | Short Blunt | |
Attack speed | 4 | |
Range | 0.61–1.1 tiles | |
Damage | 0.3–0.5 | |
Door damage | 2 | |
Knockback | 0.3 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.Plunger | |
A plunger is an improvised short blunt weapon.
Usage
A plunger is a short blunt weapon with a low durability and damage.
Condition
The plunger has a maximum condition of 3. 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 (2 + 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.
Maintenance skill | Weapon skill | Condition lower chance |
---|---|---|
0 | 0 | 1/2 (50%) |
0 | 4 | 1/4 (25%) |
0 | 8 | 1/6 (17%) |
4 | 0 | 1/6 (17%) |
8 | 0 | 1/10 (10%) |
4 | 4 | 1/8 (13%) |
4 | 8 | 1/10 (10%) |
8 | 8 | 1/14 (7%) |
10 | 10 | 1/16 (6%) |
Code
Source: ProjectZomboid\media\scripts\weapons.txt
item Plunger
{
DisplayCategory = Household,
MaxRange = 1.1,
WeaponSprite = Plunger,
MinAngle = 0.65,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised;SmallBlunt,
ConditionLowerChanceOneIn = 2,
Weight = 0.5,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 3,
MaxHitCount = 2,
DoorDamage = 2,
SwingAnim = Bat,
DisplayName = Plunger,
MinRange = 0.61,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
Icon = Plunger,
BreakSound = PlungerBreak,
DoorHitSound = PlungerHit,
HitSound = PlungerHit,
HitFloorSound = PlungerHit,
SwingSound = PlungerSwing,
TreeDamage = 0,
CriticalChance = 5,
CritDmgMultiplier = 2,
MinDamage = 0.3,
MaxDamage = 0.5,
BaseSpeed = 1.2,
AttachmentType = Knife,
}