Durability: Difference between revisions

From PZwiki
No edit summary
(Revamp, addition of formula used in game and example provided.)
Line 1: Line 1:
{{languages|Durability}}
{{languages|Durability}}
{{header|Gameplay|version=Version 41|incver=77}}


==Weapon Durability==
__TOC__
{{clear}}
==Overview==


When used repeatedly, weapons will deteriorate and eventually become unusable.
Weapons deteriorate and eventually become unusable with repeated use.  


The likelihood of dropping a level of durability depends on the particular weapon (for example a [[spiked baseball bat]] is more likely to become damaged with each hit than a regular [[baseball bat]]).
The likelihood of dropping a level of durability depends on the particular weapon (for example a [[spiked baseball bat]] is more likely to become damaged with each hit than a regular [[baseball bat]]). When the final level of durability in a weapon is reached, the weapon will be unequipped. The weapon will show a red cross next to its icon to denote that it is broken and can no longer be used.


When the final level of durability in a weapon is reached, weapon will be unequipped. The weapon will show a red cross next to its icon to denote that it is broken and can no longer be used.
Some weapons which have lost some or all of their durability, can be [[Repairing_Weapons_and_Items|repaired]].


Some weapons which lost some or all of their durability, can be [[Repairing_Weapons_and_Items|repaired]].
==Chances==
The odds of a weapon losing durability depends on three factors: the weapon's <code>ConditionLowerChanceOneIn</code> value, the player's maintenance skill, and the player's proficiency with the weapon. The calculation is as follows:
 
<code>lossChance = 1 / ConditionLowerChanceOneIn + floor(floor(MaintenanceLevel + (WeaponLevel/2))/2)*2</code>
 
===Example===
For example, a [[Baseball Bat]], with a <code>ConditionLowerChanceOneIn</code> value of 20 would have the following odds:
{| class="pztable sortable" style="text-align:center;"
|-
! Maintenance skill
! Weapon-type skill
! Durability lower chance
|-
| 0
| 0
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=0|WeaponLevel=0}}
|-
| 0
| 4
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=0|WeaponLevel=4}}
|-
| 0
| 8
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=0|WeaponLevel=8}}
|-
| 4
| 0
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=4|WeaponLevel=0}}
|-
| 8
| 0
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=8|WeaponLevel=0}}
|-
| 4
| 4
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=4|WeaponLevel=4}}
|-
| 4
| 8
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=4|WeaponLevel=8}}
|-
| 8
| 8
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=8|WeaponLevel=8}}
|-
| 10
| 10
| {{Durability weapon/core|ConditionLowerChanceOneIn=20|MaintenanceLevel=10|WeaponLevel=10}}
|}
 
==See Also==
[[Repairing_Weapons_and_Items|Repairing]]


[[Category:Gameplay]]
[[Category:Gameplay]]

Revision as of 21:09, 16 December 2022

GameplayDurability

Overview

Weapons deteriorate and eventually become unusable with repeated use.

The likelihood of dropping a level of durability depends on the particular weapon (for example a spiked baseball bat is more likely to become damaged with each hit than a regular baseball bat). When the final level of durability in a weapon is reached, the weapon will be unequipped. The weapon will show a red cross next to its icon to denote that it is broken and can no longer be used.

Some weapons which have lost some or all of their durability, can be repaired.

Chances

The odds of a weapon losing durability depends on three factors: the weapon's ConditionLowerChanceOneIn value, the player's maintenance skill, and the player's proficiency with the weapon. The calculation is as follows:

lossChance = 1 / ConditionLowerChanceOneIn + floor(floor(MaintenanceLevel + (WeaponLevel/2))/2)*2

Example

For example, a Baseball Bat, with a ConditionLowerChanceOneIn value of 20 would have the following odds:

Maintenance skill Weapon-type skill Durability lower chance
0 0 1/20 (5%)
0 4 1/22 (5%)
0 8 1/24 (4%)
4 0 1/24 (4%)
8 0 1/28 (4%)
4 4 1/26 (4%)
4 8 1/28 (4%)
8 8 1/32 (3%)
10 10 1/34 (3%)

See Also

Repairing