Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Attack Mechanics"

From Paragon Wiki Archive
Jump to: navigation, search
(created)
 
m (References: update link)
 
(29 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{TOCright}}
 
{{TOCright}}
  
= Overview =
+
== Overview ==
 
The master hit chance formula is:
 
The master hit chance formula is:
  
Line 8: Line 8:
 
where
 
where
  
* '''BaseHitChance''' is the chance of hitting the attack would have if there were no modifiers at all – no [[Enhancements]], no buffs, no level differences, nothing
+
* '''BaseHitChance''' is what the attack's chance of hitting would be if there were no modifiers at all – no [[Enhancements]], no buffs, no level differences, nothing
 
* '''ToHitMods''' is the sum of all [[ToHit]] buffs and debuffs (the debuffs will be negative)
 
* '''ToHitMods''' is the sum of all [[ToHit]] buffs and debuffs (the debuffs will be negative)
 
* '''DefMods''' is the sum of all relevant [[Defense]] buffs and debuffs (ditto)
 
* '''DefMods''' is the sum of all relevant [[Defense]] buffs and debuffs (ditto)
 
* '''AccMods''' is the ''product'' of all [[Accuracy]] multipliers, and
 
* '''AccMods''' is the ''product'' of all [[Accuracy]] multipliers, and
 
* Clamp(''x'') limits ''x'' to the range of 5% to 95%
 
* Clamp(''x'') limits ''x'' to the range of 5% to 95%
 +
<br \>
 +
'''ToHitMods''' and '''DefMods''' are 0 by default. '''AccMods''' defaults to 1.
  
'''ToHitMods''' and '''DefMods''' are additive, so they start at 0. '''AccMods''' is multiplicative, so it starts at 1.
 
  
== BaseHitChance ==
+
== The Core Mechanics ==
  
If a player attacks a [[critter]], '''BaseHitChance''' depends on the critter's level relative to his own. The critter's rank doesn't matter. For an equal-level critter, '''BaseHitChance''' is 75%. If the critter is lower-level, add 5% per level of difference. If it's higher, subtract roughly 9% per. An exact table is at the end of this article.
+
=== BaseHitChance ===
  
If a player or critter is attacking a player, '''BaseHitChance''' is 50%. (Critters will then get Accuracy or ToHit modifiers if they're not the same level as the player. These are covered later. Direct player-vs.-player attacks don't get these adjustments since two players attacking each other will always have the same combat level.)
+
If a player attacks a [[critter]], '''BaseHitChance''' depends on the critter's level relative to the player's [[Combat Level]]. The critter's Rank and [[Con System|con color]] don't matter. If the player and the target are the same level, '''BaseHitChance''' is 75%. If the target is below the player's level, add 5% to '''BaseHitChance''' per level of difference. If the target is higher, '''BaseHitChance''' goes down by roughly 9% per level of difference. It's not exactly 9% every single level, but it's close. An exact table of adjustments is at the end of this article.
  
== Accuracy, ToHit, and Defense ==
+
If a player or critter is attacking a player, '''BaseHitChance''' is a flat 50%. Critters then get Accuracy bonuses if they're above the player's level, as well as ToHit modifiers if they're lower or significantly higher. These are covered later. Direct player-vs.-player attacks don't get these adjustments.
  
ToHit and Defense work the same way, but in opposite directions. What they do is pretty simple: they directly adjust the chance of hitting by the amount of the modifier. (That is, they ''would'' be that simple if Accuracy didn't exist, but we'll ignore that for just a moment.)
+
=== ToHit, Defense, and Accuracy ===
 +
 
 +
'''ToHit''' and '''Defense''' work the same way as each other, but in opposite directions. What they do is pretty simple: they directly adjust the chance of hitting by the amount of the modifier. That is, they ''would'' be that simple if Accuracy didn't exist, but we'll ignore that for just a moment.
  
 
:'''Example:''' Let's say you're attacking something with a power that has a 65% chance of hitting. If you got a +20% ToHit buff, your chance of hitting would go up to 85% (65 + 20). If your target then got a +10% Defense buff, your chance would drop to 75% (85 – 10). If you then had your ToHit debuffed by -23%, your hit chance would drop further to 52% (75 – 23).
 
:'''Example:''' Let's say you're attacking something with a power that has a 65% chance of hitting. If you got a +20% ToHit buff, your chance of hitting would go up to 85% (65 + 20). If your target then got a +10% Defense buff, your chance would drop to 75% (85 – 10). If you then had your ToHit debuffed by -23%, your hit chance would drop further to 52% (75 – 23).
  
Accuracy is subtly different. It modifies an attack's chance of hitting by a fraction of itself instead of by a fixed amount.
+
'''Accuracy''' is subtly different. It modifies an attack's chance of hitting by a fraction of itself instead of by a fixed amount. Accuracy changes how often an attack hits in ''proportional'' terms instead of ''absolute'' terms.
  
:'''Example:''' Consider an unbuffed, unenhanced attack that hits 30% of the time. If it got a +50% ToHit buff, its hit chance would rise to 80% (30 + 50). If it got a +50% Accuracy bonus instead, its hit chance would only rise to 45% (30 + (50% of 30), or, alternately, 30 * 1.5).
+
:'''Example:''' Consider an unbuffed, unenhanced attack that hits 30% of the time. If it got a +50% ToHit buff, its hit chance would rise to 80% (30 + 50). If it got a +50% Accuracy bonus instead, its hit chance would only rise to 45% (30 + (50% of 30), which can also be written 30 × 1.5).
  
 
Accuracy is applied in a second step, after all ToHit and Defense modifiers are applied.
 
Accuracy is applied in a second step, after all ToHit and Defense modifiers are applied.
  
=== Accuracy for Players ===
+
==== Calculating Accuracy for Players ====
  
If the attacker is a player, he gets Accuracy multipliers from two places. Multiply them together to get '''AccMods'''.
+
If the attacker is a player, he gets Accuracy multipliers from two places. Multiply them together to get the final Accuracy multiplier for the attack.
  
First, every power has an inherent Accuracy multiplier built into it. It might be greater than or less than 1.0, depending on whether the power is intended to hit more or less reliably than normal. Often, though, it's exactly 1.0 .
+
First, every power has an inherent Accuracy multiplier built into it. This value is 1.0 for most powers, since most powers are intended to hit a normal percentage of the time. Powers that the devs intend to hit more or less often than normal have values above or below 1.0, respectively. Inherent Accuracy usually stays within the range of 1.2 to 0.8 .
  
Second, a player can get an Accuracy multiplier from Enhancements. Accuracy Enhancements (but ''not'' ToHit Buff Enhancements!) in the power itself are the primary source for this kind of Accuracy. [[Invention Origin Enhancements]] Sets that give global Accuracy bonuses can also add small amounts to every power. This multiplier starts at 1.0, and Enhancements can only improve it.
+
Second, a player can get an Accuracy multiplier from Enhancements. Accuracy Enhancements (but ''not'' ToHit Buff!) in the power itself are the primary source for this kind of Accuracy. [[Invention Origin Enhancements]] Sets that give global Accuracy bonuses can also add small amounts to every power. This multiplier starts at 1.0, and Enhancements can only improve it.
  
 
So for players, '''AccMods''' is calculated using:
 
So for players, '''AccMods''' is calculated using:
  
:'''AccMods''' = '''InherentPowerAcc''' × '''EnhancementAcc'''<br>
+
:'''AccMods'''&nbsp;&nbsp;=&nbsp;&nbsp;the power's inherent Accuracy&nbsp;&nbsp;×&nbsp;&nbsp;(1.0 + the power's Accuracy Enhancements + all global Set Accuracy bonuses)
:::= '''InherentPowerAcc''' × (100% + that power's Accuracy Enhancements + all global Set Accuracy bonuses)
+
  
=== Accuracy for Critters ===
+
==== Calcuating Accuracy for Pets and PvE Enemies ====
  
If the attacker is a critter, it gets Accuracy multipliers from three places. First, critter powers each have their own inherent Accuracy modifiers, just like player powers do. Second, critters get an Accuracy multiplier based on Rank. Third, if the critter is attacking a player, it will also get an Accuracy (and possibly a ToHit) modifier if it's not the same level.
+
If the attacker is a critter, its Accuracy comes from three factors. First, critter powers each have their own inherent Accuracy modifiers, just like player powers do. Second, critters get an Accuracy multiplier based on the critter's Rank. Third, if the critter is attacking a player, it gets an Accuracy (and possibly a ToHit) modifier if it's not the same level.
  
 
So for critters, we have a slightly longer formula for figuring '''AccMods''':
 
So for critters, we have a slightly longer formula for figuring '''AccMods''':
  
:'''AccMods''' = '''InherentPowerAcc''' × '''RankAcc''' × '''LevelDifferenceAcc'''
+
:'''AccMods'''&nbsp;&nbsp;=&nbsp;&nbsp;the power's inherent Accuracy&nbsp;&nbsp;×&nbsp;&nbsp;the Accuracy of the enemy's Rank&nbsp;&nbsp;×&nbsp;&nbsp;Accuracy factor due to level difference
  
== Caps and Floors ==
+
 
 +
=== Caps and Floors ===
  
 
Final hit chances are forced to stay in the range of 5%–95% to preserve a measure of uncertainty and prevent modifiers from making a power automatically hit or miss. This range limit is also applied once in the middle of the calculation, after adjusting for ToHit and Defense modifiers but prior to applying Accuracy, to prevent situations where strong Defense buffs and/or ToHit debuffs render Accuracy irrelevant no matter how high it was.
 
Final hit chances are forced to stay in the range of 5%–95% to preserve a measure of uncertainty and prevent modifiers from making a power automatically hit or miss. This range limit is also applied once in the middle of the calculation, after adjusting for ToHit and Defense modifiers but prior to applying Accuracy, to prevent situations where strong Defense buffs and/or ToHit debuffs render Accuracy irrelevant no matter how high it was.
  
  
= The Streak Breaker =
+
== Complications ==
  
On top of all the calculations above, there is a special feature in the game called the ''streak breaker''. Its purpose is to prevent long streaks of misses, and it works by sometimes forcing a hit regardless of probability depending on how high the upcoming attack's final hit chance is and how many consecutive misses the attacker has had so far. This is a direct quote from Cryptic developer [[Weirdbeard]]:
+
=== Beginner's Luck ===
  
<blockquote><i>Final to-hit : misses allowed <br>
+
Beginner's Luck is the community's name for a scaling ToHit bonus for low-level characters that was added as part of [[Issue 12]]. Under Beginner's Luck, characters at [[Combat Level]] 1 get a +15% ToHit bonus — exactly enough to raise their chance of hitting equal-level PvE enemies to 90% from the standard 75%. This bonus steadily decreases as the character gains levels and eventually disappears after Combat Level 19. The full table of Beginner's Luck bonuses, by level, is at the end of this article. It is almost, but not quite, +1% per level under 20.
>.9 : 1 <br>
+
.8-.9 : 2 <br>
+
.6-.8 : 3 <br>
+
.4-.6 : 4 <br>
+
.3-.4 : 6 <br>
+
.2-.3 : 8 <br>
+
0 -.2 : 100 <br>
+
Auto-hit powers are not included in the system. <br>
+
Critters get the benefits of the system as well. <br>
+
The system does not track each power individually; instead it tracks every miss you make in a row, regardless of power (or target). Otherwise you could have nine different powers, each with a 0.95 to-hit, and if you executed them all in a row you could miss each attack (note a caveat at the bottom of the post regarding this). <br>
+
[AoE] attacks are considered distinct sequential attacks on indivudual targets for the purpose of the system (so if you [AoE'ed] two targets and had 0.95 to-hit for both, you be guaranteed to hit one of them). <br>
+
To determine the to-hit used in the table above, you take either the current to-hit, or the worst to-hit in your current miss series, whichever is lower. </i></blockquote>
+
  
= Inaccuracies and Errors =
+
The Beginner's Luck bonus also applies to player [[pet]]s and [[pseudopet]]s, though it's based on their levels, not the player's. Also, since Beginner's Luck is based on Combat Level, it is affected by [[Sidekick]]ing and Exemplaring.
  
Since launch, both players and developers have used the term “accuracy” interchangeably to mean all the following things:
+
=== The Streak Breaker ===
 +
There is a special feature in the game called the ''streak breaker''. Its purpose is to prevent long streaks of misses, and it works by sometimes forcing an attack to hit automatically. Whether the streak breaker comes into play depends on an attack's expected chance of hitting, how many consecutive misses have happened so far, and what their hit chances were.
 +
 
 +
This is a direct quote from Cryptic developer [[Weirdbeard]] explaining the details. (Just to be clear, when he says "to-hit" here, he means the final chance of hitting.)
 +
 
 +
<blockquote><i>Final to-hit : misses allowed <br />
 +
>.9 : 1 <br />
 +
.8-.9 : 2 <br />
 +
.6-.8 : 3 <br />
 +
.4-.6 : 4 <br />
 +
.3-.4 : 6 <br />
 +
.2-.3 : 8 <br />
 +
0 -.2 : 100 <br />
 +
Auto-hit powers are not included in the system. <br />
 +
Critters get the benefits of the system as well. <br />
 +
The system does not track each power individually; instead it tracks every miss you make in a row, regardless of power (or target). Otherwise you could have nine different powers, each with a 0.95 to-hit, and if you executed them all in a row you could miss each attack (note a caveat at the bottom of the post regarding this). <br />
 +
[AoE] attacks are considered distinct sequential attacks on indivudual targets for the purpose of the system (so if you [AoE'ed] two targets and had 0.95 to-hit for both, you be guaranteed to hit one of them). <br />
 +
To determine the to-hit used in the table above, you take either the current to-hit, or the worst to-hit in your current miss series, whichever is lower.</i></blockquote>
 +
 
 +
Here is a list of things to keep in mind about the streakbreaker, how it works, and pitfalls when trying to apply it:
 +
# Zoning resets the streakbreaker.
 +
# The streakbreaker ignores autohitting powers entirely. They do not count as either hits or misses.
 +
# The number of misses the system tolerates before forcing the next attack to hit depends on the lowest chance of hitting in your miss streak so far, or the attack you're about to make, whichever is worse. As soon as you make a single low-accuracy attack, you shift to a worse category, and the streakbreaker will let you miss more before it helps you.
 +
# The streakbreaker only breaks miss streaks by forcing hits. It does ''not'' break hit streaks by forcing misses. It can only help you hit.
 +
# The streakbreaker affects all entities that are allowed to attack. This includes players and enemies. Also, each of your pets and [[pseudopet]] powers has its own streakbreaker record, tracked separately from attacks that come directly from you.
 +
# The streakbreaker tracks attackers, not powers.
 +
# AoEs roll one attack check per target, starting from the closest target to the center of the AoE (or the origin for cones) and working outward.
 +
# Damage auras make attack rolls, and are often overlooked when observing streakbreaker behavior.
 +
# Unslotted Brawl and the minor ranged [[Origin Powers]] are some of the biggest killers of the streakbreaker, since they can have a very low chance to hit a target without accuracy slotting. See rule #3 above.
 +
 
 +
=== Elusivity and PvP ===
 +
:''Main Article:'' [[Elusivity]]
 +
With [[Issue 13]], a feature called '''Elusivity''' was added to improve the protective strength of some [[Defense]]-boosting powers in [[Player vs Player]] combat. Elusivity bonuses were added to several Defense-buffing powers, particularly those in the defensive powersets of [[Scrapper]]s, [[Tanker]]s, [[Stalker]]s, and [[Brute]]s.
 +
 
 +
''Elusivity is a PvP-only mechanic.'' Powers that grant Elusivity bonuses only do so in PvP zones: [[Bloody Bay]], [[Siren's Call]], [[Warburg]], [[Recluse's Victory]], and the [[Arena]]. Other zones don't trigger the bonus. Also, ''Elusivity is a player-only mechanic''. No critters anywhere were given Elusivity bonuses.
 +
 
 +
Elusivity works like the opposite of Accuracy. It reduces the chance of hitting by a proportional amount, unlike Defense, which reduces it by a fixed amount. Elusivity adds an extra factor to the hit chance formula:
 +
 
 +
 
 +
<center>'''HitChance''' = Clamp( '''AccMods''' × (1 - '''TargetElusivity''') × Clamp( '''BaseHitChance''' + '''ToHitMods''' – '''DefMods''' ) )</center>
 +
 
 +
 
 +
Not all Elusivity bonuses apply versus all attacks. Each bonus is marked with the types of attacks it works against. This system is identical to the one used by Defense bonuses, which is complex enough to deserve its own article.
 +
 
 +
=== Pet Accuracy ===
 +
There are two completely unrelated issues with the accuracy of summoned pets and [[pseudopet]]-based powers. One is a misconception, the other may be a bug or a design oversight.
 +
 
 +
First, many powers that work through pets or pseudopets are listed as having an unusually high inherent Accuracy, like 2.0. This is misleading, since it implies that the pet is extremely accurate. In fact, this stat is meaningless, since the act of creating a pet doesn't care about Accuracy. What matter are the Accuracies of the pet's powers, which are stored separately.
 +
 
 +
Second, player-summoned pets seem to be treated as players rather than critters for parts of the attack formula. Their base chance to hit anything seems to be 75%, with no bonus Accuracy due to their rank. Previously, it was believed that a pet's base chance of hitting things was the same 50% that all critters have and that pets got a rank Accuracy multiplier of 1.5. Both these arrangements produce the same 75% ''final'' hit chance versus equal-level enemies with no Defense, but the way player pets apparently work makes them much better than they should be at hitting highly-Defensive or higher-level targets.
 +
 
 +
It is possible this second issue applies to all summoned pets, even those summoned by non-players, since it is known to apply to Malta Auto-Turrets.
 +
 
 +
=== Inconsistent Terminology ===
 +
Since launch, both players and developers have used the term "accuracy" interchangeably to mean all the following things:
  
 
# actual Accuracy, as described here
 
# actual Accuracy, as described here
Line 86: Line 131:
 
# final hit chance
 
# final hit chance
  
In fact, all powers and [[Inspirations]] currently in the game that provide ToHit bonuses or penalties are labeled as +Acc” or “-Acc” in their descriptions. These are almost all incorrect. Only Accuracy Enhancements and global IO Set bonuses actually give Accuracy. All other powers and effects modify ToHit instead, regardless of game text.
+
In fact, nearly all powers and [[Inspirations]] that provide ToHit bonuses or penalties are incorrectly labeled as "+Acc" or "–Acc". Only Accuracy Enhancements, global IO Set bonuses, Ancillary/Patron Pool power Focused Accuracy, and the Combat Training: Accuracy power available to [[Arachnos Soldier]]s and [[Arachnos Widow]]s actually adjust Accuracy. All other powers and effects modify ToHit instead, regardless of game text.
 
+
On a much less prominent note, some older character builders don't correctly handle inherent power Accuracy multipliers. They add it in with the Accuracy bonus from Enhancements rather than multiplying it as a separate factor. Although this is technically incorrect, the final result is very close to correct.
+
 
+
  
= Results, Notes, and Observances =
+
== Results, Notes, and Observations ==
  
 
* The more Accuracy an attack has, the more every single ToHit and Defense modifier affects its chance of hitting.
 
* The more Accuracy an attack has, the more every single ToHit and Defense modifier affects its chance of hitting.
Line 97: Line 139:
 
* Any attack with more Accuracy bonuses than penalties will have a guaranteed chance of hitting ''greater than'' the well-publicized 5% minimum. To be exact, it'll be 5% × '''AccMods'''.
 
* Any attack with more Accuracy bonuses than penalties will have a guaranteed chance of hitting ''greater than'' the well-publicized 5% minimum. To be exact, it'll be 5% × '''AccMods'''.
 
* ToHit and Defense are exact opposites. That is, increasing either produces the exact same change in the overall chance of hitting as decreasing the other by the same amount. Keep in mind, though, that a power that tries to debuff some aspect of an enemy by ''X'' will only debuff it by part of ''X'' if that enemy is resistant to that kind of debuff. So, for example, a debuff that gives an enemy -20% ToHit won't always offer the same protection as a buff that gives a teammate +20% Defense, because not all enemies will suffer the full -20.
 
* ToHit and Defense are exact opposites. That is, increasing either produces the exact same change in the overall chance of hitting as decreasing the other by the same amount. Keep in mind, though, that a power that tries to debuff some aspect of an enemy by ''X'' will only debuff it by part of ''X'' if that enemy is resistant to that kind of debuff. So, for example, a debuff that gives an enemy -20% ToHit won't always offer the same protection as a buff that gives a teammate +20% Defense, because not all enemies will suffer the full -20.
 +
* Accuracy and Elusivity are ''not'' exact opposites. It takes more than X points of Accuracy to compensate for X points of Elusivity — a little more if X is small, a lot more if X is large.
 +
* Single-target control powers, interruptible attacks, and many AoE attacks (particularly [[Nuke]]s) tend to have better-than-normal inherent Accuracy.
 +
* AoE control powers tend to have worse-than-normal inherent Accuracy.
 +
* The [[Combat Attributes]] monitor for your ToHit value assumes you're fighting equal-level PvE foes. It doesn't take into account the different '''BaseHitChance''' values for fighting different-level enemies or PvP targets.
  
  
= Data Tables =
+
== Data Tables ==
 
+
{{anchor|basehitchance}}
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=40%
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=40%
|+ '''Level-Based BaseHitChance for Players Attacking Critters'''
+
|+ '''Level-Based BaseHitChance<br />for Players Attacking Critters'''
 
|- style="background:#efefef"
 
|- style="background:#efefef"
 
! Critter's Relative Level !! BaseHitChance
 
! Critter's Relative Level !! BaseHitChance
 
|-
 
|-
| -4 || 95%
+
| –4 || 95%
 
|-
 
|-
| -3 || 90%
+
| –3 || 90%
 
|-
 
|-
| -2 || 85%
+
| –2 || 85%
 
|-
 
|-
| -1 || 80%
+
| –1 || 80%
 
|-
 
|-
| 0 || 75%
+
| &nbsp;&nbsp;0 || 75%
 
|-
 
|-
 
| +1 || 65%
 
| +1 || 65%
Line 132: Line 178:
 
|}
 
|}
  
 +
 +
{{anchor|beginnerluck}}
 +
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=80%
 +
|+ '''Beginner's Luck Bonuses'''
 +
|- style="background:#efefef"
 +
! Character's<br />Level !! ToHit Bonus !! &nbsp; !! Character's<br />Level !! ToHit Bonus
 +
|-
 +
|  1 ||+15% || &nbsp; || 11  || +7%
 +
|-
 +
|  2 ||+14% || &nbsp; || 12  || +6%
 +
|-
 +
|  3 ||+13% || &nbsp; || 13  || +5%
 +
|-
 +
|  4 ||+12% || &nbsp; || 14  || +4%
 +
|-
 +
|  5 ||+11% || &nbsp; || 15  || +3%
 +
|-
 +
|  6 ||+11% || &nbsp; || 16  || +3%
 +
|-
 +
|  7 ||+10% || &nbsp; || 17  || +2%
 +
|-
 +
|  8 || +9% || &nbsp; || 18  || +1%
 +
|-
 +
|  9 || +8% || &nbsp; || 19  || +1%
 +
|-
 +
| 10 || +7% || &nbsp; || 20+ || +0%
 +
|-
 +
|}
  
  
 +
{{anchor|crittermodlevel}}
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=50%
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=50%
|+ '''Level-Based Accuracy and ToHit Modifiers for Critters Attacking Players'''
+
|+ '''Level-Based Accuracy and ToHit Modifiers<br />for Critters Attacking Players'''
 
|- style="background:#efefef"
 
|- style="background:#efefef"
 
! Critter's Relative Level !! LevelDifferenceAcc !! ToHit Modifier
 
! Critter's Relative Level !! LevelDifferenceAcc !! ToHit Modifier
 
|-
 
|-
| +0  ||  1.0  ||  0
+
| –3  ||  1.0  ||  -27%
 +
|-
 +
| –2  ||  1.0  ||  -19%
 +
|-
 +
| –1  ||  1.0  ||  -10%
 +
|-
 +
| &nbsp;&nbsp;0  ||  1.0  ||  0
 
|-
 
|-
 
| +1  ||  1.1  ||  0
 
| +1  ||  1.1  ||  0
Line 164: Line 245:
  
  
 
+
{{anchor|crittermodrank}}
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=60%
 
{| border="1" cellpadding="1" cellspacing="0" align="center" style="text-align:center" width=60%
 
|+ '''Rank-Based Accuracy Multipliers for Critters Attacking Anything'''
 
|+ '''Rank-Based Accuracy Multipliers for Critters Attacking Anything'''
Line 170: Line 251:
 
! Critter Rank !! RankAcc
 
! Critter Rank !! RankAcc
 
|-
 
|-
| Minion || 1.00
+
| Minion, player Pet || 1.00
 
|-
 
|-
 
| Lieutenant || 1.15
 
| Lieutenant || 1.15
 
|-
 
|-
| Boss, Sniper || 1.30
+
| Boss, Elite Boss, Sniper || 1.30
 
|-
 
|-
| Monster, Giant Monster, AV, Controller Pets || 1.50
+
| Monster, Giant Monster, AV || 1.50
 
|-
 
|-
 
|}
 
|}
  
= References =
+
== See Also ==
 +
*[[Damage]]
 +
*[[Limits]]
  
* [http://boards.cityofheroes.com/showflat.php?Cat=&Number=5759413 Arcana's Guide to Defense v1.4 - Updated for I7]
+
== References ==
  
 +
* [http://web.archive.org/web/20120904080030/http://boards.cityofheroes.com/showthread.php?t=115184 Arcana's Guide to Defense v1.4 - Updated for I7]
 +
* [http://web.archive.org/web/20120903224303/http://boards.cityofheroes.com/showthread.php?t=121258 Re: Guide to (Tohit and) Defense v1.10beta]
 +
* [http://web.archive.org/web/20120904230949/http://boards.cityofheroes.com/showthread.php?t=122939 Fix Defense in Three moves: Version 2.0]
 +
* [http://web.archive.org/web/20120905180229/http://boards.cityofheroes.com/showpost.php?p=3351722&postcount=179 Re: Accuracy WAS Nerfed]
  
{{Category:Gameplay}}
+
[[Category:Gameplay]]

Latest revision as of 06:30, 10 December 2013

Overview

The master hit chance formula is:

HitChance = Clamp( AccMods × Clamp( BaseHitChance + ToHitModsDefMods ) )

where

  • BaseHitChance is what the attack's chance of hitting would be if there were no modifiers at all – no Enhancements, no buffs, no level differences, nothing
  • ToHitMods is the sum of all ToHit buffs and debuffs (the debuffs will be negative)
  • DefMods is the sum of all relevant Defense buffs and debuffs (ditto)
  • AccMods is the product of all Accuracy multipliers, and
  • Clamp(x) limits x to the range of 5% to 95%


ToHitMods and DefMods are 0 by default. AccMods defaults to 1.


The Core Mechanics

BaseHitChance

If a player attacks a critter, BaseHitChance depends on the critter's level relative to the player's Combat Level. The critter's Rank and con color don't matter. If the player and the target are the same level, BaseHitChance is 75%. If the target is below the player's level, add 5% to BaseHitChance per level of difference. If the target is higher, BaseHitChance goes down by roughly 9% per level of difference. It's not exactly 9% every single level, but it's close. An exact table of adjustments is at the end of this article.

If a player or critter is attacking a player, BaseHitChance is a flat 50%. Critters then get Accuracy bonuses if they're above the player's level, as well as ToHit modifiers if they're lower or significantly higher. These are covered later. Direct player-vs.-player attacks don't get these adjustments.

ToHit, Defense, and Accuracy

ToHit and Defense work the same way as each other, but in opposite directions. What they do is pretty simple: they directly adjust the chance of hitting by the amount of the modifier. That is, they would be that simple if Accuracy didn't exist, but we'll ignore that for just a moment.

Example: Let's say you're attacking something with a power that has a 65% chance of hitting. If you got a +20% ToHit buff, your chance of hitting would go up to 85% (65 + 20). If your target then got a +10% Defense buff, your chance would drop to 75% (85 – 10). If you then had your ToHit debuffed by -23%, your hit chance would drop further to 52% (75 – 23).

Accuracy is subtly different. It modifies an attack's chance of hitting by a fraction of itself instead of by a fixed amount. Accuracy changes how often an attack hits in proportional terms instead of absolute terms.

Example: Consider an unbuffed, unenhanced attack that hits 30% of the time. If it got a +50% ToHit buff, its hit chance would rise to 80% (30 + 50). If it got a +50% Accuracy bonus instead, its hit chance would only rise to 45% (30 + (50% of 30), which can also be written 30 × 1.5).

Accuracy is applied in a second step, after all ToHit and Defense modifiers are applied.

Calculating Accuracy for Players

If the attacker is a player, he gets Accuracy multipliers from two places. Multiply them together to get the final Accuracy multiplier for the attack.

First, every power has an inherent Accuracy multiplier built into it. This value is 1.0 for most powers, since most powers are intended to hit a normal percentage of the time. Powers that the devs intend to hit more or less often than normal have values above or below 1.0, respectively. Inherent Accuracy usually stays within the range of 1.2 to 0.8 .

Second, a player can get an Accuracy multiplier from Enhancements. Accuracy Enhancements (but not ToHit Buff!) in the power itself are the primary source for this kind of Accuracy. Invention Origin Enhancements Sets that give global Accuracy bonuses can also add small amounts to every power. This multiplier starts at 1.0, and Enhancements can only improve it.

So for players, AccMods is calculated using:

AccMods  =  the power's inherent Accuracy  ×  (1.0 + the power's Accuracy Enhancements + all global Set Accuracy bonuses)

Calcuating Accuracy for Pets and PvE Enemies

If the attacker is a critter, its Accuracy comes from three factors. First, critter powers each have their own inherent Accuracy modifiers, just like player powers do. Second, critters get an Accuracy multiplier based on the critter's Rank. Third, if the critter is attacking a player, it gets an Accuracy (and possibly a ToHit) modifier if it's not the same level.

So for critters, we have a slightly longer formula for figuring AccMods:

AccMods  =  the power's inherent Accuracy  ×  the Accuracy of the enemy's Rank  ×  Accuracy factor due to level difference


Caps and Floors

Final hit chances are forced to stay in the range of 5%–95% to preserve a measure of uncertainty and prevent modifiers from making a power automatically hit or miss. This range limit is also applied once in the middle of the calculation, after adjusting for ToHit and Defense modifiers but prior to applying Accuracy, to prevent situations where strong Defense buffs and/or ToHit debuffs render Accuracy irrelevant no matter how high it was.


Complications

Beginner's Luck

Beginner's Luck is the community's name for a scaling ToHit bonus for low-level characters that was added as part of Issue 12. Under Beginner's Luck, characters at Combat Level 1 get a +15% ToHit bonus — exactly enough to raise their chance of hitting equal-level PvE enemies to 90% from the standard 75%. This bonus steadily decreases as the character gains levels and eventually disappears after Combat Level 19. The full table of Beginner's Luck bonuses, by level, is at the end of this article. It is almost, but not quite, +1% per level under 20.

The Beginner's Luck bonus also applies to player pets and pseudopets, though it's based on their levels, not the player's. Also, since Beginner's Luck is based on Combat Level, it is affected by Sidekicking and Exemplaring.

The Streak Breaker

There is a special feature in the game called the streak breaker. Its purpose is to prevent long streaks of misses, and it works by sometimes forcing an attack to hit automatically. Whether the streak breaker comes into play depends on an attack's expected chance of hitting, how many consecutive misses have happened so far, and what their hit chances were.

This is a direct quote from Cryptic developer Weirdbeard explaining the details. (Just to be clear, when he says "to-hit" here, he means the final chance of hitting.)

Final to-hit : misses allowed

>.9 : 1
.8-.9 : 2
.6-.8 : 3
.4-.6 : 4
.3-.4 : 6
.2-.3 : 8
0 -.2 : 100
Auto-hit powers are not included in the system.
Critters get the benefits of the system as well.
The system does not track each power individually; instead it tracks every miss you make in a row, regardless of power (or target). Otherwise you could have nine different powers, each with a 0.95 to-hit, and if you executed them all in a row you could miss each attack (note a caveat at the bottom of the post regarding this).
[AoE] attacks are considered distinct sequential attacks on indivudual targets for the purpose of the system (so if you [AoE'ed] two targets and had 0.95 to-hit for both, you be guaranteed to hit one of them).

To determine the to-hit used in the table above, you take either the current to-hit, or the worst to-hit in your current miss series, whichever is lower.

Here is a list of things to keep in mind about the streakbreaker, how it works, and pitfalls when trying to apply it:

  1. Zoning resets the streakbreaker.
  2. The streakbreaker ignores autohitting powers entirely. They do not count as either hits or misses.
  3. The number of misses the system tolerates before forcing the next attack to hit depends on the lowest chance of hitting in your miss streak so far, or the attack you're about to make, whichever is worse. As soon as you make a single low-accuracy attack, you shift to a worse category, and the streakbreaker will let you miss more before it helps you.
  4. The streakbreaker only breaks miss streaks by forcing hits. It does not break hit streaks by forcing misses. It can only help you hit.
  5. The streakbreaker affects all entities that are allowed to attack. This includes players and enemies. Also, each of your pets and pseudopet powers has its own streakbreaker record, tracked separately from attacks that come directly from you.
  6. The streakbreaker tracks attackers, not powers.
  7. AoEs roll one attack check per target, starting from the closest target to the center of the AoE (or the origin for cones) and working outward.
  8. Damage auras make attack rolls, and are often overlooked when observing streakbreaker behavior.
  9. Unslotted Brawl and the minor ranged Origin Powers are some of the biggest killers of the streakbreaker, since they can have a very low chance to hit a target without accuracy slotting. See rule #3 above.

Elusivity and PvP

Main Article: Elusivity

With Issue 13, a feature called Elusivity was added to improve the protective strength of some Defense-boosting powers in Player vs Player combat. Elusivity bonuses were added to several Defense-buffing powers, particularly those in the defensive powersets of Scrappers, Tankers, Stalkers, and Brutes.

Elusivity is a PvP-only mechanic. Powers that grant Elusivity bonuses only do so in PvP zones: Bloody Bay, Siren's Call, Warburg, Recluse's Victory, and the Arena. Other zones don't trigger the bonus. Also, Elusivity is a player-only mechanic. No critters anywhere were given Elusivity bonuses.

Elusivity works like the opposite of Accuracy. It reduces the chance of hitting by a proportional amount, unlike Defense, which reduces it by a fixed amount. Elusivity adds an extra factor to the hit chance formula:


HitChance = Clamp( AccMods × (1 - TargetElusivity) × Clamp( BaseHitChance + ToHitModsDefMods ) )


Not all Elusivity bonuses apply versus all attacks. Each bonus is marked with the types of attacks it works against. This system is identical to the one used by Defense bonuses, which is complex enough to deserve its own article.

Pet Accuracy

There are two completely unrelated issues with the accuracy of summoned pets and pseudopet-based powers. One is a misconception, the other may be a bug or a design oversight.

First, many powers that work through pets or pseudopets are listed as having an unusually high inherent Accuracy, like 2.0. This is misleading, since it implies that the pet is extremely accurate. In fact, this stat is meaningless, since the act of creating a pet doesn't care about Accuracy. What matter are the Accuracies of the pet's powers, which are stored separately.

Second, player-summoned pets seem to be treated as players rather than critters for parts of the attack formula. Their base chance to hit anything seems to be 75%, with no bonus Accuracy due to their rank. Previously, it was believed that a pet's base chance of hitting things was the same 50% that all critters have and that pets got a rank Accuracy multiplier of 1.5. Both these arrangements produce the same 75% final hit chance versus equal-level enemies with no Defense, but the way player pets apparently work makes them much better than they should be at hitting highly-Defensive or higher-level targets.

It is possible this second issue applies to all summoned pets, even those summoned by non-players, since it is known to apply to Malta Auto-Turrets.

Inconsistent Terminology

Since launch, both players and developers have used the term "accuracy" interchangeably to mean all the following things:

  1. actual Accuracy, as described here
  2. ToHit
  3. final hit chance

In fact, nearly all powers and Inspirations that provide ToHit bonuses or penalties are incorrectly labeled as "+Acc" or "–Acc". Only Accuracy Enhancements, global IO Set bonuses, Ancillary/Patron Pool power Focused Accuracy, and the Combat Training: Accuracy power available to Arachnos Soldiers and Arachnos Widows actually adjust Accuracy. All other powers and effects modify ToHit instead, regardless of game text.

Results, Notes, and Observations

  • The more Accuracy an attack has, the more every single ToHit and Defense modifier affects its chance of hitting.
  • A ToHit bonus of X gives you a better increase to your chance of hitting than an Accuracy bonus of X will. This is especially true against hard-to-hit targets.
  • Any attack with more Accuracy bonuses than penalties will have a guaranteed chance of hitting greater than the well-publicized 5% minimum. To be exact, it'll be 5% × AccMods.
  • ToHit and Defense are exact opposites. That is, increasing either produces the exact same change in the overall chance of hitting as decreasing the other by the same amount. Keep in mind, though, that a power that tries to debuff some aspect of an enemy by X will only debuff it by part of X if that enemy is resistant to that kind of debuff. So, for example, a debuff that gives an enemy -20% ToHit won't always offer the same protection as a buff that gives a teammate +20% Defense, because not all enemies will suffer the full -20.
  • Accuracy and Elusivity are not exact opposites. It takes more than X points of Accuracy to compensate for X points of Elusivity — a little more if X is small, a lot more if X is large.
  • Single-target control powers, interruptible attacks, and many AoE attacks (particularly Nukes) tend to have better-than-normal inherent Accuracy.
  • AoE control powers tend to have worse-than-normal inherent Accuracy.
  • The Combat Attributes monitor for your ToHit value assumes you're fighting equal-level PvE foes. It doesn't take into account the different BaseHitChance values for fighting different-level enemies or PvP targets.


Data Tables

Level-Based BaseHitChance
for Players Attacking Critters
Critter's Relative Level BaseHitChance
–4 95%
–3 90%
–2 85%
–1 80%
  0 75%
+1 65%
+2 56%
+3 48%
+4 39%
+5 30%
+6 20%
+7 8%


Beginner's Luck Bonuses
Character's
Level
ToHit Bonus   Character's
Level
ToHit Bonus
1 +15%   11 +7%
2 +14%   12 +6%
3 +13%   13 +5%
4 +12%   14 +4%
5 +11%   15 +3%
6 +11%   16 +3%
7 +10%   17 +2%
8 +9%   18 +1%
9 +8%   19 +1%
10 +7%   20+ +0%


Level-Based Accuracy and ToHit Modifiers
for Critters Attacking Players
Critter's Relative Level LevelDifferenceAcc ToHit Modifier
–3 1.0 -27%
–2 1.0 -19%
–1 1.0 -10%
  0 1.0 0
+1 1.1 0
+2 1.2 0
+3 1.3 0
+4 1.4 0
+5 1.5 0
+6 1.5 +5%
+7 1.5 +10%
+8 1.5 +15%
+9 1.5 +20%
+10 1.5 +40%


Rank-Based Accuracy Multipliers for Critters Attacking Anything
Critter Rank RankAcc
Minion, player Pet 1.00
Lieutenant 1.15
Boss, Elite Boss, Sniper 1.30
Monster, Giant Monster, AV 1.50

See Also

References