Plunger: Difference between revisions

From PZwiki
(Added basic weapon information and weapon code information from item_weapons.txt)
 
(Update distribution file)
 
(29 intermediate revisions by 6 users not shown)
Line 1: Line 1:
===Weapon===
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
Considering it's low weight, even though the Plunger does not deal a high amount of damage, it actually deals a completely decent amount in relation to the endurance it costs to swing it. Of course the damage per second potential of this weapon is very limited and with a 5% crit chance, critting is very unlikeable with the plunger.
{{Page version|41.78.16}}
The main thing holding the plunger back though is it's very low durability.
{{Infobox item
|name=Plunger
|model=Plunger_Model.png
|icon=Plunger.png
|icon_name=Plunger
<!--GENERAL-->
|category=Household
|weight=0.5
|equipped=One-handed
|condition_max=3
|attachment_type=Knife
<!--CHARACTERISTICS-->
<!--DAMAGE-->
|type=Short Blunt
|base_speed=1.2
|min_range=0.61
|max_range=1.1
|min_damage=0.3
|max_damage=0.5
|door_damage=2
|push_back=0.3
|knockdown=2
<!--TECHNICAL DETAILS-->
|item_id=Base.Plunger
}}
A '''plunger''' is an improvised short blunt weapon.


===Item===
== Usage ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
A plunger is a short blunt weapon with a low durability and damage.
{{Retrieved|version=41|incver=55}}
 
<nowiki>
==Condition==
     item Plunger
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.
 
<!--BOT FLAG|Plunger|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Plunger distribution
        <span class="mw-customtoggle-togglebox-Plunger" 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-Plunger">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | bathroom
    | {{ll|counter}}
    | 23.28%
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | gasstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | janitor
    | {{ll|counter}}
    | 23.28%
    |-
    | janitor
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | zippeestorage
    | {{ll|counter}}
    | 23.28%
    |}
</div>
     </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Plunger" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Plunger|41.78.16-->
 
== Code ==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 600
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Plunger
{
    DisplayCategory = Household,
MaxRange = 1.1,
MaxRange = 1.1,
WeaponSprite = Plunger,
WeaponSprite = Plunger,
Line 43: Line 145:
         BaseSpeed = 1.2,
         BaseSpeed = 1.2,
         AttachmentType = Knife,
         AttachmentType = Knife,
        {</nowiki>
}
}}
}}
 
==See also==
*[[Broom]]
*[[Mop]]
 
{{Navbox items|blunt}}
 
 
[[Category:Household]]

Latest revision as of 13:34, 30 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.

Plunger distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
bathroom counter 23.28%
closet crate 23.28%
garagestorage crate 23.28%
gasstorage counter 23.28%
janitor counter 23.28%
janitor metal_shelves 23.28%
schoolstorage counter 23.28%
storageunit crate 23.28%
zippeestorage counter 23.28%

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