Plunger: Difference between revisions

From PZwiki
(Added infobox, navbox)
m (Automated Formatting)
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{languages|{{PAGENAME}}}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{header|Project Zomboid|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=55}}
{{Page version|41.78.16}}
{{Infobox weapon
{{Infobox item
|display_name=Plunger
|name=Plunger
|name_colour=Weapon
|model=Plunger_Model.png
|name_text_colour=Weapon
|icon=Plunger.png
|image=Image.png
|icon_name=Plunger
|image_width=120px
|alternate_image=Plunger.png
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Household
|weight=0.5
|weight=0.5
|equipped=One-handed
|equipped=One-handed
Line 16: Line 14:
<!--CHARACTERISTICS-->
<!--CHARACTERISTICS-->
<!--DAMAGE-->
<!--DAMAGE-->
|type=SmallBlunt
|type=Short Blunt
|swing_time=4
|base_speed=1.2
|min_range=0.61
|min_range=0.61
|max_range=1.1
|max_range=1.1
Line 26: Line 24:
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Plunger
|item_id=Base.Plunger
}}
}}
A '''plunger''' is an improvised short blunt weapon.
A '''plunger''' is an improvised short blunt weapon.
Line 32: Line 30:
== 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 &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|2}}
==Distribution==
The loot distributions can be found in the table(s) below.
{| 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
|-
|rowspan="2"|bathroom
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|1
|-
|closet
|[[crate]]
|4
|1
|-
|gasstorage
|[[counter]]
|4
|1
|}


== Code ==
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=55}}
| {{CodeSnip
<pre> item Plunger
  | lang = java
MaxRange = 1.1,
  | line = true
WeaponSprite = Plunger,
  | start = 600
MinAngle = 0.65,
  | source = items_weapons.txt
Type = Weapon,
  | retrieved = true
MinimumSwingTime = 4,
  | version = 41.78.16
KnockBackOnNoDeath = FALSE,
  | code =
SwingAmountBeforeImpact = 0.02,
item Plunger
Categories = Improvised;SmallBlunt,
{
ConditionLowerChanceOneIn = 2,
    DisplayCategory = Household,
Weight = 0.5,
MaxRange = 1.1,
SplatNumber = 1,
WeaponSprite = Plunger,
PushBackMod = 0.3,
MinAngle = 0.65,
SubCategory = Swinging,
Type = Weapon,
ConditionMax = 3,
MinimumSwingTime = 4,
MaxHitCount = 2,
KnockBackOnNoDeath = FALSE,
DoorDamage = 2,
SwingAmountBeforeImpact = 0.02,
SwingAnim = Bat,
Categories = Improvised;SmallBlunt,
DisplayName = Plunger,
ConditionLowerChanceOneIn = 2,
MinRange = 0.61,
Weight = 0.5,
SwingTime = 4,
SplatNumber = 1,
KnockdownMod = 2,
PushBackMod = 0.3,
SplatBloodOnNoDeath = FALSE,
SubCategory = Swinging,
Icon = Plunger,
ConditionMax = 3,
BreakSound = PlungerBreak,
MaxHitCount = 2,
DoorHitSound = PlungerHit,
DoorDamage = 2,
HitSound = PlungerHit,
SwingAnim = Bat,
HitFloorSound = PlungerHit,
DisplayName = Plunger,
SwingSound = PlungerSwing,
MinRange = 0.61,
TreeDamage = 0,
SwingTime = 4,
CriticalChance = 5,
KnockdownMod = 2,
CritDmgMultiplier = 2,
SplatBloodOnNoDeath = FALSE,
MinDamage = 0.3,
Icon = Plunger,
MaxDamage = 0.5,
        BreakSound =   PlungerBreak,
BaseSpeed = 1.2,
        DoorHitSound = PlungerHit,
AttachmentType = Knife,
HitSound = PlungerHit,
</pre>
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 items|blunt}}




{{Navbox_weapons}}
[[Category:Household]]

Revision as of 11:07, 14 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]
Plunger
Plunger Model.png
General
Category
Household
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Equipped
One-handed
Slot attached
Belt
Properties
Max condition
3
Performance
Damage
0.3–0.5
Door damage
2
Range
0.61–1.1
Attack speed
1.2
Knockback
0.3
Knockdown
2
Technical
Item 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 short blunt skills.

For how this is calculated, see: Condition
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%)


Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
bathroom counter 4 1
counter 4 1
closet crate 4 1
gasstorage counter 4 1

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 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,
	}

See also