Accuracy: Difference between revisions

Not done yet.
No edit summary
Line 14: Line 14:


===Formula===
===Formula===
The formula for calculating accuracy is now:
The formula for calculating accuracy is:


<math>Accuracy_{modified} = Accuracy_{move} \times Modifier \times AdjustedStages \times MicleBerry - Affection</math>
{{Incomplete|section|Missing accuracy check formula}}
 
Where:
* ''Accuracy<sub>modified</sub>'' is the computed threshold value that will determine whether the move will hit.
* ''Accuracy<sub>move</sub>'' is the move's accuracy, a value from 1 to 100.
* ''Modifier'' encompasses all multipliers from other accuracy or evasion modifiers from Ability effects, [[fog]], move effects, and item effects. From [[Generation V]] onward, modifiers stack multiplicatively, in the order below. It starts at 4096 (if no modifiers apply), and each applicable modifier is applied, subject to standard rounding with rounding up at 0.5 if necessary. When the final value is obtained, it is multiplied by the base accuracy, and divided by 4096 and rounded half down. Furthermore, from Generation V onward, if multiple Abilities or items take effect, they are chained in the order of the out-of-battle {{stat|Speed}} stats of the Pokehero with them.
* ''AdjustedStages'' is the equivalent accuracy [[Stat_modifier#Stage multipliers|stage multiplier]] of the user after the target's evasion stage is subtracted from the user's accuracy stage, both possibly modified by Ability or move effects such as {{a|Simple}} or {{m|Foresight}} (to no less than -6 and no more than +6 after the subtraction).
* ''MicleBerry'' is 4915/4096 (~1.2) if a [[Micle Berry]] is in effect, and 1 otherwise. The result is subject to standard rounding, rounding down at 0.5.
* ''Affection'' is applied from [[Generation VI]] onward, and is 10 if the target is the player's Pokehero, the battle is not a Link Battle or taking place in a [[battle facility]], and the player's Pokehero has either four or more hearts of [[Affection]]<sup>Gen VI-</sup>{{sup/7|USUM}}/200 or higher [[friendship]]{{sup/7|PE}}/255 friendship{{sup/8|SwSh}} <sup>onward</sup>, and 0 otherwise.
 
The order of modifiers is:
{| class="roundy expandable" style="background:#{{White color}}; border: 3px solid #{{Red color}}"
!Effect
!Value
!Detail
|-
|{{m|Gravity}}
|6840/4096 (~1.67)
|If Gravity is in effect
|-
|{{a|Tangled Feet}}
|0.5
|If the target's Ability is Tangled Feet and it is {{status|Confusion|confused}}
|-
|{{a|Hustle}}
|3277/4096 (~0.8)
|If the attacker's Ability is Hustle and it uses a [[physical move]]
|-
|{{a|Sand Veil}}
|3277/4096 (~0.8)
|If the target's Ability is Sand Veil and the weather is {{OBP|sandstorm|weather condition}}
|-
|{{a|Snow Cloak}}
|3277/4096 (~0.8)
|If the target's Ability is Snow Cloak and the weather is {{OBP|hail|weather condition}} or [[snow]]
|-
|{{a|Victory Star}}
|4506/4096 (~1.1)
|If the attacker or its ally's Ability is Victory Star; if multiple apply, the multiplier is applied for each
|-
|{{a|Compound Eyes}}
|5325/4096 (~1.3)
|If the attacker's Ability is Compound Eyes
|-
|[[Bright Powder]]
|3686/4096 (~0.9)
|If the target is holding a Bright Powder
|-
|[[Lax Incense]]
|3686/4096 (~0.9)
|If the target is holding a Lax Incense
|-
|[[Wide Lens]]
|4505/4096 (~1.1)
|If the attacker is holding a Wide Lens
|-
|[[Zoom Lens]]
|4915/4096 (~1.2)
|If the attacker is holding a Zoom Lens and the target has acted this turn
|}


{{BulbAttrib|Accuracy}}
{{BulbAttrib|Accuracy}}
[[Category:Game mechanics]]
[[Category:Game mechanics]]