forked from Ravenholdt-TC/SimcScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun.rb
447 lines (440 loc) · 14.2 KB
/
Run.rb
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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
require 'rubygems'
require 'bundler/setup'
require 'optparse'
require_relative 'lib/SimcConfig'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [-r]"
opts.on("-r", "Do the run starting from the end") do |r|
options[:reverse] = r
end
end.parse!
to_run = {
'AzeriteSimulation' => {
'Death-Knight' => [
'PR_Death_Knight_Blood',
'PR_Death_Knight_Frost',
'PR_Death_Knight_Unholy',
'T22_Death_Knight_Blood',
'T22_Death_Knight_Frost',
'T22_Death_Knight_Unholy',
],
'Demon-Hunter' => [
'PR_Demon_Hunter_Havoc',
'PR_Demon_Hunter_Havoc_Momentum',
'PR_Demon_Hunter_Vengeance',
'T22_Demon_Hunter_Havoc',
'T22_Demon_Hunter_Havoc_Momentum',
'T22_Demon_Hunter_Vengeance',
],
'Druid' => [
'PR_Druid_Balance',
'PR_Druid_Feral',
'PR_Druid_Guardian',
'T22_Druid_Balance',
'T22_Druid_Feral',
'T22_Druid_Guardian',
],
'Hunter' => [
'PR_Hunter_Beast_Mastery',
'PR_Hunter_Marksmanship',
'PR_Hunter_Survival',
'T22_Hunter_Beast_Mastery',
'T22_Hunter_Marksmanship',
'T22_Hunter_Survival',
],
'Mage' => [
'PR_Mage_Arcane',
'PR_Mage_Fire',
'PR_Mage_Frost',
'T22_Mage_Arcane',
'T22_Mage_Fire',
'T22_Mage_Frost',
],
'Monk' => [
'PR_Monk_Brewmaster',
'PR_Monk_Windwalker',
'T22_Monk_Brewmaster',
'T22_Monk_Windwalker',
],
'Paladin' => [
'PR_Paladin_Protection',
'PR_Paladin_Retribution',
'T22_Paladin_Protection',
'T22_Paladin_Retribution',
],
'Priest' => [
'PR_Priest_Holy',
'PR_Priest_Shadow',
'T22_Priest_Holy',
'T22_Priest_Shadow',
],
'Rogue' => [
'PR_Rogue_Assassination',
'PR_Rogue_Assassination_Exsg',
'PR_Rogue_Outlaw',
'PR_Rogue_Outlaw_SnD',
'PR_Rogue_Subtlety',
'PR_Rogue_Subtlety_Secret-Technique',
'PR_Rogue_Subtlety_Enveloping-Shadows',
'T22_Rogue_Assassination',
'T22_Rogue_Assassination_Exsg',
'T22_Rogue_Outlaw',
'T22_Rogue_Outlaw_SnD',
'T22_Rogue_Subtlety',
'T22_Rogue_Subtlety_Secret-Technique',
'T22_Rogue_Subtlety_Enveloping-Shadows',
],
'Shaman' => [
'PR_Shaman_Elemental',
'PR_Shaman_Enhancement',
'T22_Shaman_Elemental',
'T22_Shaman_Enhancement',
],
'Warlock' => [
'PR_Warlock_Affliction',
'PR_Warlock_Demonology',
'PR_Warlock_Destruction',
'T22_Warlock_Affliction',
'T22_Warlock_Demonology',
'T22_Warlock_Destruction',
],
'Warrior' => [
'PR_Warrior_Arms',
'PR_Warrior_Fury',
# 'PR_Warrior_Protection',
'T22_Warrior_Arms',
'T22_Warrior_Fury',
# 'T22_Warrior_Protection'
],
},
'Combinator' => {
##########################################################################################
# Keep the gear called Azerite and setup as well, this will be auto replaced for stacks. #
##########################################################################################
'Death-Knight' => [
'PR_Death_Knight_Blood Death-Knight_Azerite Azerite xxx00xx',
'PR_Death_Knight_Frost Death-Knight_Azerite Azerite xx0x0xx',
'PR_Death_Knight_Unholy Death-Knight_Azerite Azerite xx0x0xx',
'T22_Death_Knight_Blood Death-Knight_Azerite Azerite xxx00xx',
'T22_Death_Knight_Frost Death-Knight_Azerite Azerite xx0x0xx',
'T22_Death_Knight_Unholy Death-Knight_Azerite Azerite xx0x0xx',
],
'Demon-Hunter' => [
'PR_Demon_Hunter_Havoc Demon-Hunter_Azerite Azerite xxx0x2x',
'PR_Demon_Hunter_Vengeance Demon-Hunter_Azerite Azerite xxxx0x0',
'T22_Demon_Hunter_Havoc Demon-Hunter_Azerite Azerite xxx0x2x',
'T22_Demon_Hunter_Vengeance Demon-Hunter_Azerite Azerite xxxx0x0',
],
'Druid' => [
'PR_Druid_Balance Druid_Azerite Azerite x000xxx',
'PR_Druid_Feral Druid_Azerite Azerite x000xxx',
# 'PR_Druid_Guardian Druid_Azerite Azerite x000x0x',
'T22_Druid_Balance Druid_Azerite Azerite x000xxx',
'T22_Druid_Feral Druid_Azerite Azerite x000xxx',
# 'T22_Druid_Guardian Druid_Azerite Azerite x000x0x'
],
'Hunter' => [
'PR_Hunter_Beast_Mastery Hunter_Azerite Azerite xx0x0xx',
'PR_Hunter_Marksmanship Hunter_Azerite Azerite xx0x0xx',
'PR_Hunter_Survival Hunter_Azerite Azerite xx0x0xx',
'T22_Hunter_Beast_Mastery Hunter_Azerite Azerite xx0x0xx',
'T22_Hunter_Marksmanship Hunter_Azerite Azerite xx0x0xx',
'T22_Hunter_Survival Hunter_Azerite Azerite xx0x0xx',
],
'Mage' => [
'PR_Mage_Arcane Mage_Azerite Azerite x0xx0xx',
'PR_Mage_Fire Mage_Azerite Azerite x0xx0xx',
'PR_Mage_Frost Mage_Azerite Azerite x0xx0xx',
'T22_Mage_Arcane Mage_Azerite Azerite x0xx0xx',
'T22_Mage_Fire Mage_Azerite Azerite x0xx0xx',
'T22_Mage_Frost Mage_Azerite Azerite x0xx0xx',
],
'Monk' => [
'PR_Monk_Brewmaster Monk_Azerite Azerite x0x00xx',
'PR_Monk_Windwalker Monk_Azerite Azerite x0x00xx',
'T22_Monk_Brewmaster Monk_Azerite Azerite x0x00xx',
'T22_Monk_Windwalker Monk_Azerite Azerite x0x00xx',
],
'Paladin' => [
'PR_Paladin_Protection Paladin_Azerite Azerite xx0x00x',
'PR_Paladin_Retribution Paladin_Azerite Azerite xx0x00x',
'T22_Paladin_Protection Paladin_Azerite Azerite xx0x00x',
'T22_Paladin_Retribution Paladin_Azerite Azerite xx0x00x',
],
'Priest' => [
'PR_Priest_Holy Priest_Azerite Azerite 00000xx',
'PR_Priest_Shadow Priest_Azerite Azerite x0x0xxx',
'T22_Priest_Holy Priest_Azerite Azerite 00000xx',
'T22_Priest_Shadow Priest_Azerite Azerite x0x0xxx',
],
'Rogue' => [
'PR_Rogue_Assassination Rogue_Azerite Azerite xxx00[12]x',
'PR_Rogue_Assassination_Exsg Rogue_Azerite Azerite xxx003x',
'PR_Rogue_Outlaw Rogue_Azerite Azerite x0x00[12]x',
'PR_Rogue_Outlaw_SnD Rogue_Azerite Azerite x0x003x',
'PR_Rogue_Subtlety Rogue_Azerite Azerite xxx00xx',
'T22_Rogue_Assassination Rogue_Azerite Azerite xxx00[12]x',
'T22_Rogue_Assassination_Exsg Rogue_Azerite Azerite xxx003x',
'T22_Rogue_Outlaw Rogue_Azerite Azerite x0x00[12]x',
'T22_Rogue_Outlaw_SnD Rogue_Azerite Azerite x0x003x',
'T22_Rogue_Subtlety Rogue_Azerite Azerite xxx00xx',
],
'Shaman' => [
'PR_Shaman_Elemental Shaman_Azerite Azerite xx0x0xx',
'PR_Shaman_Enhancement Shaman_Azerite Azerite xx0x0xx',
'T22_Shaman_Elemental Shaman_Azerite Azerite xx0x0xx',
'T22_Shaman_Enhancement Shaman_Azerite Azerite xx0x0xx',
],
'Warlock' => [
'PR_Warlock_Affliction Warlock_Azerite Azerite xx0x0xx',
'PR_Warlock_Demonology Warlock_Azerite Azerite xx0x0xx',
'PR_Warlock_Destruction Warlock_Azerite Azerite xx0x0xx',
'T22_Warlock_Affliction Warlock_Azerite Azerite xx0x0xx',
'T22_Warlock_Demonology Warlock_Azerite Azerite xx0x0xx',
'T22_Warlock_Destruction Warlock_Azerite Azerite xx0x0xx',
],
'Warrior' => [
'PR_Warrior_Arms Warrior_Azerite Azerite x0x0xxx',
'PR_Warrior_Fury Warrior_Azerite Azerite x0x0xxx',
# 'PR_Warrior_Protection Warrior_Azerite Azerite x0x00xx',
'T22_Warrior_Arms Warrior_Azerite Azerite x0x0xxx',
'T22_Warrior_Fury Warrior_Azerite Azerite x0x0xxx',
# 'T22_Warrior_Protection Warrior_Azerite Azerite x0x00xx'
],
},
'RaceSimulation' => {
'Death-Knight' => [
'PR_Death_Knight_Blood',
'PR_Death_Knight_Frost',
'PR_Death_Knight_Unholy',
'T22_Death_Knight_Blood',
'T22_Death_Knight_Frost',
'T22_Death_Knight_Unholy',
],
'Demon-Hunter' => [
'PR_Demon_Hunter_Havoc',
'PR_Demon_Hunter_Havoc_Momentum',
'PR_Demon_Hunter_Vengeance',
'T22_Demon_Hunter_Havoc',
'T22_Demon_Hunter_Havoc_Momentum',
'T22_Demon_Hunter_Vengeance',
],
'Druid' => [
'PR_Druid_Balance',
'PR_Druid_Feral',
'PR_Druid_Guardian',
'T22_Druid_Balance',
'T22_Druid_Feral',
'T22_Druid_Guardian',
],
'Hunter' => [
'PR_Hunter_Beast_Mastery',
'PR_Hunter_Marksmanship',
'PR_Hunter_Survival',
'T22_Hunter_Beast_Mastery',
'T22_Hunter_Marksmanship',
'T22_Hunter_Survival',
],
'Mage' => [
'PR_Mage_Arcane',
'PR_Mage_Fire',
'PR_Mage_Frost',
'T22_Mage_Arcane',
'T22_Mage_Fire',
'T22_Mage_Frost',
],
'Monk' => [
'PR_Monk_Brewmaster',
'PR_Monk_Windwalker',
'T22_Monk_Brewmaster',
'T22_Monk_Windwalker',
],
'Paladin' => [
'PR_Paladin_Protection',
'PR_Paladin_Retribution',
'T22_Paladin_Protection',
'T22_Paladin_Retribution',
],
'Priest' => [
'PR_Priest_Holy',
'PR_Priest_Shadow',
'T22_Priest_Holy',
'T22_Priest_Shadow',
],
'Rogue' => [
'PR_Rogue_Assassination',
'PR_Rogue_Assassination_Exsg',
'PR_Rogue_Outlaw',
'PR_Rogue_Outlaw_SnD',
'PR_Rogue_Subtlety',
'PR_Rogue_Subtlety_Secret-Technique',
'PR_Rogue_Subtlety_Enveloping-Shadows',
'T22_Rogue_Assassination',
'T22_Rogue_Assassination_Exsg',
'T22_Rogue_Outlaw',
'T22_Rogue_Outlaw_SnD',
'T22_Rogue_Subtlety',
'T22_Rogue_Subtlety_Secret-Technique',
'T22_Rogue_Subtlety_Enveloping-Shadows',
],
'Shaman' => [
'PR_Shaman_Elemental',
'PR_Shaman_Enhancement',
'T22_Shaman_Elemental',
'T22_Shaman_Enhancement',
],
'Warlock' => [
'PR_Warlock_Affliction',
'PR_Warlock_Demonology',
'PR_Warlock_Destruction',
'T22_Warlock_Affliction',
'T22_Warlock_Demonology',
'T22_Warlock_Destruction',
],
'Warrior' => [
'PR_Warrior_Arms',
'PR_Warrior_Fury',
# 'PR_Warrior_Protection',
'T22_Warrior_Arms',
'T22_Warrior_Fury',
# 'T22_Warrior_Protection'
],
},
'TrinketSimulation' => {
'Death-Knight' => [
'PR_Death_Knight_Blood Strength',
'PR_Death_Knight_Frost Strength',
'PR_Death_Knight_Unholy Strength',
'T22_Death_Knight_Blood Strength',
'T22_Death_Knight_Frost Strength',
'T22_Death_Knight_Unholy Strength',
],
'Demon-Hunter' => [
'PR_Demon_Hunter_Havoc Agility',
'PR_Demon_Hunter_Havoc_Momentum Agility',
'PR_Demon_Hunter_Vengeance Agility',
'T22_Demon_Hunter_Havoc Agility',
'T22_Demon_Hunter_Havoc_Momentum Agility',
'T22_Demon_Hunter_Vengeance Agility',
],
'Druid' => [
'PR_Druid_Balance Intelligence',
'PR_Druid_Feral Agility',
'PR_Druid_Guardian Agility',
'T22_Druid_Balance Intelligence',
'T22_Druid_Feral Agility',
'T22_Druid_Guardian Agility',
],
'Hunter' => [
'PR_Hunter_Beast_Mastery Agility',
'PR_Hunter_Marksmanship Agility',
'PR_Hunter_Survival Agility',
'T22_Hunter_Beast_Mastery Agility',
'T22_Hunter_Marksmanship Agility',
'T22_Hunter_Survival Agility',
],
'Mage' => [
'PR_Mage_Arcane Intelligence',
'PR_Mage_Fire Intelligence',
'PR_Mage_Frost Intelligence',
'T22_Mage_Arcane Intelligence',
'T22_Mage_Fire Intelligence',
'T22_Mage_Frost Intelligence',
],
'Monk' => [
'PR_Monk_Brewmaster Agility',
'PR_Monk_Windwalker Agility',
'T22_Monk_Brewmaster Agility',
'T22_Monk_Windwalker Agility',
],
'Paladin' => [
'PR_Paladin_Protection Strength',
'PR_Paladin_Retribution Strength',
'T22_Paladin_Protection Strength',
'T22_Paladin_Retribution Strength',
],
'Priest' => [
'PR_Priest_Holy Intelligence',
'PR_Priest_Shadow Intelligence',
'T22_Priest_Holy Intelligence',
'T22_Priest_Shadow Intelligence',
],
'Rogue' => [
'PR_Rogue_Assassination Agility',
'PR_Rogue_Assassination_Exsg Agility',
'PR_Rogue_Outlaw Agility',
'PR_Rogue_Outlaw_SnD Agility',
'PR_Rogue_Subtlety Agility',
'PR_Rogue_Subtlety_Secret-Technique Agility',
'PR_Rogue_Subtlety_Enveloping-Shadows Agility',
'T22_Rogue_Assassination Agility',
'T22_Rogue_Assassination_Exsg Agility',
'T22_Rogue_Outlaw Agility',
'T22_Rogue_Outlaw_SnD Agility',
'T22_Rogue_Subtlety Agility',
'T22_Rogue_Subtlety_Secret-Technique Agility',
'T22_Rogue_Subtlety_Enveloping-Shadows Agility',
],
'Shaman' => [
'PR_Shaman_Elemental Intelligence',
'PR_Shaman_Enhancement Agility',
'T22_Shaman_Elemental Intelligence',
'T22_Shaman_Enhancement Agility',
],
'Warlock' => [
'PR_Warlock_Affliction Intelligence',
'PR_Warlock_Demonology Intelligence',
'PR_Warlock_Destruction Intelligence',
'T22_Warlock_Affliction Intelligence',
'T22_Warlock_Demonology Intelligence',
'T22_Warlock_Destruction Intelligence',
],
'Warrior' => [
'PR_Warrior_Arms Strength',
'PR_Warrior_Fury Strength',
# 'PR_Warrior_Protection Strength',
'T22_Warrior_Arms Strength',
'T22_Warrior_Fury Strength',
# 'T22_Warrior_Protection Strength'
],
},
}
orders = SimcConfig["RunOrders"]
wow_classes = SimcConfig["RunClasses"]
azeriteStacks = SimcConfig["RunCombinatorAzeriteStacks"]
if options[:reverse]
orders.reverse!
wow_classes.reverse!
azeriteStacks.reverse!
end
orders.each do |order|
scripts = order[0].clone
scripts.reverse! if options[:reverse]
fightstyles = order[1].clone
fightstyles.reverse! if options[:reverse]
scripts.each do |script|
fightstyles.each do |fightstyle|
wow_classes.each do |wow_class|
commands = to_run[script][wow_class].clone
commands.reverse! if options[:reverse]
commands.each do |command|
if script == 'Combinator' && command.include?('Azerite Azerite')
azeriteStacks.each do |stacks|
if stacks > 0
azCommand = command.gsub('Azerite Azerite', "#{stacks}A Azerite")
else
azCommand = command.gsub('Azerite Azerite', "1A NoAzerite")
end
system "bundle exec ruby #{script}.rb #{fightstyle} #{wow_class} #{azCommand} q"
end
else
system "bundle exec ruby #{script}.rb #{fightstyle} #{wow_class} #{command} q"
end
end
end
end
end
end
puts "All batch simulations done! Press enter!"
gets