Broom: Difference between revisions

From PZwiki
(Created page with "{{languages|Broom}} {{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=39}}{{Infobox weapon |display_name=Broom |name_colour=Weapon |nam...")
 
(Update distribution file)
 
(34 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Broom}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=39}}{{Infobox weapon
{{Page version|41.78.16}}
|display_name=Broom
{{Infobox item
|name_colour=Weapon
|name=Broom
|name_text_colour=Weapon
|model=Pushbroom_Model.png
|image=Pushbroom.png
|icon=Pushbroom.png
|category=Weapon
<!--GENERAL-->
|category=Household
|weight=1
|weight=1
|weapon_type=Blunt
|equipped=Two-handed
|primary_use=Weapon
|attachment_type=Shovel
|equipped=One-handed
|function=Cleaning
|skill_type=Blunt
<!--PROPERTIES-->
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=15
|condition_max=15
|type=Blunt
<!--DAMAGE-->
|swing_time=2
|damage_type=Blunt
|min_damage=0.2
|max_damage=0.5
|min_range=0.61
|min_range=0.61
|max_range=1.6
|max_range=1.6
|min_damage=0.2
|base_speed=1.2
|max_damage=0.5
|push_back=0.3
|push_back=0.3
|knockdown=0
|knockdown=0
|class_name=Base.Broom
<!-- TECHNICAL -->
|item_id=Base.Broom
}}
A '''broom''' is a cleaning tool and improvised blunt weapon.
 
== Usage ==
=== Cleaning ===
If the player is carrying both a [[Bleach|bottle of bleach]] and a broom, when right-clicking a blood splatter, the option "Clean Blood" will appear. Cleaning bloodstains is currently cosmetic and will not affect the player's health. Both the [[bath towel]] and [[dish towel]] also have the same function, however they also have additional uses and will usually be preferred over the broom.
 
A mop serves the same purpose.
 
=== Weapon ===
A broom can be used as an improvised weapon. It has particularly low durability and damage, but can hit two zombies simultaneously and has longer than average maximum range.
 
==Condition==
The broom has a maximum condition of 3. Its rate of degradation is influenced by the [[Skills|long 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 long 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}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Broom|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Broom distribution
        <span class="mw-customtoggle-togglebox-Broom" 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-Broom">
    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
    |-
    | gasstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | janitor
    | {{ll|counter}}
    | 23.28%
    |-
    | janitor
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | laundry
    | {{ll|counter}}
    | 23.28%
    |-
    | laundry
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | laundry
    | {{ll|shelves}}
    | 23.28%
    |-
    | mechanic
    | {{ll|wardrobe}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | zippeestorage
    | {{ll|counter}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Broom" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Broom|41.78.16-->
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 2002
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Broom
    {
        DisplayCategory = Household,
        MaxRange = 1.6,
        WeaponSprite = Broom,
        MinAngle = 0.85,
        Type = Weapon,
        MinimumSwingTime = 2,
        KnockBackOnNoDeath = FALSE,
        SwingAmountBeforeImpact = 0.02,
        Categories = Improvised;Blunt,
        ConditionLowerChanceOneIn = 2,
        Weight = 1,
        SplatNumber = 1,
        PushBackMod = 0.3,
        SubCategory = Swinging,
        ConditionMax = 3,
        MaxHitCount = 3,
        DoorDamage = 1,
        SwingAnim = Bat,
        DisplayName = Broom,
        MinRange = 0.61,
        SwingTime = 2,
        KnockdownMod = 0,
        SplatBloodOnNoDeath = FALSE,
        Icon = Pushbroom,
        RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        BreakSound  =  BroomBreak,
        DoorHitSound = BroomHit,
HitSound = BroomHit,
HitFloorSound = BroomHit,
SwingSound = BroomSwing,
        TreeDamage  =  0,
        TwoHandWeapon = TRUE,
        CriticalChance = 5,
        CritDmgMultiplier = 1,
        MinDamage = 0.2,
        MaxDamage = 0.5,
        BaseSpeed = 1.2,
        AttachmentType = Shovel,
        Tags = ClearAshes,
    }
}}
}}
}}
== See also ==
* [[Bleach]]
* [[Mop]]
* [[Sponge]]
* [[Washing Machine]]
==See also==
{{Navbox items|blunt}}
[[Category:Household]]

Latest revision as of 12:10, 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]
Broom
Pushbroom Model.png
General
Category
Household
Encumbrance
Moodle Icon HeavyLoad.png
1
Equipped
Two-handed
Slot attached
Back
Function
Cleaning
Skill
Properties
Max condition
15
Performance
Damage type
Blunt
Damage
0.2–0.5
Range
0.61–1.6
Attack speed
1.2
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.Broom

A broom is a cleaning tool and improvised blunt weapon.

Usage

Cleaning

If the player is carrying both a bottle of bleach and a broom, when right-clicking a blood splatter, the option "Clean Blood" will appear. Cleaning bloodstains is currently cosmetic and will not affect the player's health. Both the bath towel and dish towel also have the same function, however they also have additional uses and will usually be preferred over the broom.

A mop serves the same purpose.

Weapon

A broom can be used as an improvised weapon. It has particularly low durability and damage, but can hit two zombies simultaneously and has longer than average maximum range.

Condition

The broom has a maximum condition of 3. 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 (2 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long 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/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.

Broom 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
gasstorage counter 23.28%
janitor counter 23.28%
janitor metal_shelves 23.28%
laundry counter 23.28%
laundry metal_shelves 23.28%
laundry shelves 23.28%
mechanic wardrobe 23.28%
schoolstorage counter 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 Broom
    {
        DisplayCategory = Household,
        MaxRange	=	1.6,
        WeaponSprite	=	Broom,
        MinAngle	=	0.85,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Blunt,
        ConditionLowerChanceOneIn	=	2,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	3,
        MaxHitCount	=	3,
        DoorDamage	=	1,
        SwingAnim	=	Bat,
        DisplayName	=	Broom,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Pushbroom,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   BroomBreak,
        DoorHitSound = BroomHit,
		HitSound = BroomHit,
		HitFloorSound = BroomHit,
		SwingSound = BroomSwing,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	5,
        CritDmgMultiplier = 1,
        MinDamage	=	0.2,
        MaxDamage	=	0.5,
        BaseSpeed = 1.2,
        AttachmentType = Shovel,
        Tags = ClearAshes,
    }

See also

See also