Penetration (PV): Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(→‎Penetration Formula: latexed the penetration for safe and fun)
Line 18: Line 18:
For a round of penetration, 1d10 is rolled three times.
For a round of penetration, 1d10 is rolled three times.


penetration = (1d10 + PV-((penetration round)*2))
<math alt="Penetration Roll equals 1 d 10 plus PV minus two times Penetration Round">PenetrationRoll = (1d10 + PV-((Penetration Round)\times 2))</math>


If any of these + the attackers PV are greater than the opponents AV, the attack will penetrate once. If all three 1d10s + PV are greater than the AV, the attack penetrates once and another round of penetration is done, rerolling 3 more 1d10s + PV-2.
If any of these + the attackers PV are greater than the opponents AV, the attack will penetrate once. If all three 1d10s + PV are greater than the AV, the attack penetrates once and another round of penetration is done, rerolling 3 more 1d10s + PV-2.


The chance of ''n'' penetrations goes by the formula:
The chance of <math alt="n">n</math> penetrations goes by the formula:


3(1-(AV-(PV-2n))/10) - 3(1-(AV-(PV-2n))/10)<sup>2</sup> + (1-((AV-(PV-2n))/10)<sup>3</sup>*(AV-(PV-2(n-1))/10)<sup>3</sup>
<math>3 \left ( 1-\frac{AV-(PV-2n)}{10}\right ) - 3 \left ( 1-\frac{AV-(PV-2n)}{10} \right ) ^2 + \left ( 1-\frac{AV-(PV-2n)}{10}\right ) ^3\times\left ( \frac{AV-(PV-2(n+1))}{10}\right ) ^3</math>


which is derived from:
If PV = AV, the formula simplifies to


If A<sub>n</sub>, B<sub>n</sub>, C<sub>n</sub>, are each 1 successful roll at n rounds of penetration:
<math>3 \left ( 1-\frac{2n}{10}\right ) - 3 \left ( 1-\frac{2n}{10} \right ) ^2 + \left ( 1-\frac{2n}{10}\right ) ^3\times\left ( \frac{2(n+1)}{10}\right ) ^3</math>


(A<sub>n</sub> v B<sub>n</sub> v C<sub>n</sub>) - (A<sub>n</sub> ^ B<sub>n</sub> ^ C<sub>n</sub>) (the probability that 1 or 2 out of 3 rolls hit)
The probability table would be


OR
{|
! Penetrations
! Probability distribution
! Probability (cumulative)
|-
|0
|0.008
|0.008
|-
|1
|0.512768
|0.520768
|-
|2
|0.392527872
|0.913295872
|-
|3
|0.752768
|0.996545991
|-
|4
|0.488
|1.000000
|-
|5
|0
|1
|}


(A<sub>n</sub> ^ B<sub>n</sub> ^ C<sub>n</sub>) ^ (~A<sub>n+1</sub> ^ ~B<sub>n+1</sub> ^ ~C<sub>n+1</sub>) (the probability that all 3 rolls hit, but the second round of penetration fails to penetrate at all)
 
===Derivation===
 
<math>\frac{AV-(PV-2n)}{10}</math> is the probability that a single roll at <math alt="n">n</math> rounds of penetration fails.
 
If <math alt="A sub n">A_n</math>, <math alt="B sub N">B_n</math>, <math alt="C sub N">C_n</math>, are each the probability 1 successful roll at n rounds of penetration:
 
<math>\rightarrow A_n=B_n=C_n = 1-\frac{AV-(PV-2n)}{10}</math>
 
The probability of n penetrations becomes a sum of the chance that that 1 or 2 out of 3 rolls hit:
 
<math>(A_n \or B_n\or C_n) - \big( (A_n \and B_n) \or (B_n \and C_n) \or (A_n \and C_n) \big)</math>
 
OR the probability that all 3 rolls hit, but the second round of penetration fails to penetrate at all:
 
<math>(A_n \and B_n \and C_n) \and (\sim A_{n+1} \and \sim B_{n+1} \and \sim C_{n+1}) </math>


[[Category:Mechanics]]
[[Category:Mechanics]]

Revision as of 20:28, 8 July 2019

This article has information that is missing or not up to par.
Reason: waiting for math extention to make this page look pretty. What is a critical hit's role in all of this? TODO: add probability calculation table for quick reference

PV or Penetration Value or is a value assigned to all weapons and plays a key part in damage calculation during attacking.

Melee Weapon PV Calculation

Melee weapons have a base PV of 4. The PV will increase by the creatures Strength modifier with an upper limit dictated by the weapon's bonus cap. Two handed weapons and the Sharp mod also increase base PV by 1.

A critical hit(natural 10) is guaranteed one penetration.

Ranged Weapon PV Calculation

This article has information that is missing or not up to par.
Reason: is this the same for grenade launchers, thrown weapons, or bows?

Ranged weapon PV is determined by the PV of the gun itself. The PV of the bullet does not matter.

Critical hits on ranged weapons add a flat +4 PV to the shot.

Penetration Formula

For a round of penetration, 1d10 is rolled three times.

If any of these + the attackers PV are greater than the opponents AV, the attack will penetrate once. If all three 1d10s + PV are greater than the AV, the attack penetrates once and another round of penetration is done, rerolling 3 more 1d10s + PV-2.

The chance of penetrations goes by the formula:

If PV = AV, the formula simplifies to

The probability table would be

Penetrations Probability distribution Probability (cumulative)
0 0.008 0.008
1 0.512768 0.520768
2 0.392527872 0.913295872
3 0.752768 0.996545991
4 0.488 1.000000
5 0 1


Derivation

is the probability that a single roll at rounds of penetration fails.

If , , , are each the probability 1 successful roll at n rounds of penetration:

The probability of n penetrations becomes a sum of the chance that that 1 or 2 out of 3 rolls hit:

OR the probability that all 3 rolls hit, but the second round of penetration fails to penetrate at all: