JackTripper (talk | contribs) No edit summary |
No edit summary Tag: WoW API docs |
||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
== Arguments== |
== Arguments== |
||
− | ;combatRatingIdentifier : |
+ | ; combatRatingIdentifier : {{api|t=t|number}} - One of the following values from <code class="plainlinks">FrameXML/[https://www.townlong-yak.com/framexml/live/PaperDollFrame.lua PaperDollFrame.lua]</code>: |
+ | <onlyinclude>{| class="sortable darktable zebra" style="margin-left: 2em" |
||
− | :* CR_WEAPON_SKILL = 1; |
||
+ | ! Value !! Key !! Description |
||
− | :* CR_DEFENSE_SKILL = 2; |
||
+ | |- |
||
− | :* CR_DODGE = 3; |
||
+ | | <center>1</center> || CR_WEAPON_SKILL|| Removed in [[patch 6.0.2]] |
||
− | :* CR_PARRY = 4; |
||
+ | |- |
||
− | :* CR_BLOCK = 5; |
||
+ | | <center>2</center> || CR_DEFENSE_SKILL || |
||
− | :* CR_HIT_MELEE = 6; |
||
+ | |- |
||
− | :* CR_HIT_RANGED = 7; |
||
+ | | <center>3</center> || CR_DODGE || |
||
− | :* CR_HIT_SPELL = 8; |
||
+ | |- |
||
− | :* CR_CRIT_MELEE = 9; |
||
+ | | <center>4</center> || CR_PARRY || |
||
− | :* CR_CRIT_RANGED = 10; |
||
+ | |- |
||
− | :* CR_CRIT_SPELL = 11; |
||
+ | | <center>5</center> || CR_BLOCK || |
||
− | :* CR_HIT_TAKEN_MELEE = 12; |
||
+ | |- |
||
− | :* CR_HIT_TAKEN_RANGED = 13; |
||
+ | | <center>6</center> || CR_HIT_MELEE || |
||
− | :* CR_HIT_TAKEN_SPELL = 14; |
||
+ | |- |
||
− | :* COMBAT_RATING_RESILIENCE_CRIT_TAKEN = 15; |
||
+ | | <center>7</center> || CR_HIT_RANGED || |
||
− | :* COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN = 16; |
||
+ | |- |
||
− | :* CR_CRIT_TAKEN_SPELL = 17; |
||
+ | | <center>8</center> || CR_HIT_SPELL || |
||
− | :* CR_HASTE_MELEE = 18; |
||
+ | |- |
||
− | :* CR_HASTE_RANGED = 19; |
||
+ | | <center>9</center> || CR_CRIT_MELEE || |
||
− | :* CR_HASTE_SPELL = 20; |
||
+ | |- |
||
− | :* CR_WEAPON_SKILL_MAINHAND = 21; |
||
+ | | <center>10</center> || CR_CRIT_RANGED || |
||
− | :* CR_WEAPON_SKILL_OFFHAND = 22; |
||
+ | |- |
||
− | :* CR_WEAPON_SKILL_RANGED = 23; |
||
+ | | <center>11</center> || CR_CRIT_SPELL || |
||
− | :* CR_EXPERTISE = 24; |
||
+ | |- |
||
− | :* CR_ARMOR_PENETRATION = 25; |
||
+ | | <center>12</center> || CR_MULTISTRIKE || Formerly CR_HIT_TAKEN_MELEE until [[patch 6.0.2]] |
||
− | :* CR_MASTERY = 26; |
||
+ | |- |
||
− | :* CR_PVP_POWER = 27; |
||
+ | | <center>13</center> || CR_READINESS || Formerly CR_HIT_TAKEN_SPELL until [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>14</center> || CR_SPEED || Formerly CR_HIT_TAKEN_SPELL until [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>15</center> || COMBAT_RATING_RESILIENCE_CRIT_TAKEN || |
||
+ | |- |
||
+ | | <center>16</center> || COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN || |
||
+ | |- |
||
+ | | <center>17</center> || CR_LIFESTEAL || Formerly CR_CRIT_TAKEN_SPELL until [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>18</center> || CR_HASTE_MELEE || |
||
+ | |- |
||
+ | | <center>19</center> || CR_HASTE_RANGED || |
||
+ | |- |
||
+ | | <center>20</center> || CR_HASTE_SPELL || |
||
+ | |- |
||
+ | | <center>21</center> || CR_AVOIDANCE || Formerly CR_WEAPON_SKILL_MAINHAND until [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>22</center> || CR_WEAPON_SKILL_OFFHAND || Removed in [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>23</center> || CR_WEAPON_SKILL_RANGED || |
||
+ | |- |
||
+ | | <center>24</center> || CR_EXPERTISE || |
||
+ | |- |
||
+ | | <center>25</center> || CR_ARMOR_PENETRATION || |
||
+ | |- |
||
+ | | <center>26</center> || CR_MASTERY || |
||
+ | |- |
||
+ | | <center>27</center> || CR_PVP_POWER || Removed in [[patch 6.0.2]] |
||
+ | |- |
||
+ | | <center>29</center> || CR_VERSATILITY_DAMAGE_DONE || |
||
+ | |- |
||
+ | | <center>31</center> || CR_VERSATILITY_DAMAGE_TAKEN || |
||
+ | |}</onlyinclude> |
||
+ | |||
+ | |||
==Returns== |
==Returns== |
||
Line 38: | Line 74: | ||
== Example == |
== Example == |
||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> |
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> |
||
− | hitRating = GetCombatRating( |
+ | hitRating = GetCombatRating(CR_HIT_MELEE) |
<big>'''Result'''</big> |
<big>'''Result'''</big> |
Revision as of 23:34, 3 July 2020
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the number of points of a specific combat rating the player has.
rating = GetCombatRating(combatRatingIdentifier)
Arguments
- combatRatingIdentifier
- number - One of the following values from
FrameXML/PaperDollFrame.lua
:
Value | Key | Description |
---|---|---|
CR_WEAPON_SKILL | Removed in patch 6.0.2 | |
CR_DEFENSE_SKILL | ||
CR_DODGE | ||
CR_PARRY | ||
CR_BLOCK | ||
CR_HIT_MELEE | ||
CR_HIT_RANGED | ||
CR_HIT_SPELL | ||
CR_CRIT_MELEE | ||
CR_CRIT_RANGED | ||
CR_CRIT_SPELL | ||
CR_MULTISTRIKE | Formerly CR_HIT_TAKEN_MELEE until patch 6.0.2 | |
CR_READINESS | Formerly CR_HIT_TAKEN_SPELL until patch 6.0.2 | |
CR_SPEED | Formerly CR_HIT_TAKEN_SPELL until patch 6.0.2 | |
COMBAT_RATING_RESILIENCE_CRIT_TAKEN | ||
COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN | ||
CR_LIFESTEAL | Formerly CR_CRIT_TAKEN_SPELL until patch 6.0.2 | |
CR_HASTE_MELEE | ||
CR_HASTE_RANGED | ||
CR_HASTE_SPELL | ||
CR_AVOIDANCE | Formerly CR_WEAPON_SKILL_MAINHAND until patch 6.0.2 | |
CR_WEAPON_SKILL_OFFHAND | Removed in patch 6.0.2 | |
CR_WEAPON_SKILL_RANGED | ||
CR_EXPERTISE | ||
CR_ARMOR_PENETRATION | ||
CR_MASTERY | ||
CR_PVP_POWER | Removed in patch 6.0.2 | |
CR_VERSATILITY_DAMAGE_DONE | ||
CR_VERSATILITY_DAMAGE_TAKEN |
Returns
- rating
- Number - the actual rating for the combat rating; e.g. 63
Example
hitRating = GetCombatRating(CR_HIT_MELEE)
Result
hitRating = 63
See also
- GetCombatRatingBonus returns the `effect` of a particular rating