Skip to content

Instantly share code, notes, and snippets.

@robert-nix
Last active October 29, 2018 20:05
Show Gist options
  • Save robert-nix/d8f7a5f67d1b012987db to your computer and use it in GitHub Desktop.
Save robert-nix/d8f7a5f67d1b012987db to your computer and use it in GitHub Desktop.
require('GlobalStrings')
-- generated from s_bonusStatStringTags
local bonusStats = {
[0] = "ITEM_MOD_MANA_SHORT",
[1] = "ITEM_MOD_HEALTH_SHORT",
[3] = "ITEM_MOD_AGILITY_SHORT",
[4] = "ITEM_MOD_STRENGTH_SHORT",
[5] = "ITEM_MOD_INTELLECT_SHORT",
[6] = "ITEM_MOD_SPIRIT_SHORT",
[7] = "ITEM_MOD_STAMINA_SHORT",
[12] = "ITEM_MOD_DEFENSE_SKILL_RATING_SHORT",
[13] = "ITEM_MOD_DODGE_RATING_SHORT",
[14] = "ITEM_MOD_PARRY_RATING_SHORT",
[15] = "ITEM_MOD_BLOCK_RATING_SHORT",
[16] = "ITEM_MOD_HIT_MELEE_RATING_SHORT",
[17] = "ITEM_MOD_HIT_RANGED_RATING_SHORT",
[18] = "ITEM_MOD_HIT_SPELL_RATING_SHORT",
[19] = "ITEM_MOD_CRIT_MELEE_RATING_SHORT",
[20] = "ITEM_MOD_CRIT_RANGED_RATING_SHORT",
[21] = "ITEM_MOD_CRIT_SPELL_RATING_SHORT",
[22] = "ITEM_MOD_HIT_TAKEN_MELEE_RATING_SHORT",
[23] = "ITEM_MOD_HIT_TAKEN_RANGED_RATING_SHORT",
[24] = "ITEM_MOD_HIT_TAKEN_SPELL_RATING_SHORT",
[25] = "ITEM_MOD_CRIT_TAKEN_MELEE_RATING_SHORT",
[26] = "ITEM_MOD_CRIT_TAKEN_RANGED_RATING_SHORT",
[27] = "ITEM_MOD_CRIT_TAKEN_SPELL_RATING_SHORT",
[28] = "ITEM_MOD_HASTE_MELEE_RATING_SHORT",
[29] = "ITEM_MOD_HASTE_RANGED_RATING_SHORT",
[30] = "ITEM_MOD_HASTE_SPELL_RATING_SHORT",
[31] = "ITEM_MOD_HIT_RATING_SHORT",
[32] = "ITEM_MOD_CRIT_RATING_SHORT",
[33] = "ITEM_MOD_HIT_TAKEN_RATING_SHORT",
[34] = "ITEM_MOD_CRIT_TAKEN_RATING_SHORT",
[35] = "ITEM_MOD_RESILIENCE_RATING_SHORT",
[36] = "ITEM_MOD_HASTE_RATING_SHORT",
[37] = "ITEM_MOD_EXPERTISE_RATING_SHORT",
[38] = "ITEM_MOD_ATTACK_POWER_SHORT",
[39] = "ITEM_MOD_RANGED_ATTACK_POWER_SHORT",
[40] = "ITEM_MOD_VERSATILITY",
[41] = "ITEM_MOD_SPELL_HEALING_DONE_SHORT",
[42] = "ITEM_MOD_SPELL_DAMAGE_DONE_SHORT",
[43] = "ITEM_MOD_MANA_REGENERATION_SHORT",
[44] = "ITEM_MOD_ARMOR_PENETRATION_RATING_SHORT",
[45] = "ITEM_MOD_SPELL_POWER_SHORT",
[46] = "ITEM_MOD_HEALTH_REGEN_SHORT",
[47] = "ITEM_MOD_SPELL_PENETRATION_SHORT",
[48] = "ITEM_MOD_BLOCK_VALUE_SHORT",
[49] = "ITEM_MOD_MASTERY_RATING_SHORT",
[50] = "ITEM_MOD_EXTRA_ARMOR_SHORT",
[51] = "ITEM_MOD_FIRE_RESISTANCE_SHORT",
[52] = "ITEM_MOD_FROST_RESISTANCE_SHORT",
[53] = "ITEM_MOD_HOLY_RESISTANCE_SHORT",
[54] = "ITEM_MOD_SHADOW_RESISTANCE_SHORT",
[55] = "ITEM_MOD_NATURE_RESISTANCE_SHORT",
[56] = "ITEM_MOD_ARCANE_RESISTANCE_SHORT",
[57] = "ITEM_MOD_PVP_POWER_SHORT",
[58] = "ITEM_MOD_CR_AMPLIFY_SHORT",
[59] = "ITEM_MOD_CR_MULTISTRIKE_SHORT",
[60] = "ITEM_MOD_CR_READINESS_SHORT",
[61] = "ITEM_MOD_CR_SPEED_SHORT",
[62] = "ITEM_MOD_CR_LIFESTEAL_SHORT",
[63] = "ITEM_MOD_CR_AVOIDANCE_SHORT",
[64] = "ITEM_MOD_CR_STURDINESS_SHORT",
[65] = "ITEM_MOD_CR_UNUSED_7_SHORT",
[66] = "ITEM_MOD_CR_CLEAVE_SHORT",
[67] = "ITEM_MOD_CR_UNUSED_9_SHORT",
[68] = "ITEM_MOD_CR_UNUSED_10_SHORT",
[69] = "ITEM_MOD_CR_UNUSED_11_SHORT",
[70] = "ITEM_MOD_CR_UNUSED_12_SHORT"
}
local defaults = { -- resistances are treated specially, so we must too
ITEM_MOD_FIRE_RESISTANCE_SHORT = "RESISTANCE2_NAME",
ITEM_MOD_FROST_RESISTANCE_SHORT = "RESISTANCE4_NAME",
ITEM_MOD_HOLY_RESISTANCE_SHORT = "RESISTANCE1_NAME",
ITEM_MOD_SHADOW_RESISTANCE_SHORT = "RESISTANCE5_NAME",
ITEM_MOD_NATURE_RESISTANCE_SHORT = "RESISTANCE3_NAME",
ITEM_MOD_ARCANE_RESISTANCE_SHORT = "RESISTANCE6_NAME"
}
print ('id\tstringTag\tname')
-- for i = {BONUS_STAT_START},{BONUS_STAT_MAX} do
for i = 0,75 do
local mod = bonusStats[i]
if mod then
local default = defaults[mod]
if not default then default = '(unknown)' end
print(i .. '\t' .. mod .. '\t' .. (_G[mod] or _G[default]))
end
end
{
"bonusStats": [
{
"id": 0,
"name": "Mana"
},
{
"id": 1,
"name": "Health"
},
{
"id": 3,
"name": "Agility"
},
{
"id": 4,
"name": "Strength"
},
{
"id": 5,
"name": "Intellect"
},
{
"id": 6,
"name": "Spirit"
},
{
"id": 7,
"name": "Stamina"
},
{
"id": 12,
"name": "Defense"
},
{
"id": 13,
"name": "Dodge"
},
{
"id": 14,
"name": "Parry"
},
{
"id": 15,
"name": "Block"
},
{
"id": 16,
"name": "Hit (Melee)"
},
{
"id": 17,
"name": "Hit (Ranged)"
},
{
"id": 18,
"name": "Hit (Spell)"
},
{
"id": 19,
"name": "Critical Strike (Melee)"
},
{
"id": 20,
"name": "Critical Strike (Ranged)"
},
{
"id": 21,
"name": "Critical Strike (Spell)"
},
{
"id": 22,
"name": "Hit Avoidance (Melee)"
},
{
"id": 23,
"name": "Hit Avoidance (Ranged)"
},
{
"id": 24,
"name": "Hit Avoidance (Spell)"
},
{
"id": 25,
"name": "Critical Strike Avoidance (Melee)"
},
{
"id": 26,
"name": "Critical Strike Avoidance (Ranged)"
},
{
"id": 27,
"name": "Critical Strike Avoidance (Spell)"
},
{
"id": 28,
"name": "Haste (Melee)"
},
{
"id": 29,
"name": "Haste (Ranged)"
},
{
"id": 30,
"name": "Haste (Spell)"
},
{
"id": 31,
"name": "Hit"
},
{
"id": 32,
"name": "Critical Strike"
},
{
"id": 33,
"name": "Hit Avoidance"
},
{
"id": 34,
"name": "Critical Strike Avoidance"
},
{
"id": 35,
"name": "PvP Resilience"
},
{
"id": 36,
"name": "Haste"
},
{
"id": 37,
"name": "Expertise"
},
{
"id": 38,
"name": "Attack Power"
},
{
"id": 39,
"name": "Ranged Attack Power"
},
{
"id": 40,
"name": "Versatility"
},
{
"id": 41,
"name": "Bonus Healing"
},
{
"id": 42,
"name": "Bonus Damage"
},
{
"id": 43,
"name": "Mana Regeneration"
},
{
"id": 44,
"name": "Armor Penetration"
},
{
"id": 45,
"name": "Spell Power"
},
{
"id": 46,
"name": "Health Per 5 Sec."
},
{
"id": 47,
"name": "Spell Penetration"
},
{
"id": 48,
"name": "Block Value"
},
{
"id": 49,
"name": "Mastery"
},
{
"id": 50,
"name": "Bonus Armor"
},
{
"id": 51,
"name": "Fire Resistance"
},
{
"id": 52,
"name": "Frost Resistance"
},
{
"id": 53,
"name": "Holy Resistance"
},
{
"id": 54,
"name": "Shadow Resistance"
},
{
"id": 55,
"name": "Nature Resistance"
},
{
"id": 56,
"name": "Arcane Resistance"
},
{
"id": 57,
"name": "PvP Power"
},
{
"id": 58,
"name": "Amplify"
},
{
"id": 59,
"name": "Multistrike"
},
{
"id": 60,
"name": "Readiness"
},
{
"id": 61,
"name": "Speed"
},
{
"id": 62,
"name": "Leech"
},
{
"id": 63,
"name": "Avoidance"
},
{
"id": 64,
"name": "Indestructible"
},
{
"id": 65,
"name": "Unused 7"
},
{
"id": 66,
"name": "Cleave"
},
{
"id": 67,
"name": "Versatility"
},
{
"id": 68,
"name": "Unused 10"
},
{
"id": 69,
"name": "Unused 11"
},
{
"id": 70,
"name": "Unused 12"
}
]
}
id stringTag name
0 ITEM_MOD_MANA_SHORT Mana
1 ITEM_MOD_HEALTH_SHORT Health
3 ITEM_MOD_AGILITY_SHORT Agility
4 ITEM_MOD_STRENGTH_SHORT Strength
5 ITEM_MOD_INTELLECT_SHORT Intellect
6 ITEM_MOD_SPIRIT_SHORT Spirit
7 ITEM_MOD_STAMINA_SHORT Stamina
12 ITEM_MOD_DEFENSE_SKILL_RATING_SHORT Defense
13 ITEM_MOD_DODGE_RATING_SHORT Dodge
14 ITEM_MOD_PARRY_RATING_SHORT Parry
15 ITEM_MOD_BLOCK_RATING_SHORT Block
16 ITEM_MOD_HIT_MELEE_RATING_SHORT Hit (Melee)
17 ITEM_MOD_HIT_RANGED_RATING_SHORT Hit (Ranged)
18 ITEM_MOD_HIT_SPELL_RATING_SHORT Hit (Spell)
19 ITEM_MOD_CRIT_MELEE_RATING_SHORT Critical Strike (Melee)
20 ITEM_MOD_CRIT_RANGED_RATING_SHORT Critical Strike (Ranged)
21 ITEM_MOD_CRIT_SPELL_RATING_SHORT Critical Strike (Spell)
22 ITEM_MOD_HIT_TAKEN_MELEE_RATING_SHORT Hit Avoidance (Melee)
23 ITEM_MOD_HIT_TAKEN_RANGED_RATING_SHORT Hit Avoidance (Ranged)
24 ITEM_MOD_HIT_TAKEN_SPELL_RATING_SHORT Hit Avoidance (Spell)
25 ITEM_MOD_CRIT_TAKEN_MELEE_RATING_SHORT Critical Strike Avoidance (Melee)
26 ITEM_MOD_CRIT_TAKEN_RANGED_RATING_SHORT Critical Strike Avoidance (Ranged)
27 ITEM_MOD_CRIT_TAKEN_SPELL_RATING_SHORT Critical Strike Avoidance (Spell)
28 ITEM_MOD_HASTE_MELEE_RATING_SHORT Haste (Melee)
29 ITEM_MOD_HASTE_RANGED_RATING_SHORT Haste (Ranged)
30 ITEM_MOD_HASTE_SPELL_RATING_SHORT Haste (Spell)
31 ITEM_MOD_HIT_RATING_SHORT Hit
32 ITEM_MOD_CRIT_RATING_SHORT Critical Strike
33 ITEM_MOD_HIT_TAKEN_RATING_SHORT Hit Avoidance
34 ITEM_MOD_CRIT_TAKEN_RATING_SHORT Critical Strike Avoidance
35 ITEM_MOD_RESILIENCE_RATING_SHORT PvP Resilience
36 ITEM_MOD_HASTE_RATING_SHORT Haste
37 ITEM_MOD_EXPERTISE_RATING_SHORT Expertise
38 ITEM_MOD_ATTACK_POWER_SHORT Attack Power
39 ITEM_MOD_RANGED_ATTACK_POWER_SHORT Ranged Attack Power
40 ITEM_MOD_VERSATILITY Versatility
41 ITEM_MOD_SPELL_HEALING_DONE_SHORT Bonus Healing
42 ITEM_MOD_SPELL_DAMAGE_DONE_SHORT Bonus Damage
43 ITEM_MOD_MANA_REGENERATION_SHORT Mana Regeneration
44 ITEM_MOD_ARMOR_PENETRATION_RATING_SHORT Armor Penetration
45 ITEM_MOD_SPELL_POWER_SHORT Spell Power
46 ITEM_MOD_HEALTH_REGEN_SHORT Health Per 5 Sec.
47 ITEM_MOD_SPELL_PENETRATION_SHORT Spell Penetration
48 ITEM_MOD_BLOCK_VALUE_SHORT Block Value
49 ITEM_MOD_MASTERY_RATING_SHORT Mastery
50 ITEM_MOD_EXTRA_ARMOR_SHORT Bonus Armor
51 ITEM_MOD_FIRE_RESISTANCE_SHORT Fire Resistance
52 ITEM_MOD_FROST_RESISTANCE_SHORT Frost Resistance
53 ITEM_MOD_HOLY_RESISTANCE_SHORT Holy Resistance
54 ITEM_MOD_SHADOW_RESISTANCE_SHORT Shadow Resistance
55 ITEM_MOD_NATURE_RESISTANCE_SHORT Nature Resistance
56 ITEM_MOD_ARCANE_RESISTANCE_SHORT Arcane Resistance
57 ITEM_MOD_PVP_POWER_SHORT PvP Power
58 ITEM_MOD_CR_AMPLIFY_SHORT Amplify
59 ITEM_MOD_CR_MULTISTRIKE_SHORT Multistrike
60 ITEM_MOD_CR_READINESS_SHORT Readiness
61 ITEM_MOD_CR_SPEED_SHORT Speed
62 ITEM_MOD_CR_LIFESTEAL_SHORT Leech
63 ITEM_MOD_CR_AVOIDANCE_SHORT Avoidance
64 ITEM_MOD_CR_STURDINESS_SHORT Indestructible
65 ITEM_MOD_CR_UNUSED_7_SHORT Unused 7
66 ITEM_MOD_CR_CLEAVE_SHORT Cleave
67 ITEM_MOD_CR_UNUSED_9_SHORT Versatility
68 ITEM_MOD_CR_UNUSED_10_SHORT Unused 10
69 ITEM_MOD_CR_UNUSED_11_SHORT Unused 11
70 ITEM_MOD_CR_UNUSED_12_SHORT Unused 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment