Badminton Racket: Difference between revisions

From PZwiki
(creation)
 
(Update distribution file)
 
(28 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Testing|build=[[Build 41]]}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Badminton Racket}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=54}}
{{Infobox item
{{Infobox weapon
|name=Badminton Racket
|display_name=Badminton Racket
|model=BadmintonRacket_Model.png
|name_colour=Weapon
|icon=BadmintonRacket.png
|name_text_colour=Weapon
|icon_name=Badminton Racket
|image=BadmintonRacket.png
|image_width=120px
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Sports
|weight=1
|weight=1
|equipped=One-handed
|equipped=One-handed
|attachment_type=Racket
|skill_type=Blunt
<!--PROPERTIES-->
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=4
|condition_max=4
|attachment_type=Racket
<!--CHARACTERISTICS-->
<!--DAMAGE-->
<!--DAMAGE-->
|type=Blunt
|damage_type=Blunt
|swing_time=4
|min_damage=0.1
|max_damage=0.2
|door_damage=2
|tree_damage=0
|min_range=0.61
|min_range=0.61
|max_range=1.25
|max_range=1.25
|min_damage=0.1
|base_speed=1.2
|max_damage=0.2
|push_back=0.3
|push_back=0.3
|knockdown=2
|knockdown=2
|door_damage=2
<!-- TECHNICAL -->
<!--TECHNICAL DETAILS-->
|item_id=Base.BadmintonRacket
|class_name=BadmintonRacket
}}
}}
The badminton racket is a one handed long blunt weapon.
A '''badminton racket''' is a one-handed improvised long blunt [[Weapons|weapon]].
__TOC__
__TOC__


==Usage==
==Usage==
===Weapon===
===Weapon===
It has poor damage, poor durability and a long swing time.
It has poor damage, poor durability, and high attack speed.


===Breaking doors===
===Breaking doors===
It is very poor at breaking down doors, dealing only 2 damage per hit
It is very poor at breaking down doors, dealing only 2 damage per hit.


===Tree chopping===
===Tree chopping===
Line 42: Line 44:


==Condition==
==Condition==
It is a long blunt weapon. It has a maximum condition of 4 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (3 + maintenance x 2)</code>
The badminton racket has a maximum condition of 4. 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 (3 + 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|3}}


===Repairing===
===Repairing===
Line 58: Line 62:


==Distribution==
==Distribution==
===Buildings===
The loot distributions can be found in the table(s) below.
It can be found inside crates in garages and storage units
 
<!--BOT FLAG|BadmintonRacket|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>BadmintonRacket distribution
        <span class="mw-customtoggle-togglebox-BadmintonRacket" 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-BadmintonRacket">
    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
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | schoolstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | sportstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | sportstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | sportstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | sportstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | sportstorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | sportstorage
    | {{ll|shelves}}
    | 41.14%
    |-
    | sportstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | sportstore
    | {{ll|shelves}}
    | 41.14%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-BadmintonRacket" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|BadmintonRacket|41.78.16-->


==Code==
==Code==
{{CodeBox|
===Item===
===Item===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=54}}
  | lang = java
<pre>
  | line = true
item BadmintonRacket
  | start = 843
MaxRange = 1.25,
  | source = items_weapons.txt
WeaponSprite = BadmintonRacket,
  | retrieved = true
MinAngle = 0.75,
  | version = 41.78.16
Type = Weapon,
  | code =
MinimumSwingTime = 4,
item BadmintonRacket
KnockBackOnNoDeath = FALSE,
    {
SwingAmountBeforeImpact = 0.02,
        DisplayCategory = Sports,
Categories = Improvised;Blunt,
        MaxRange = 1.25,
ConditionLowerChanceOneIn = 3,
        WeaponSprite = BadmintonRacket,
Weight = 1,
        MinAngle = 0.75,
SplatNumber = 1,
        Type = Weapon,
PushBackMod = 0.3,
        MinimumSwingTime = 4,
SubCategory = Swinging,
        KnockBackOnNoDeath = FALSE,
ConditionMax = 4,
        SwingAmountBeforeImpact = 0.02,
MaxHitCount = 2,
        Categories = Improvised;Blunt,
DoorDamage = 2,
        ConditionLowerChanceOneIn = 3,
SwingAnim = Bat,
        Weight = 1,
DisplayName = Badminton Racket,
        SplatNumber = 1,
MinRange = 0.61,
        PushBackMod = 0.3,
SwingTime = 4,
        SubCategory = Swinging,
KnockdownMod = 2,
        ConditionMax = 4,
SplatBloodOnNoDeath = FALSE,
        MaxHitCount = 2,
Icon = BadmintonRacket,
        DoorDamage = 2,
BreakSound = BadmintonRacketBreak,
        SwingAnim = Bat,
DoorHitSound = BadmintonRacketHit,
        DisplayName = Badminton Racket,
HitSound = BadmintonRacketHit,
        MinRange = 0.61,
HitFloorSound = BadmintonRacketHit,
        SwingTime = 4,
SwingSound = BadmintonRacketSwing,
        KnockdownMod = 2,
TreeDamage = 0,
        SplatBloodOnNoDeath = FALSE,
CriticalChance = 0,
        Icon = BadmintonRacket,
MinDamage = 0.1,
        BreakSound =   BadmintonRacketBreak,
MaxDamage = 0.2,
        DoorHitSound = BadmintonRacketHit,
BaseSpeed = 1.2,
HitSound = BadmintonRacketHit,
AttachmentType = Racket,
HitFloorSound = BadmintonRacketHit,
</pre>
SwingSound = BadmintonRacketSwing,
        TreeDamage =   0,
        CriticalChance = 0,
        MinDamage = 0.1,
        MaxDamage = 0.2,
        BaseSpeed = 1.2,
        AttachmentType = Racket,
    }
}}


===Repair===
===Repair===
'''''From fixing.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=54}}
  | lang = java
 
  | line = true
  | start = 61
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
     fixing Fix Badminton Racket
     fixing Fix Badminton Racket
     {
     {
Line 114: Line 228:
       Fixer : Scotchtape=3,
       Fixer : Scotchtape=3,
     }
     }
}}
}}
==See also==
*[[Baseball Bat]]
*[[Golf Club]]
*[[Tennis Racket]]
{{Navbox items|blunt}}


{{Navbox_weapons}}
[[Category:Sports]]

Latest revision as of 11:57, 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]
Badminton Racket
BadmintonRacket Model.png
General
Category
Sports
Encumbrance
Moodle Icon HeavyLoad.png
1
Equipped
One-handed
Slot attached
Back
Skill
Properties
Max condition
4
Performance
Damage type
Blunt
Damage
0.1–0.2
Door damage
2
Tree damage
0
Range
0.61–1.25
Attack speed
1.2
Knockback
0.3
Knockdown
2
Technical
Item ID
Base.BadmintonRacket

A badminton racket is a one-handed improvised long blunt weapon.

Usage

Weapon

It has poor damage, poor durability, and high attack speed.

Breaking doors

It is very poor at breaking down doors, dealing only 2 damage per hit.

Tree chopping

It cannot be used to chop down trees.

Condition

The badminton racket has a maximum condition of 4. 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 (3 + 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/3 (33%)
0 4 1/5 (20%)
0 8 1/7 (14%)
4 0 1/7 (14%)
8 0 1/11 (9%)
4 4 1/9 (11%)
4 8 1/11 (9%)
8 8 1/15 (7%)
10 10 1/17 (6%)

Repairing

Materials that can be used to repair the badminton racket, based on first time repairing.

Repair BadmintonRacket
DuctTape.png
Potentially repairs: 50%
Chance of success: 95%
Scotchtape.png
Potentially repairs: 20%
Chance of success: 95%

Distribution

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

BadmintonRacket 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
bedroom crate 0.65%
closet crate 0.65%
closet crate 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
schoolstorage crate 23.28%
schoolstorage crate 41.14%
sportstorage crate 23.28%
sportstorage crate 41.14%
sportstorage metal_shelves 23.28%
sportstorage metal_shelves 41.14%
sportstorage shelves 23.28%
sportstorage shelves 41.14%
sportstore shelves 23.28%
sportstore shelves 41.14%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item BadmintonRacket
    {
        DisplayCategory = Sports,
        MaxRange	=	1.25,
        WeaponSprite	=	BadmintonRacket,
        MinAngle	=	0.75,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Blunt,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	4,
        MaxHitCount	=	2,
        DoorDamage	=	2,
        SwingAnim	=	Bat,
        DisplayName	=	Badminton Racket,
        MinRange	=	0.61,
        SwingTime	=	4,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	BadmintonRacket,
        BreakSound  =   BadmintonRacketBreak,
        DoorHitSound = BadmintonRacketHit,
		HitSound = BadmintonRacketHit,
		HitFloorSound = BadmintonRacketHit,
		SwingSound = BadmintonRacketSwing,
        TreeDamage  =   0,
        CriticalChance	=	0,
        MinDamage	=	0.1,
        MaxDamage	=	0.2,
        BaseSpeed = 1.2,
        AttachmentType = Racket,
    }

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Badminton Racket
    {
       Require : BadmintonRacket,

       Fixer : DuctTape=2,
       Fixer : Scotchtape=3,
    }

See also