Broom: Difference between revisions
Gambastical (talk | contribs) m (Correct categorising mistake.) |
m (Insert empty line above each {{Navbox}}) |
||
(23 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}} | |||
{{Header| | {{Page version|41.78.16}} | ||
{{Infobox | {{Infobox item | ||
| | |name=Broom | ||
| | |model=Pushbroom_Model.png | ||
|icon=Pushbroom.png | |||
<!--GENERAL--> | |||
| | |category=Household | ||
|category= | |||
|weight=1 | |weight=1 | ||
|equipped=Two-handed | |equipped=Two-handed | ||
|attachment_type=Shovel | |||
|function=Cleaning | |||
|skill_type=Blunt | |||
<!--PROPERTIES--> | |||
|material=<!-- E.g. Metal --> | |||
|material_value=<!-- E.g. MetalValue attribute --> | |||
|condition_max=15 | |condition_max=15 | ||
| | <!--DAMAGE--> | ||
| | |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 | ||
| | |base_speed=1.2 | ||
|push_back=0.3 | |push_back=0.3 | ||
|knockdown=0 | |knockdown=0 | ||
| | <!-- TECHNICAL --> | ||
|item_id=Base.Broom | |||
}} | }} | ||
A '''broom''' is a cleaning tool and improvised blunt weapon. | A '''broom''' is a cleaning tool and improvised blunt weapon. | ||
Line 30: | Line 34: | ||
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. | 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. | A mop serves the same purpose. | ||
=== Weapon === | === 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. | 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. | ||
== Distribution == | ==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 × 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"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Containers}} | |||
! Building / Room | |||
! Container | |||
! Rolls | |||
! Chance | |||
|- | |||
| gasstorage | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| laundry | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| mechanic | |||
| {{ll|wardrobe}} | |||
| 4 | |||
| 10.0 | |||
|} | |||
</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== | ==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, | |||
TreeDamage | 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 | == See also == | ||
* [[Bleach]] | |||
* [[Mop]] | * [[Mop]] | ||
* [[ | * [[Sponge]] | ||
* [[Washing Machine]] | |||
==See also== | |||
{{Navbox items|blunt}} | |||
[[Category:Household]] |
Revision as of 14:40, 25 April 2024
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.
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.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
gasstorage | counter | 4 | 10.0 |
laundry | counter | 4 | 10.0 |
mechanic | wardrobe | 4 | 10.0 |
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}