Penetration (PV)

From Caves of Qud Wiki
(Redirected from Penetration)
Jump to navigation Jump to search

PV or Penetration Value or is a value assigned to all penetrating attacks (including weapons, and some mutations and abilities) and plays a key part in damage calculation during attacking.

A penetration is typically a single application of an attack's damage dice against the target. One attack might result in multiple penetrations, multiplying the attack's damage dice accordingly. In game, penetrations are noted in the message log as a parenthetical multiplier after the damage, such as (x2) or (x5).

While the full calculations behind penetration are complex, a key takeaway is that every two points of the attacker's PV will, on average, increase the attack's damage multiplier by one, while every two points of the defender's AV will reduce it by one.

Background

There are two components to an attack.

  • The first component is the hit. If an attacker's to-hit roll (heavily influenced by Agility) succeeds, the attack hits and applies on-hit effects.
  • The second component is penetration. If an attacker's penetration roll (heavily influenced by Strength) succeeds, the attack penetrates and deals damage, and can also apply on-penetration effects (such as the stat-draining effect of a life sap or stat sap).

For more general information about attacking, refer to the relevant combat mechanics page:

How PV Is Displayed in Weapons

A weapon's PV is displayed in game in one of the following ways.

Weapon Type Display Format Example Notes
Melee X PV example basic.png
  • X is the strength-modified PV of a melee weapon. This value changes if your strength changes.
    (4 + strength modifier for one-handed weapons, or 5 + strength modifier for two-handed weapons).
  • Y is the maximum achievable PV for this melee weapon. PV will be capped at this value regardless of your strength modifier. This maximum achievable PV shows up in game only if you've turned on the "Display detailed weapon penetration and damage in name" option.
  • represents vibro penetration, which automatically sets penetration equal to the target's AV, or MA for psionic weapons.
X/Y PV example detailed.png
PV example vibro.png
Missile
(non-bow)
X Missile PV example.png
  • X is the intrinsic PV of a non-bow missile weapon - non-bow missile weapon PV cannot be modified by ammo, strength, or other attributes.
  • represents that after a successful penetration, the projectile will continue its path, attempting to attack anything it strikes until it reaches the end of the zone.
X Missile PV example pierce.jpg
Missile
(bow)
X Bow PV example.png
  • X is the base PV of a bow. This can be modified by the ammo loaded in the bow. In the case of compound bows and turbows, it can also be modified by the wielder's strength. As of 2.0.204.101, the display PV for these bows appears to not be accurate.
Thrown X Thrown PV example.png
  • X is the maximum achievable PV for this thrown weapon. (similar to Y for melee weapons)
  • The actual PV of a thrown weapon will be 5 + your strength modifier. This value is not displayed in game.

Note that the descriptions above apply only to the value that is displayed in the game UI. For the purposes of actual PV calculations, as described in the sections below, the game subtracts 4 from the values that are shown in the UI. So, for example, the fullerite maul pictured above has a penetration value of 2 for the purposes of all in-game calculations. (vibro weapons are an exception to this rule.)

Melee Weapon PV Calculation

The PV of melee weapons is calculated as the follows:

  • Base PV,
    • For non-vibro weapons, the base penetration bonus is equal to the weapon penetration value shown on the equipment screen in-game, minus 4. For example, if the weapon shows 7, your base penetration bonus is 3. Typically this bonus is the same as your strength modifier (or your strength modifier + 1 for two-handed weapons), but it can be capped to a lower value depending on the weapon.
    • For vibro weapons, the base penetration bonus is always equal to the defender's AV, or MA for psionic weapons.
  • +1 bonus PV if the weapon has the Sharp modification,
  • +4 bonus PV if the enemy is asleep,
  • +1 bonus PV to swarmer attackers for each additional swarmer enemy that surrounds their opponent,
  • and additional bonus PV from the Charge, Lunge, Long Blade Proficiency, Improved Aggressive Stance, Shank, or Slam skills as applicable.

A critical hit is guaranteed one penetration regardless of PV if the source of the critical hit is the player character.[1]

Ranged Weapon PV Calculation (Non-Bows)

Ranged weapon PV is determined by the PV of the gun itself. The PV of the bullet does not matter and remains static no matter what ammo is loaded into the gun.

Critical hits on ranged weapons add a flat +2 PV to the shot, increased to +4 if the weapon is a pistol and the user has Dead Shot.

Ranged Weapon PV Calculation (Bows)

A bow's base PV is determined by the PV of the arrow loaded into the bow. The compound bow also has the effect of adding the wielder's strength modifier to the penetration value. The turbow adds +4 PV to the shot and then adds the wielder's strength modifier to the penetration value.

Thrown Weapon PV Calculation

Thrown weapon PV is calculated as follows:

  1. Start with a base penetration of 5.
  2. Add the thrower's Strength Modifier, up to but not exceeding the PV () value shown on the thrown item in game.
    • A negative strength modifier cannot reduce this value below 5 for thrown weapons.
    • Objects that aren't explicitly thrown weapons have a maximum PV value of 6.
  3. Minus 4 from the calculated total
    • Similar to melee weapons, the thrown weapon PV used for internal calculations is always 4 lower than what is displayed in game.

Penetration Formula for Damage

Step 1 - Roll the singlet dice plus the attacker's PV against the defender's defence (typically AV or MA) 3 times (let's call this a triplet):

Step 1a - Each individual roll within the triplet works as follows (let's call each roll a singlet):
Step 1a.i - Roll 1d10-2 (the typical singlet dice used). Each time that the maximum result (in this case, 8) is rolled, perform the singlet dice roll again and continue adding the results together.
Step 1a.ii - Calculate the maximum possible PV (the modifier used without any caps applied, such as what the attacker's PV would be without a Strength bonus cap on their weapon). In cases where the PV is displayed, reduce it to the internal PV of the attack (what is displayed minus 4) if it is greater. Add this value to the roll calculated in Step 1a.i.
Step 1a.iii - Note whether the total result from Step 1a.ii is greater than the target's defence.
Step 1b - If at least one singlet roll was greater than the target's defence, the attack penetrates one time (or one more time if this is a subsequent triplet). If all three singlet rolls were greater than the target's defence, reduce the maximum possible PV by 2, return to Step 1, and perform another triplet of rolls to determine if the attack penetrates an additional time. (Continue this loop, reducing maximum possible PV by 2 each time, until at least one singlet fails to roll higher than the target's defence.)

In summary, the attack penetrates and deals damage equal to its damage dice once for each triplet of rolls where at least one singlet was higher than the target's defence[2]).

If all three rolls in the first triplet are equal to or lower than the target's defence, the attack fails to penetrate at all.

Penetration vs. AV Chart

The following chart shows the chances to penetrate against a creature depending on the relative value of attacker's PV versus the target's AV. Keep in mind that this chart corresponds to the internal PV value of a weapon. For example, the internal PV of a 7 weapon is 3, so a 7 weapon versus a creature with ♦2 would correspond to the +1 PV column of this chart. Similarly, the internal PV of a 4 weapon is 0, so a 4 weapon versus a creature with ♦4 would correspond to the -4 PV column of this chart.

In other words, when using this chart, assume the weapon has 4 less penetration than shown in the game UI.

Once your PV equals or exceeds the target's AV, each +2 extra PV will ensure one additional penetration against the target.

-6 PV -5 PV -4 PV -3 PV -2 PV -1 PV PV == AV +1 PV +2 PV +3 PV +4 PV +5 PV +6 PV +7 PV +8 PV +9 PV +10 PV +11 PV +12 PV
At Least 1 Penetration 48.8% 65.7% 78.4% 87.5% 93.6% 97.3% 99.2% 99.9% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100%
At Least 2 Penetrations 0.2% 0.7% 3.1% 8.2% 16.9% 30.0% 47.9% 70.9% 99.2% 99.9% 100% 100% 100% 100% 100% 100% 100% 100% 100%
At Least 3 Penetrations < 0.001% < 0.001% 0.01% 0.09% 0.7% 2.8% 8.7% 21.9% 47.9% 70.9% 99.2% 99.9% 100% 100% 100% 100% 100% 100% 100%
At Least 4 Penetrations < 0.001% < 0.001% < 0.001% < 0.001% 0.002% 0.03% 0.3% 2.1% 8.7% 21.9% 47.9% 70.9% 99.2% 99.9% 100% 100% 100% 100% 100%
At Least 5 Penetrations < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% 0.02% 0.3% 2.1% 8.7% 21.9% 47.9% 70.9% 99.2% 99.9% 100% 100% 100%
At Least 6 Penetrations < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% < 0.001% 0.02% 0.3% 2.1% 8.7% 21.9% 47.9% 70.9% 99.2% 99.9% 100%
Average # Of Penetrations 0.5 0.664 0.815 0.958 1.112 1.301 1.561 1.948 2.561 2.948 3.561 3.948 4.561 4.948 5.561 5.948 6.561 6.948 7.561

Penetrating Successes

Penetrating successes[3] are a similar concept, used for a variety of conditions (typically mental attacks like Sunder Mind or Proselytize). The singlet dice and defence used will depend on the ability.

To calculate the result of penetrating successes:

Step 1 - Roll the singlet dice plus the attacker's PV against the defender's defence (often MA). Split the singlet dice up so that you are only rolling 1dx at a time, which we will call a singlet die, (e.g. 3d4 becomes 3 separate 1d4 singlet die) and repeat the following process for each of them:

Step 1a - Roll your singlet die (1dx) and add it to your running total. If you rolled anything other than the maximum, or your maximum is 1, skip to Step 1c.
Step 1b - Roll another singlet die and add it to your running total. Then, subtract 1 from your running total. If you rolled the maximum again, repeat this step.
Step 1c - Add your running total to your PV. If the result is equal to or greater than the target's defence, mark 1 penetration. Otherwise, don't mark a penetration.
Step 1d - Repeat from Step 1 if this is not your last singlet die. Once you are done, total your penetrations.

Step 2 - Determine the result of the penetrations by referring to the specific ability. For example, if you are attempting to Proselytize, you succeed if you marked at least 1 penetration.

References

  1. XRL.World.Parts.Combat, method FireEvent, in the "MeleeAttackWithWeapon" case
  2. XRL.Rules.Stat, method RollDamagePenetrations
  3. XRL.World.Parts.Stat, method RollPenetratingSuccess