Tennis Racket: Difference between revisions
m (Add stub, navbox, minor cleanup) |
m (Distribution table update) |
||
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}} | ||
{{Page version|41.78.16}} | |||
{{Infobox item | |||
|name=Tennis Racket | |||
|model=TennisRacket_Model.png | |||
|icon=TennisRacket.png | |||
|icon_name=Tennis Racket | |||
<!--GENERAL--> | |||
|category=Sports | |||
|weight=1 | |||
|equipped=One-handed | |||
|condition_max=4 | |||
|attachment_type=Racket | |||
<!--CHARACTERISTICS--> | |||
<!--DAMAGE--> | |||
|type=Blunt | |||
|base_speed=1.1 | |||
|min_range=0.61 | |||
|max_range=1.25 | |||
|min_damage=0.3 | |||
|max_damage=0.5 | |||
|door_damage=2 | |||
|tree_damage=0 | |||
|push_back=0.3 | |||
|knockdown=2 | |||
<!--TECHNICAL DETAILS--> | |||
|item_id=Base.TennisRacket | |||
}} | |||
A '''tennis racket''' is a long blunt [[Weapons|weapon]] | |||
== | ==Usage== | ||
=== | ===Weapon=== | ||
The tennis racket can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 0.5 damage to enemies (unless a critical hit) from up to 1.25 tiles away at an attack speed of 1.1. | |||
==Condition== | |||
The tennis 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 (6 + 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|6}} | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|TennisRacket|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>TennisRacket distribution | |||
<span class="mw-customtoggle-togglebox-TennisRacket" 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-TennisRacket"> | |||
<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 | |||
|- | |||
| bedroom | |||
| {{ll|crate}} | |||
| 1 | |||
| 0.4 | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| schoolstorage | |||
| {{ll|crate}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| schoolstorage | |||
| {{ll|crate}} | |||
| 4 | |||
| 10.0 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-TennisRacket" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|TennisRacket|41.78.16--> | |||
== Code == | |||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 882 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item TennisRacket | |||
{ | |||
DisplayCategory = Sports, | |||
MaxRange = 1.25, | MaxRange = 1.25, | ||
WeaponSprite = TennisRacket, | WeaponSprite = TennisRacket, | ||
Line 43: | Line 130: | ||
BaseSpeed = 1.1, | BaseSpeed = 1.1, | ||
AttachmentType = Racket, | AttachmentType = Racket, | ||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Badminton Racket]] | |||
*[[Baseball Bat]] | |||
*[[Golf Club]] | |||
{{Navbox items|blunt}} | |||
[[Category:Sports]] |
Revision as of 16:50, 24 April 2024
A tennis racket is a long blunt weapon
Usage
Weapon
The tennis racket can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 0.5 damage to enemies (unless a critical hit) from up to 1.25 tiles away at an attack speed of 1.1.
Condition
The tennis 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 (6 + 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/6 (17%) |
0 | 4 | 1/8 (13%) |
0 | 8 | 1/10 (10%) |
4 | 0 | 1/10 (10%) |
8 | 0 | 1/14 (7%) |
4 | 4 | 1/12 (8%) |
4 | 8 | 1/14 (7%) |
8 | 8 | 1/18 (6%) |
10 | 10 | 1/20 (5%) |
Distribution
The loot distributions can be found in the table(s) below.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
bedroom | crate | 1 | 0.4 |
closet | crate | 4 | 4.0 |
schoolstorage | crate | 4 | 20.0 |
schoolstorage | crate | 4 | 10.0 |
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
item TennisRacket
{
DisplayCategory = Sports,
MaxRange = 1.25,
WeaponSprite = TennisRacket,
MinAngle = 0.75,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised;Blunt,
ConditionLowerChanceOneIn = 6,
Weight = 1,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 4,
MaxHitCount = 2,
DoorDamage = 2,
SwingAnim = Bat,
DisplayName = Tennis Racket,
MinRange = 0.61,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
Icon = TennisRacket,
BreakSound = TennisRacketBreak,
DoorHitSound = TennisRacketHit,
HitSound = TennisRacketHit,
HitFloorSound = TennisRacketHit,
SwingSound = TennisRacketSwing,
TreeDamage = 0,
CriticalChance = 5,
CritDmgMultiplier = 1,
MinDamage = 0.3,
MaxDamage = 0.5,
BaseSpeed = 1.1,
AttachmentType = Racket,
}