-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenUS.lua
400 lines (299 loc) · 15.5 KB
/
enUS.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
if GetLocale() ~= "enUS" then return end
-- This file is for optional modifications which are specific to a locale.
local ADDON_NAME, Data = ...
local Addon = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
-- override the default stat rewords for this locale
do
-- Addon:AddDefaultRewordByLocale(stat, val)
Addon:AddDefaultRewordByLocale("BonusArmor", "Bonus Armor")
Addon:AddDefaultRewordByLocale("All Resistance", "All Resist")
Addon:AddDefaultRewordByLocale("Arcane Resistance", "Arcane Resist")
Addon:AddDefaultRewordByLocale("Fire Resistance", "Fire Resist")
Addon:AddDefaultRewordByLocale("Nature Resistance", "Nature Resist")
Addon:AddDefaultRewordByLocale("Frost Resistance", "Frost Resist")
Addon:AddDefaultRewordByLocale("Shadow Resistance", "Shadow Resist")
Addon:AddDefaultRewordByLocale("Attack Power In Forms", "Feral Attack Power")
Addon:AddDefaultRewordByLocale("Defense Rating", "Defense")
Addon:AddDefaultRewordByLocale("Parry Rating", "Parry")
Addon:AddDefaultRewordByLocale("Dodge Rating", "Dodge")
Addon:AddDefaultRewordByLocale("Armor Penetration Rating", "Armor Pen")
Addon:AddDefaultRewordByLocale("Expertise Rating", "Expertise")
Addon:AddDefaultRewordByLocale("Resilience Rating", "Resilience")
Addon:AddDefaultRewordByLocale("Spell Damage", "Spell Damage")
Addon:AddDefaultRewordByLocale("Healing", "Healing")
Addon:AddDefaultRewordByLocale("Hit Rating", "Hit")
Addon:AddDefaultRewordByLocale("Critical Strike Rating", "Crit")
Addon:AddDefaultRewordByLocale("Haste Rating", "Haste")
Addon:AddDefaultRewordByLocale("Physical Hit Rating", "Physical Hit")
Addon:AddDefaultRewordByLocale("Physical Critical Strike Rating", "Physical Crit")
Addon:AddDefaultRewordByLocale("Physical Haste Rating", "Physical Haste")
Addon:AddDefaultRewordByLocale("Spell Hit Rating", "Spell Hit")
Addon:AddDefaultRewordByLocale("Spell Critical Strike Rating", "Spell Crit")
Addon:AddDefaultRewordByLocale("Spell Haste Rating", "Spell Haste")
Addon:AddDefaultRewordByLocale("Health Regeneration", "Health per Minute")
Addon:AddDefaultRewordByLocale("Mana Regeneration", "Mana per Minute")
end
-- override the default stat mods for this locale
do
-- Addon:AddDefaultModByLocale(stat, val)
Addon:AddDefaultModByLocale("Health Regeneration", 12)
Addon:AddDefaultModByLocale("Mana Regeneration", 12)
end
-- override the default stat precision for this locale
do
-- Addon:AddDefaultPrecisionByLocale(stat, val)
end
-- These functions define additional pattern captures that can be used to recognize a stat in this locale.
-- A line of text is matched against INPUT. If the match is successful, the line is recognized as that stat.
-- The results of the match as then used to reword the line.
-- OUTPUT can also be defined (in the same table as INPUT). It must be a function.
-- OUTPUT accepts the results of matching INPUT, and returns them. They could be returned in a different order.
Addon:AddExtraStatCapture("Arcane Damage",
{INPUT = "%+([%d,]+) Arcane Spell Damage"})
Addon:AddExtraStatCapture("Fire Damage",
{INPUT = "%+([%d,]+) Fire Spell Damage"})
Addon:AddExtraStatCapture("Nature Damage",
{INPUT = "%+([%d,]+) Nature Spell Damage"})
Addon:AddExtraStatCapture("Frost Damage",
{INPUT = "%+([%d,]+) Frost Spell Damage"})
Addon:AddExtraStatCapture("Shadow Damage",
{INPUT = "%+([%d,]+) Shadow Spell Damage"})
Addon:AddExtraStatCapture("Holy Damage",
{INPUT = "%+([%d,]+) Holy Spell Damage"})
Addon:AddExtraStatCapture("Health Regeneration",
{INPUT = "^%+([%d,]+) health every 5 sec%.$"})
if Addon.isEra then
Addon:AddExtraStatCapture("Defense Rating",
{INPUT = "^Increased Defense %+([%d,]+)%.$"})
Addon:AddExtraStatCapture("Dodge Rating",
{INPUT = "^Increases your chance to dodge an attack by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Parry Rating",
{INPUT = "^Increases your chance to parry an attack by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Block Rating",
{INPUT = "^Increases your chance to block attacks with a shield by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Attack Power In Forms",
{INPUT = "^%+([%d,]+) Attack Power in Cat, Bear, and Dire Bear forms only%.$"})
Addon:AddExtraStatCapture("Spell Power",
{INPUT = "^Increases damage and healing done by magical spells and effects by up to ([%d,]+)%.$"},
{INPUT = "^%+([%d,]+) Damage and Healing Spells$"})
Addon:AddExtraStatCapture("Healing",
{INPUT = "^Increases healing done by spells and effects by up to ([%d,]+)%.$"},
{INPUT = "^%+([%d,]+) Healing Spells$"})
Addon:AddExtraStatCapture("Arcane Damage",
{INPUT = "^Increases damage done by Arcane spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Fire Damage",
{INPUT = "^Increases damage done by Fire spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Nature Damage",
{INPUT = "^Increases damage done by Nature spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Frost Damage",
{INPUT = "^Increases damage done by Frost spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Shadow Damage",
{INPUT = "^Increases damage done by Shadow spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Holy Damage",
{INPUT = "^Increases damage done by Holy spells and effects by up to ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Spell Penetration",
{INPUT = "^Decreases the magical resistances of your spell targets by ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Hit Rating",
{INPUT = "^Improves your chance to hit with all spells and attacks by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Critical Strike Rating",
{INPUT = "^Improves your chance to get a critical strike with all spells and attacks by ([%d,]+%%)%.$"},
{INPUT = "^Improves your chance to get a critical strike with melee and ranged attacks and with spells by ([%d,]+%%)%.$"},
{INPUT = "^Increases your critical strike chance with spells and attacks by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Physical Hit Rating",
{INPUT = "^Improves your chance to hit by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Physical Critical Strike Rating",
{INPUT = "^Improves your chance to get a critical strike by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Spell Hit Rating",
{INPUT = "^Improves your chance to hit with spells by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Spell Critical Strike Rating",
{INPUT = "^Improves your chance to get a critical strike with spells by ([%d,]+%%)%.$"})
Addon:AddExtraStatCapture("Health Regeneration",
{INPUT = "^Restores ([%d,]+) health every 5 sec%.$"})
Addon:AddExtraStatCapture("Mana Regeneration",
{INPUT = "^%+([%d,]+) mana every 5 sec%.$"})
else
Addon:AddExtraStatCapture("Block Rating",
{INPUT = "^Increases your block rating by ([%d,]+)%.$"})
Addon:AddExtraStatCapture("Spell Power",
{INPUT = "^Increases your spell power by ([%d,]+)%.$"}) -- Atiesh 22631
Addon:AddExtraStatCapture("Hit Rating",
{INPUT = "^Increases your hit rating by ([%d,]+)%.$"}) -- Maexxna's Fang 22804
Addon:AddExtraStatCapture("Critical Strike Rating",
{INPUT = "^Increases your critical strike rating by ([%d,]+)%.$"}) -- Staff of Balzaphon 23124
Addon:AddExtraStatCapture("Armor Penetration Rating",
{INPUT = "^Increases armor penetration rating by ([%d,]+)%.$"}) -- Maexxna's Femur 39226
Addon:AddExtraStatCapture("Spell Penetration",
{INPUT = "^Increases your spell penetration by ([%d,]+)%.$"}) -- Hatefury Mantle 30884
end
if Addon.isSoD or Addon.isTBC then
Addon:AddExtraStatCapture("Healing",
{INPUT = "^Increases healing done by up to ([%d,]+) and damage done by up to %d+ for all magical spells and effects%.$"})
end
-- These tables define additional text replacements that can take place in certain lines.
-- Partial matches are found and replaced with gsub().
Addon:AddExtraReplacement("Run Speed",
{
INPUT = "Engage the rocket boots to greatly increase your speed%.", -- Rocket Boots Xtreme Lite 35581
OUTPUT = "+300%% Run Speed for 3 sec",
},
{
INPUT = "Minor Speed Increase", -- Enchant Boots - Minor Speed
OUTPUT = "+8%% Run Speed",
},
{
INPUT = "Minor Run Speed Increase", -- Meta gems
OUTPUT = "+8%% Run Speed",
},
{
INPUT = "Minor Speed ", -- Enchant Boots - Boar's Speed
OUTPUT = "+8%% Run Speed ",
},
{
INPUT = "Minor increase to running and swimming speed", -- Primal Batskin set
OUTPUT = "+8%% Run Speed and +8%% Swim Speed",
},
{
INPUT = "Increases run speed by (%d+)%%", -- Swiftness Potion
OUTPUT = "+%1%% Run Speed",
},
{
INPUT = "Run speed increased slightly", -- Highlander's / Defiler's PvP boots
OUTPUT = "+8%% Run Speed",
},
{
INPUT = "Greatly increase your run speed", -- Nitro Boosts
OUTPUT = "+150%% Run Speed",
}
)
-- Swim Speed
Addon:AddExtraReplacement("Swim Speed",
{
INPUT = "Increases swim speed by (%d+)%%", -- Azure Silk Belt
OUTPUT = "+%1%% Swim Speed",
}
)
-- Mount Speed
Addon:AddExtraReplacement("Mount Speed",
{
INPUT = "Increases mount speed by (%d+)%%", -- Carrot on a Stick
OUTPUT = "+%1%% Mount Speed",
}
)
if Addon.isTBC then
Addon:AddExtraReplacement("Mount Speed",
{
INPUT = "Increases speed in Flight Form and Swift Flight Form by (%d+)%%", -- Charm of Swift Flight Form
OUTPUT = "+%1%% Speed in Flight Forms",
}
)
end
if Addon.isEra then
Addon:AddExtraReplacement("Mount Speed",
{
INPUT = "^Mithril Spurs", -- Mithril Spurs Enchantment (Mithril Spurs (464))
OUTPUT = "+4%% Mount Speed",
},
{
INPUT = "^Minor Mount Speed Increase", -- Enchant Gloves - Riding (Minor Mount Speed Increase (930))
OUTPUT = "+2%% Mount Speed",
},
{
INPUT = "Attaches spurs to your boots that increase your mounted movement speed slightly", -- Mithril Spurs
OUTPUT = "+4%% Mount Speed when attached to boots",
}
)
end
-- Fishing Skill
Addon:AddExtraReplacement("Fishing Skill",
{
INPUT = "Replaces the fishing line on your fishing pole with a high test eternium line", -- High Test Eternium Fishing Line
OUTPUT = "Adds +5 Fishing to an owned Fishing Pole",
},
{
INPUT = "^Eternium Line$", -- Eternium Fishing Line (Eternium Line (2603))
OUTPUT = "+5 Fishing",
}
)
-- Mana Regen
Addon:AddExtraReplacement("Mana Regen",
{
INPUT = "Allow (%d+)%% of your Mana regeneration to continue while casting", -- Primal Mooncloth set
OUTPUT = "+%1%% of Mana Regen continues while casting",
}
)
-- Hp5
Addon:AddExtraReplacement("Hp5",
{
INPUT = "restores (%d+) health every 5 seconds", -- Nightfin Soup
OUTPUT = function(amount) return format("+%s health per minute (%s Hp5)", Addon:ToFormattedNumber(Addon:ToNumber(amount)*12), Addon:ToFormattedNumber(amount)) end,
}
)
-- Mp5
Addon:AddExtraReplacement("Mp5",
{
INPUT = "restores (%d+) Mana every 5 seconds", -- Nightfin Soup
OUTPUT = function(amount) return format("+%s mana per minute (%s Mp5)", Addon:ToFormattedNumber(Addon:ToNumber(amount)*12), Addon:ToFormattedNumber(amount)) end,
}
)
-- Food and Drink
Addon:AddExtraReplacement("Food And Drink",
{
INPUT = "Restores? ([%d,]+) health and ([%d,]+) mana over (%d+) sec%.%s+Must remain seated while eating", -- Conjured Mana Biscuit
OUTPUT = function(healthAmount, manaAmount, duration) return format("+%s health (+%s/s) and +%s mana (+%s/s) over %ds while seated", Addon:ToFormattedNumber(healthAmount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(healthAmount)/duration, 1)), Addon:ToFormattedNumber(manaAmount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(manaAmount)/duration, 1)), duration) end,
}
)
Addon:AddExtraReplacement("Buff Food",
{
INPUT = "Restores? ([%d,]+) health over (%d+) sec%.%s+Must remain seated while eating.%s+If you spend at least 10 seconds eating you will become well fed and (.+) for (%d+) min", -- Golden Fish Sticks
OUTPUT = function(amount, duration, buff, buffDuration) return format("+%s health (+%s/s) over %ds while seated. After 10s, %s for %dm", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration, buff, buffDuration) end,
}
)
Addon:AddExtraReplacement("Food",
{
INPUT = "Restores? ([%d,]+) health over (%d+) sec%.%s+Must remain seated while eating", -- Telaari Grapes
OUTPUT = function(amount, duration) return format("+%s health (+%s/s) over %ds while seated", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration) end,
}
)
Addon:AddExtraReplacement("Buff Drink",
{
INPUT = "Restores? ([%d,]+) mana over (%d+) sec%.%s+Must remain seated while drinking.%s+If you spend at least 10 seconds drinking you will become well fed and (.+) for (%d+) min", -- Hot Apple Cider
OUTPUT = function(amount, duration, buff, buffDuration) return format("+%s mana (+%s/s) over %ds while seated. After 10s, %s for %dm", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration, buff, buffDuration) end,
},
{
INPUT = "Restores? ([%d,]+) mana over (%d+) sec%.%s+Must remain seated while drinking.%s+If you spend at least 10 seconds drinking you will become enlightened and (.+) for (%d+) min", -- Skullfish Soup
OUTPUT = function(amount, duration, buff, buffDuration) return format("+%s mana (+%s/s) over %ds while seated. After 10s, %s for %dm", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration, buff, buffDuration) end,
}
-- {
-- INPUT = "Restores? ([%d,]+) mana over (%d+) sec%.%s+Must remain seated while drinking.%s+ Also (.+) for (%d+) min",
-- OUTPUT = function(amount, duration, buff, buffDuration) return format("+%s mana (+%s/s) over %ds while seated. Also %s for %dm", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration, buff, buffDuration) end,
-- }
)
Addon:AddExtraReplacement("Drink",
{
INPUT = "Restores ([%d,]+) mana over (%d+) sec%.%s+Must remain seated while drinking", -- Purified Draenic Water
OUTPUT = function(amount, duration) return format("+%s mana (+%s/s) over %ds while seated", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration) end,
}
)
Addon:AddExtraReplacement("Bandage",
{
INPUT = "Heals ([%d,]+) damage over (%d+) sec",
OUTPUT = function(amount, duration) return format("+%s health (+%s/s) over %ds", Addon:ToFormattedNumber(amount), Addon:ToFormattedNumber(Addon:Round(Addon:ToNumber(amount)/duration, 1)), duration) end,
}
)
Addon:AddExtraReplacement("Average Range",
{
INPUT = "([%d,]+) to (%d*,?%d+)", -- don't capture trailing commas
OUTPUT = function(amount1, amount2) return format("%s (%s-%s)", Addon:ToFormattedNumber(Addon:Round((Addon:ToNumber(amount1)+Addon:ToNumber(amount2))/2, 1)), Addon:ToFormattedNumber(amount1), Addon:ToFormattedNumber(amount2)) end, -- Health/mana Potions, Demonic Rune
}
)
-- Temp Stat Buff
Addon:AddExtraReplacement("Temp Stat Buff",
{
INPUT = "Increases ?y?o?u?r? ([^%d]-) by ([%d,]+%%?) (for %d+ sec%.?)", -- Shadowmoon Insignia, Steely Naaru Sliver
OUTPUT = "+%2 %1 %3",
},
{
INPUT = "Increases ?y?o?u?r? ([^%d]-) by up to ([%d,]+%%?) (for %d+ sec%.?)", -- Dark Iron Smoking Pipe
OUTPUT = "+%2 %1 %3",
}
)