-
Notifications
You must be signed in to change notification settings - Fork 0
/
war_sim.py
2934 lines (2809 loc) · 170 KB
/
war_sim.py
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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 7 16:35:13 2022
@author: Andrew
"""
def full_warrior_call(item_head = "", item_neck = "", item_shoulders = "", item_back = "", item_chest = "", item_wrist = "",item_gloves = "", item_waist = "", item_legs = "", item_boots = "", item_ring1 = "", item_ring2 = "", item_trinket1 = "", item_trinket2 = "", item_ranged = "", item_mh = "", item_oh = "", length_of_fight = 30, fight_length_variance = 1, amount_of_sims = 1, amount_of_targets = 1, target_level = 83, target_armor = 10000, fight_sub_20percent = 20, warrior_stance = 0, warrior_spec = 0, race_selection = 0, talent_url="https://www.wowhead.com/wotlk/talent-calc/warrior/01-324531100023012053122501051-230230005003", the_input_potion = "None", the_input_potion_timer = 5, the_input_flask = "None", the_input_food_selection = "None", dranei_in_party = False, raid_buff_horn_of_winter = False, raid_buff_improved_icy_talons = False, raid_buff_abomination_rage = False, raid_buff_ferocius_inspiration = False, raid_buff_imp_moonkin_form = False, raid_buff_blood_frenzy = False, raid_buff_expose_armor = False, raid_buff_curse_of_weakness = False, raid_buff_leader_of_the_pack = False, raid_buff_bloodlust = False, bloodlust_start_time = 10, personal_buff_hysteria = False, hysteria_start_time = 10, personal_buff_tricks_of_the_trade = False, tricks_start_time = 10, raid_buff_gift_of_the_wild = False, raid_buff_imp_gift_of_the_wild = 0, raid_buff_greater_blessing_of_kings = False, raid_buff_greater_blessing_of_might = False, raid_buff_imp_greater_blessing_of_might = False, raid_buff_heart_of_the_crusader = False, raid_buff_improved_scorch = False, raid_buff_imp_faerie_fire = False, raid_buff_curse_of_the_elements = False, raid_buff_moonkin_aura = False, personal_buff_orc_blood_fury = False, bloodfury_start_time = 10, personal_buff_troll_berserking_buff = False, berserking_start_time = 10, input_gem1 = "None", input_gem2 = "None", input_gem3 = "None", input_gem4 = "None", input_gem5 = "None", input_gem6 = "None", input_gem7 = "None", input_gem8 = "None", input_gem9 = "None", input_gem10 = "None", input_gem11 = "None", input_gem12 = "None", input_gem13 = "None", input_gem14 = "None", input_gem15 = "None", input_gem16 = "None", input_gem17 = "None", input_gem18 = "None", input_gem19 = "None", input_gem20 = "None", input_gem21 = "None", input_gem22 = "None", input_gem23 = "None", input_gem24 = "None", input_gem25 = "None", input_gem26 = "None", input_gem27 = "None", input_gem28 = "None", input_gem29 = "None", input_gem30 = "None", input_gem31 = "None", input_gem32 = "None", input_gem33 = "None", input_gem34 = "None", input_gem35 = "None", input_gem36 = "None", input_gem37 = "None", input_gem38 = "None", input_gem39 = "None", input_gem40 = "None", input_gem41 = "None", input_gem42 = "None", input_gem43 = "None", input_gem44 = "None", input_gem45 = "None", input_gem46 = "None", input_gem47 = "None", input_gem48 = "None", input_gem49 = "None", input_gem50 = "None", input_gem51 = "None", input_gem52 = "None", input_gem53 = "None", input_gem54 = "None", input_gem55 = "None", input_gem56 = "None", input_gem57 = "None", input_gem58 = "None", input_gem59 = "None", input_gem60 = "None", input_gem61 = "None", input_gem62 = "None", input_gem63 = "None", input_gem64 = "None", input_meta_gem1 = "None", input_socketbonus1 = False, input_socketbonus2 = False, input_socketbonus3 = False, input_socketbonus4 = False, input_socketbonus5 = False, input_socketbonus6 = False, input_socketbonus7 = False, input_socketbonus8 = False, input_socketbonus9 = False, input_socketbonus10 = False, input_socketbonus11 = False, input_socketbonus12 = False, input_socketbonus13 = False, input_socketbonus14 = False, input_socketbonus15 = False, input_socketbonus16 = False, input_mh_enchant = "None", input_oh_enchant = "None", input_head_enchant = "None", input_shoulder_enchant = "None", input_back_enchant = "None", input_chest_enchant = "None", input_wrist_enchant = "None", input_gloves_enchant = "None", input_legs_enchant = "None", input_boots_enchant = "None", input_ring1_enchant = "None", input_ring2_enchant = "None", raid_buff_crypt_fever = False, pre_pot_potion = False, tanking = False):
import random
import pandas as pd
#from war_attacks import bloodthirst, whirlwind, heroicstrike, cleave, execute, slam, rend, mortalstrike, overpower, shatteringthrow, sunderarmor, bladestorm, sweepingstrikes, thunderclap, bleeds, deepwounds
#Warrior Stance: 0 - Battle, 1 - Prot, 2 - Berserker
#Warrior Specs: 0 - Arms, 1 - Fury, 2 - Prot
#race selection: 0 = Human, 1 = Dwarf, 2 = Nightelf, 3 = Gnome 4 = Dranei
#race selection: 5 = Orc, 6 = Undead, 7 = Tauren, 8 = Troll, 9 = Bloodelf #CAN'T BE BLOOD ELF AS WAR
base_race_stats = {"HP":(9621, 9651, 9611, 9581, 9611, 9641, 9541, 10047, 9631), "Strength":(184, 186, 181, 175, 185, 187, 173, 179, 185), "Agility":(113, 109, 118, 116, 110, 110, 111, 108, 115), "Stamina":(168, 171, 167, 164, 167, 170, 160, 170, 169), "Intel":(36, 35, 36, 42, 37, 33, 34, 31, 32), "Spirit":(63, 58, 59, 59, 61, 62, 64, 61, 60), "Armor":(226, 218, 236, 232, 220, 220, 222, 216, 230)}
base_strength = base_race_stats["Strength"][race_selection]
base_agility = base_race_stats["Agility"][race_selection]
base_stamina = base_race_stats["Stamina"][race_selection]
base_intel = base_race_stats["Intel"][race_selection]
base_spirit = base_race_stats["Spirit"][race_selection]
base_m_ap = 220
base_armor = base_race_stats["Armor"][race_selection]
base_hp = 7941
if race_selection == 7:
base_hp += 406
#Talent Lookup Here
#TODO: Fix Talent Section
remove_wowhead = talent_url.find("warrior/")+8
full_talent_list = talent_url[remove_wowhead:]
split_gylphs = full_talent_list.split("_")
amount_of_talent_rows = split_gylphs[0].count("-")
if amount_of_talent_rows < 2:
split_gylphs[0] = split_gylphs[0] + "-"
if amount_of_talent_rows < 1:
split_gylphs[0] = split_gylphs[0] + "-"
split_talents = split_gylphs[0].split("-")
if full_talent_list.find("_") > 0:
glyphs = split_gylphs[1]
elif full_talent_list.find("_") <= 0:
glyphs = ("00")
blood_talents = split_talents[0]
frost_talents = split_talents[1]
unholy_talents = split_talents[2]
blood_talents_len = len(blood_talents)
frost_talents_len = len(frost_talents)
unholy_talents_len = len(unholy_talents)
blood_talents = list(blood_talents)
frost_talents = list(frost_talents)
unholy_talents = list(unholy_talents)
if blood_talents_len < 31:
blood_talents_to_add = 31 - blood_talents_len
blood_talents_added = 0
while blood_talents_added < blood_talents_to_add:
blood_talents.append(0)
blood_talents_added += 1
if frost_talents_len < 27:
frost_talents_to_add = 27 - frost_talents_len
frost_talents_added = 0
while frost_talents_added < frost_talents_to_add:
frost_talents.append(0)
frost_talents_added += 1
if unholy_talents_len < 27:
unholy_talents_to_add = 27 - unholy_talents_len
unholy_talents_added = 0
while unholy_talents_added < unholy_talents_to_add:
unholy_talents.append(0)
unholy_talents_added += 1
total_gylph_check = ["1xtw", "1rzy", "1s0m", "1rzz", "1rzn", "1s00", "1s0j", "1s0h", "1rzm", "1rzw", "1xtx", "1s0g", "1s02", "1rqf", "22j4"]
using_glyphs = []
glyph_of_bladestorm = False
glyph_of_cleave = False
glyph_of_devastate = False
glyph_of_execute = False
glyph_of_heroic_strike = False
glyph_of_mortal_strike = False
glyph_overpower = False
glyph_of_rending = False
glyph_of_resonating_power = False
glyph_of_revenge = False
glyph_of_shockwave = False
glyph_of_sweeping_strikes = False
glyph_of_whirlwind = False
glyph_of_battle = False
glyph_of_command = False
for possibly_glyphs in total_gylph_check:
if glyphs.find(possibly_glyphs) > 0:
using_glyphs.append(possibly_glyphs)
if len(using_glyphs) > 0:
amount_of_used_glyphs = len(using_glyphs)
for possible_glyphs in using_glyphs:
if possible_glyphs == total_gylph_check[0]:
glyph_of_bladestorm = True
if possible_glyphs == total_gylph_check[1]:
glyph_of_cleave = True
if possible_glyphs == total_gylph_check[2]:
glyph_of_devastate = True
if possible_glyphs == total_gylph_check[3]:
glyph_of_execute = True
if possible_glyphs == total_gylph_check[4]:
glyph_of_heroic_strike = True
if possible_glyphs == total_gylph_check[5]:
glyph_of_mortal_strike = True
if possible_glyphs == total_gylph_check[6]:
glyph_overpower = True
if possible_glyphs == total_gylph_check[7]:
glyph_of_rending = True
if possible_glyphs == total_gylph_check[8]:
glyph_of_resonating_power = True
if possible_glyphs == total_gylph_check[9]:
glyph_of_revenge = True
if possible_glyphs == total_gylph_check[10]:
glyph_of_shockwave = True
if possible_glyphs == total_gylph_check[11]:
glyph_of_sweeping_strikes = True
if possible_glyphs == total_gylph_check[12]:
glyph_of_whirlwind = True
if possible_glyphs == total_gylph_check[13]:
glyph_of_battle = True
if possible_glyphs == total_gylph_check[14]:
glyph_of_command = True
##Talents
#Arms (Blood)
imp_heroic_strike_points = 0 # float(blood_talents[0])
deflection_points = 0 # float(blood_talents[0])
imp_rend_points = 0 # float(blood_talents[0])
imp_charge_points = 0 # float(blood_talents[0])
iron_will_points = 0 # float(blood_talents[0])
tact_mastery_points = 0 # float(blood_talents[0])
imp_overpower_points = 0 # float(blood_talents[0])
anger_management_points = 0 # float(blood_talents[0])
impale_points = 0 # float(blood_talents[0])
deep_wounds_points = 0 # float(blood_talents[0])
two_handed_wep_spec_points = 0 # float(blood_talents[0])
taste_for_blood_points = 0 # float(blood_talents[0])
polearm_spec_points = 0 # float(blood_talents[0])
sweeping_strikes_points = 0 # float(blood_talents[0])
mace_spec_points = 0 # float(blood_talents[0])
sword_spec_points = 0 # float(blood_talents[0])
weapon_mastery_points = 0 # float(blood_talents[0])
imp_hamstring_points = 0 # float(blood_talents[0])
trauma_points = 0 # float(blood_talents[0])
second_wind_points = 0 # float(blood_talents[0])
mortal_strike_points = 0 # float(blood_talents[0])
strength_of_arms_points = 0 # float(blood_talents[0])
imp_slam_points = 0 # float(blood_talents[0])
juggernaut_points = 0 # float(blood_talents[0])
imp_mortal_strike_points = 0 # float(blood_talents[0])
unrelenting_assault_points = 0 # float(blood_talents[0])
sudden_death_points = 0 # float(blood_talents[0])
endless_rage_points = 0 # float(blood_talents[0])
blood_frenzy_points = 0 # float(blood_talents[0])
wrecking_crew_points = 0 # float(blood_talents[0])
bladestorm_points = 0 # float(blood_talents[0])
#Fury (Frost)
armored_to_the_teeth_points = 0 # float(frost_talents[0])
booming_voice_points = 0 # float(frost_talents[0])
cruelty_points = 0 # float(frost_talents[0])
imp_demo_shout_points = 0 # float(frost_talents[0])
unbridled_wrath_points = 0 # float(frost_talents[0])
imp_cleave_points = 0 # float(frost_talents[0])
piercing_howl_points = 0 # float(frost_talents[0])
blood_craze_points = 0 # float(frost_talents[0])
comanding_presence_points = 0 # float(frost_talents[0])
dual_wield_spec_points = 0 # float(frost_talents[0])
imp_execute_points = 0 # float(frost_talents[0])
enrage_points = 0 # float(frost_talents[0])
precision_points = 0 # float(frost_talents[0])
death_wish_points = 0 # float(frost_talents[0])
imp_intercept_points = 0 # float(frost_talents[0])
imp_berserker_rage_points = 0 # float(frost_talents[0])
flurry_points = 0 # float(frost_talents[0])
intensify_rage_points = 0 # float(frost_talents[0])
bloodthirst_points = 0 # float(frost_talents[0])
imp_whirlwind_points = 0 # float(frost_talents[0])
furious_attacks_points = 0 # float(frost_talents[0])
imp_berserker_stance_points = 0 # float(frost_talents[0])
heroic_fury_points = 0 # float(frost_talents[0])
rampage_points = 0 # float(frost_talents[0])
bloodsurge_points = 0 # float(frost_talents[0])
unending_fury_points = 0 # float(frost_talents[0])
titans_grip_points = 0 # float(frost_talents[0])
#Prot (Unholy)
imp_bloodrage_points = 0 # float(unholy_talents[0])
shield_spec_points = 0 # float(unholy_talents[0])
imp_thunderclap_points = 0 # float(unholy_talents[0])
incite_points = 0 # float(unholy_talents[0])
anticipation_points = 0 # float(unholy_talents[0])
last_stand_points = 0 # float(unholy_talents[0])
imp_revenge_points = 0 # float(unholy_talents[0])
shield_mastery_points = 0 # float(unholy_talents[0])
toughness_points = 0 # float(unholy_talents[0])
imp_shield_reflect_points = 0 # float(unholy_talents[0])
imp_disarm_points = 0 # float(unholy_talents[0])
puncture_points = 0 # float(unholy_talents[0])
imp_disciplines_points = 0 # float(unholy_talents[0])
concussion_blow_points = 0 # float(unholy_talents[0])
gag_order_points = 0 # float(unholy_talents[0])
one_handed_wep_spec_points = 0 # float(unholy_talents[0])
imp_defensive_stance_points = 0 # float(unholy_talents[0])
vigilance_points = 0 # float(unholy_talents[0])
focused_rage_points = 0 # float(unholy_talents[0])
vitality_points = 0 # float(unholy_talents[0])
safeguard_points = 0 # float(unholy_talents[0])
warbringer_points = 0 # float(unholy_talents[0])
devastate_points = 0 # float(unholy_talents[0])
critical_block_points = 0 # float(unholy_talents[0])
sword_and_board_points = 0 # float(unholy_talents[0])
damage_shield_points = 0 # float(unholy_talents[0])
shockwave_points = 0 # float(unholy_talents[0])
#Consumes
#Potion
pot_of_speed = False
pot_of_wild_magic = False
if the_input_potion != "None":
pot_start_time = the_input_potion_timer
if the_input_potion == "Potion of Speed":
pot_of_speed = True
elif the_input_potion == "Potion of Wild Magic":
pot_of_wild_magic = True
#Flask
flask_of_endless_rage = False
if the_input_flask != "None":
if the_input_flask == "Flask of Endless Rage":
flask_of_endless_rage = True
#Food
food_spiced_worm_burger = False
food_very_burnt_worg = False
food_fish_feast = False
food_great_feast = False
food_blackened_dragonfin = False
food_dragonfin_filet = False
food_mega_mammoth_meal = False
food_hearty_rhino = False
food_rhinolicious_wormsteak = False
food_snapper_extreme = False
if the_input_food_selection != "None":
if the_input_food_selection == "Spiced Worm Burger":
food_spiced_worm_burger = True
elif the_input_food_selection == "Very Burnt Worg":
food_very_burnt_worg = True
elif the_input_food_selection == "Fish Feast":
food_fish_feast = True
elif the_input_food_selection == "Great Feast":
food_great_feast = True
elif the_input_food_selection == "Blackened Dragonfin":
food_blackened_dragonfin = True
elif the_input_food_selection == "Dragonfin Filet":
food_dragonfin_filet = True
elif the_input_food_selection == "Mega Mammoth Meal":
food_mega_mammoth_meal = True
elif the_input_food_selection == "Hearty Rhino":
food_hearty_rhino = True
elif the_input_food_selection == "Rhinolicious Wormsteak":
food_rhinolicious_wormsteak = True
elif the_input_food_selection == "Snapper Extreme":
food_snapper_extreme = True
#Raid Buffs & Debuffs & On-Use Specials
if raid_buff_bloodlust == False:
bloodlust_start_time = 5000
if personal_buff_hysteria == False:
hysteria_start_time = 5000
if personal_buff_tricks_of_the_trade == False:
tricks_start_time = 5000
if personal_buff_orc_blood_fury == False:
bloodfury_start_time = 5000
if personal_buff_troll_berserking_buff == False:
berserking_start_time = 5000
if pot_of_speed == False:
pot_of_speed_start_time = 5000
if pot_of_wild_magic == False:
pot_of_wild_magic_start_time = 5000
if pot_of_speed == True:
pot_of_speed_start_time = pot_start_time
if pot_of_wild_magic == True:
pot_of_wild_magic_start_time = pot_start_time
max_rage = 100
#Gem input here
geard_gems = [input_gem1, input_gem2, input_gem3, input_gem4, input_gem5, input_gem6, input_gem7, input_gem8, input_gem9, input_gem10, input_gem11, input_gem12, input_gem13, input_gem14, input_gem15, input_gem16, input_gem17, input_gem18, input_gem19, input_gem20, input_gem21, input_gem22, input_gem23, input_gem24, input_gem25, input_gem26, input_gem27, input_gem28, input_gem29, input_gem30, input_gem31, input_gem32, input_gem33, input_gem34, input_gem35, input_gem36, input_gem37, input_gem38, input_gem39, input_gem40, input_gem41, input_gem42, input_gem43, input_gem44, input_gem45, input_gem46, input_gem47, input_gem48, input_gem49, input_gem50, input_gem51, input_gem52, input_gem53, input_gem54, input_gem55, input_gem56, input_gem57, input_gem58, input_gem59, input_gem60, input_gem61, input_gem62, input_gem63, input_gem64]
items_gems_data = pd.read_csv (r'EquipmentList - Gems.csv')
gem_attack_power = 0
gem_strength = 0
gem_agility = 0
gem_spell_power = 0
gem_dodge_rating = 0
gem_parry_rating = 0
gem_armor_pen = 0
gem_expertise_rating = 0
gem_intelligence = 0
gem_crit_rating = 0
gem_haste_rating = 0
gem_hit_rating = 0
gem_defense_rating = 0
gem_resilience = 0
gem_spell_pen = 0
gem_stamina = 0
gem_spirit = 0
for gems_current in geard_gems:
if gems_current == "None":
continue
else:
#only need rows 1 - 7
current_i = (((items_gems_data[items_gems_data['Name'] == gems_current])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
gem_amount_to_add = float(current_i[2])
gem_stat_to_add = current_i[3]
if gem_stat_to_add == "Attack Power":
gem_attack_power += gem_amount_to_add
elif gem_stat_to_add == "Strength":
gem_strength += gem_amount_to_add
elif gem_stat_to_add == "Agility":
gem_agility += gem_amount_to_add
elif gem_stat_to_add == "Spell Power":
gem_spell_power += gem_amount_to_add
elif gem_stat_to_add == "Dodge Rating":
gem_dodge_rating += gem_amount_to_add
elif gem_stat_to_add == "Parry Rating":
gem_parry_rating += gem_amount_to_add
elif gem_stat_to_add == "Armor Pen":
gem_armor_pen += gem_amount_to_add
elif gem_stat_to_add == "Expertise Rating":
gem_expertise_rating += gem_amount_to_add
elif gem_stat_to_add == "Intelligence":
gem_intelligence += gem_amount_to_add
elif gem_stat_to_add == "Crit Rating":
gem_crit_rating += gem_amount_to_add
elif gem_stat_to_add == "Haste Rating":
gem_haste_rating += gem_amount_to_add
elif gem_stat_to_add == "Hit Rating":
gem_hit_rating += gem_amount_to_add
elif gem_stat_to_add == "Defense Rating":
gem_defense_rating += gem_amount_to_add
elif gem_stat_to_add == "Resilience":
gem_resilience += gem_amount_to_add
elif gem_stat_to_add == "Spell Pen":
gem_spell_pen += gem_amount_to_add
elif gem_stat_to_add == "Stamina":
gem_stamina += gem_amount_to_add
elif gem_stat_to_add == "Spirit":
gem_spirit += gem_amount_to_add
elif gem_stat_to_add == "All Stats":
gem_strength += gem_amount_to_add
gem_agility += gem_amount_to_add
gem_intelligence += gem_amount_to_add
gem_stamina += gem_amount_to_add
gem_spirit += gem_amount_to_add
if current_i[5] != "None":
gem2_amount_to_add = float(current_i[4])
gem2_stat_to_add = current_i[5]
if gem2_stat_to_add == "Attack Power":
gem_attack_power += gem2_amount_to_add
elif gem2_stat_to_add == "Strength":
gem_strength += gem2_amount_to_add
elif gem2_stat_to_add == "Agility":
gem_agility += gem2_amount_to_add
elif gem2_stat_to_add == "Spell Power":
gem_spell_power += gem2_amount_to_add
elif gem2_stat_to_add == "Dodge Rating":
gem_dodge_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Parry Rating":
gem_parry_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Armor Pen":
gem_armor_pen += gem2_amount_to_add
elif gem2_stat_to_add == "Expertise Rating":
gem_expertise_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Intelligence":
gem_intelligence += gem2_amount_to_add
elif gem2_stat_to_add == "Crit Rating":
gem_crit_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Haste Rating":
gem_haste_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Hit Rating":
gem_hit_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Defense Rating":
gem_defense_rating += gem2_amount_to_add
elif gem2_stat_to_add == "Resilience":
gem_resilience += gem2_amount_to_add
elif gem2_stat_to_add == "Spell Pen":
gem_spell_pen += gem2_amount_to_add
elif gem2_stat_to_add == "Stamina":
gem_stamina += gem2_amount_to_add
elif gem2_stat_to_add == "Spirit":
gem_spirit += gem2_amount_to_add
elif gem2_stat_to_add == "All Stats":
gem_strength += gem2_amount_to_add
gem_agility += gem2_amount_to_add
gem_intelligence += gem2_amount_to_add
gem_stamina += gem2_amount_to_add
gem_spirit += gem2_amount_to_add
#Meta Gem Input area
if input_meta_gem1 != "None":
current_i = (((items_gems_data[items_gems_data['Meta Name'] == input_meta_gem1])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
gem_amount_to_add = float(current_i[10])
gem_stat_to_add = current_i[11]
if gem_stat_to_add == "Attack Power":
gem_attack_power += gem_amount_to_add
elif gem_stat_to_add == "Agility":
gem_agility += gem_amount_to_add
elif gem_stat_to_add == "Spell Power":
gem_spell_power += gem_amount_to_add
elif gem_stat_to_add == "Crit Rating":
gem_crit_rating += gem_amount_to_add
elif gem_stat_to_add == "Stamina":
gem_stamina += gem_amount_to_add
##
##Pullin Current gear & Stats
items_equipment_data = pd.read_csv (r'EquipmentList - Gear - Warrior.csv')
gear = []
weapons = []
gear.append(item_head)
gear.append(item_neck)
gear.append(item_shoulders)
gear.append(item_back)
gear.append(item_chest)
gear.append(item_wrist)
gear.append(item_gloves)
gear.append(item_waist)
gear.append(item_legs)
gear.append(item_boots)
gear.append(item_ring1)
gear.append(item_ring2)
gear.append(item_trinket1)
gear.append(item_trinket2)
gear.append(item_ranged)
weapons.append(item_mh)
weapons.append(item_oh)
gears_strength = []
gears_agility = []
gears_stamina = []
gears_intelligence = []
gears_spirit = []
gears_attack_power_bonuses = []
gears_hit_rating = []
gears_crit_rating = []
gears_haste_rating = []
gears_armor_pen_rating = []
gears_expertise_rating = []
gears_armor = []
gears_defense_rating = []
gears_dodge_rating = []
gears_parry_rating = []
weapons_item_slot = []
weapons_type = []
weapons_min_damage = []
weapons_max_damage = []
weapons_speed = []
gear_list = 0
weapon_list = 0
gears_strength_index = items_equipment_data.columns.get_loc('Strength')
gears_agility_index = items_equipment_data.columns.get_loc('Agility')
gears_stamina_index = items_equipment_data.columns.get_loc('Stamina')
gears_intelligence_index = items_equipment_data.columns.get_loc('Intelligence')
gears_spirit_index = items_equipment_data.columns.get_loc('Spirit')
gears_attack_power_bonuses_index = items_equipment_data.columns.get_loc('Attack Power')
gears_hit_rating_index = items_equipment_data.columns.get_loc('Hit Rating')
gears_crit_rating_index = items_equipment_data.columns.get_loc('Crit Rating')
gears_haste_rating_index = items_equipment_data.columns.get_loc('Haste Rating')
gears_armor_pen_rating_index = items_equipment_data.columns.get_loc('Armor Pen')
gears_expertise_rating_index = items_equipment_data.columns.get_loc('Expertise Rating')
gears_armor_index = items_equipment_data.columns.get_loc('Armor')
gears_defense_rating_index = items_equipment_data.columns.get_loc('Defense Rating')
gears_dodge_rating_index = items_equipment_data.columns.get_loc('Dodge Rating')
gears_parry_rating_index = items_equipment_data.columns.get_loc('Parry Rating')
while gear_list < 15:
if ((items_equipment_data[items_equipment_data['Name'] == gear[gear_list]])).empty:
gear_list += 1
continue
else:
current_i = (((items_equipment_data[items_equipment_data['Name'] == gear[gear_list]])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
gears_strength.append(current_i[gears_strength_index])
gears_agility.append(current_i[gears_agility_index])
gears_stamina.append(current_i[gears_stamina_index])
gears_intelligence.append(current_i[gears_intelligence_index])
gears_spirit.append(current_i[gears_spirit_index])
gears_attack_power_bonuses.append(current_i[gears_attack_power_bonuses_index])
gears_hit_rating.append(current_i[gears_hit_rating_index])
gears_crit_rating.append(current_i[gears_crit_rating_index])
gears_haste_rating.append(current_i[gears_haste_rating_index])
gears_armor_pen_rating.append(current_i[gears_armor_pen_rating_index])
gears_expertise_rating.append(current_i[gears_expertise_rating_index])
gears_armor.append(current_i[gears_armor_index])
gears_defense_rating.append(current_i[gears_defense_rating_index])
gears_dodge_rating.append(current_i[gears_dodge_rating_index])
gears_parry_rating.append(current_i[gears_parry_rating_index])
gear_list += 1
#These columns not yet added to items: GEMS sockte bonus & amount Proc and proc amounts and values
#1Meta gem, Gem1-Gem64, socketbonus1-socket16
if item_mh == "":
items_mh_lowend = 1
items_mh_topend = 10
items_mh_speed = 1.0
items_oh_lowend = 1
items_oh_topend = 10
items_oh_speed = 1.0
item_two_hand = True
else:
#EquipmentList - Weapons
items_weapons_data = pd.read_csv (r'EquipmentList - Weapons - Warrior.csv')
gears_strength_index = items_weapons_data.columns.get_loc('Strength')
gears_agility_index = items_weapons_data.columns.get_loc('Agility')
gears_stamina_index = items_weapons_data.columns.get_loc('Stamina')
gears_intelligence_index = items_weapons_data.columns.get_loc('Intelligence')
gears_spirit_index = items_weapons_data.columns.get_loc('Spirit')
gears_attack_power_bonuses_index = items_weapons_data.columns.get_loc('Attack Power')
gears_hit_rating_index = items_weapons_data.columns.get_loc('Hit Rating')
gears_crit_rating_index = items_weapons_data.columns.get_loc('Crit Rating')
gears_haste_rating_index = items_weapons_data.columns.get_loc('Haste Rating')
gears_armor_pen_rating_index = items_weapons_data.columns.get_loc('Armor Pen')
gears_expertise_rating_index = items_weapons_data.columns.get_loc('Expertise Rating')
gears_armor_index = items_weapons_data.columns.get_loc('Armor')
gears_defense_rating_index = items_weapons_data.columns.get_loc('Defense Rating')
gears_dodge_rating_index = items_weapons_data.columns.get_loc('Dodge Rating')
gears_parry_rating_index = items_weapons_data.columns.get_loc('Parry Rating')
weapons_item_slot_index = items_weapons_data.columns.get_loc('Item Slot')
weapons_type_index = items_weapons_data.columns.get_loc('Type')
weapons_min_damage_index = items_weapons_data.columns.get_loc('Min Damage')
weapons_max_damage_index = items_weapons_data.columns.get_loc('Max Damage')
weapons_speed_index = items_weapons_data.columns.get_loc('Speed')
#TODO: Weapon list and +=2 below for 2h need to e updated to work w/ titans grip and 2 2h's
while weapon_list < 2:
if ((items_weapons_data[items_weapons_data['Name'] == weapons[weapon_list]])).empty:
weapon_list += 1
continue
else:
current_i = (((items_weapons_data[items_weapons_data['Name'] == weapons[weapon_list]])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
gears_strength.append(current_i[gears_strength_index])
gears_agility.append(current_i[gears_agility_index])
gears_stamina.append(current_i[gears_stamina_index])
gears_intelligence.append(current_i[gears_intelligence_index])
gears_spirit.append(current_i[gears_spirit_index])
gears_attack_power_bonuses.append(current_i[gears_attack_power_bonuses_index])
gears_hit_rating.append(current_i[gears_hit_rating_index])
gears_crit_rating.append(current_i[gears_crit_rating_index])
gears_haste_rating.append(current_i[gears_haste_rating_index])
gears_armor_pen_rating.append(current_i[gears_armor_pen_rating_index])
gears_expertise_rating.append(current_i[gears_expertise_rating_index])
gears_armor.append(current_i[gears_armor_index])
gears_defense_rating.append(current_i[gears_defense_rating_index])
gears_dodge_rating.append(current_i[gears_dodge_rating_index])
gears_parry_rating.append(current_i[gears_parry_rating_index])
weapons_item_slot.append(current_i[weapons_item_slot_index])
weapons_type.append(current_i[weapons_type_index])
weapons_min_damage.append(current_i[weapons_min_damage_index])
weapons_max_damage.append(current_i[weapons_max_damage_index])
weapons_speed.append(current_i[weapons_speed_index])
if weapons_item_slot[0] == "2handed":
weapon_list += 2
item_two_hand = True
if titans_grip_points == 1:
weapon_list -= 1
else:
item_two_hand = False
weapon_list += 1
items_mh_lowend = float(weapons_min_damage[0])
items_mh_topend = float(weapons_max_damage[0])
items_mh_speed = float(weapons_speed[0])
if item_two_hand == False:
items_oh_lowend = float(weapons_min_damage[1])
items_oh_topend = float(weapons_max_damage[1])
items_oh_speed = float(weapons_speed[1])
elif item_two_hand == True:
items_oh_lowend = 1
items_oh_topend = 10
items_oh_speed = 1.0
#Lookup Socket Bonus Here
socket_lookup_num = 0
all_socket_bonuses = [input_socketbonus1, input_socketbonus2, input_socketbonus3, input_socketbonus4, input_socketbonus5, input_socketbonus6, input_socketbonus7, input_socketbonus8, input_socketbonus9, input_socketbonus10, input_socketbonus11, input_socketbonus12, input_socketbonus13, input_socketbonus14, input_socketbonus15, input_socketbonus16]
socket_items_list = [item_mh, item_oh, item_head, item_neck, item_shoulders, item_back, item_chest, item_wrist, item_gloves, item_waist, item_legs, item_boots, item_ring1, item_ring2, item_trinket1, item_trinket2]
for all_socket in all_socket_bonuses:
if all_socket != False:
socket_lookup_item = socket_items_list[socket_lookup_num]
if socket_lookup_num < 2:
current_i = (((items_weapons_data[items_weapons_data['Name'] == socket_lookup_item])))
socket_bonus_amount = current_i.iloc[-1:]['Socket Bonus Amount']
socket_bonus_amount = float(socket_bonus_amount.to_csv(index=False, header=False, sep=' '))
socket_bonus_type = current_i.iloc[-1:]['Socket Bonus Type']
socket_bonus_type= socket_bonus_type.to_csv(index=False, header=False, sep=' ')
if socket_bonus_type == "Attack Power":
gem_attack_power += socket_bonus_amount
elif socket_bonus_type == "Strength":
gem_strength += socket_bonus_amount
elif socket_bonus_type == "Agility":
gem_agility += socket_bonus_amount
elif socket_bonus_type == "Dodge Rating":
gem_dodge_rating += socket_bonus_amount
elif socket_bonus_type == "Parry Rating":
gem_parry_rating += socket_bonus_amount
elif socket_bonus_type == "Expertise Rating":
gem_expertise_rating += socket_bonus_amount
elif socket_bonus_type == "Intelligence":
gem_intelligence += socket_bonus_amount
elif socket_bonus_type == "Crit Rating":
gem_crit_rating += socket_bonus_amount
elif socket_bonus_type == "Haste Rating":
gem_haste_rating += socket_bonus_amount
elif socket_bonus_type == "Hit Rating":
gem_hit_rating += socket_bonus_amount
elif socket_bonus_type == "Defense Rating":
gem_defense_rating += socket_bonus_amount
elif socket_bonus_type == "Resilience":
gem_resilience += socket_bonus_amount
elif socket_bonus_type == "Stamina":
gem_stamina += socket_bonus_amount
elif socket_bonus_type == "Armor Pen":
gem_armor_pen += socket_bonus_amount
else:
current_i = (((items_equipment_data[items_equipment_data['Name'] == socket_lookup_item])))
socket_bonus_amount = current_i.iloc[-1:]['Socket Bonus Amount']
socket_bonus_amount= float(socket_bonus_amount.to_csv(index=False, header=False, sep=' '))
socket_bonus_type = current_i.iloc[-1:]['Socket Bonus Type']
socket_bonus_type= socket_bonus_type.to_csv(index=False, header=False, sep=' ')
if socket_bonus_type == "Attack Power":
gem_attack_power += socket_bonus_amount
elif socket_bonus_type == "Strength":
gem_strength += socket_bonus_amount
elif socket_bonus_type == "Agility":
gem_agility += socket_bonus_amount
elif socket_bonus_type == "Dodge Rating":
gem_dodge_rating += socket_bonus_amount
elif socket_bonus_type == "Parry Rating":
gem_parry_rating += socket_bonus_amount
elif socket_bonus_type == "Expertise Rating":
gem_expertise_rating += socket_bonus_amount
elif socket_bonus_type == "Intelligence":
gem_intelligence += socket_bonus_amount
elif socket_bonus_type == "Crit Rating":
gem_crit_rating += socket_bonus_amount
elif socket_bonus_type == "Haste Rating":
gem_haste_rating += socket_bonus_amount
elif socket_bonus_type == "Hit Rating":
gem_hit_rating += socket_bonus_amount
elif socket_bonus_type == "Defense Rating":
gem_defense_rating += socket_bonus_amount
elif socket_bonus_type == "Resilience":
gem_resilience += socket_bonus_amount
elif socket_bonus_type == "Stamina":
gem_stamina += socket_bonus_amount
elif socket_bonus_type == "Armor Pen":
gem_armor_pen += socket_bonus_amount
socket_lookup_num += 1
#Lookup Enchant Here
enchant_lookup_num = 0
all_enchant_bonuses = [input_mh_enchant, input_oh_enchant, input_head_enchant, input_shoulder_enchant, input_back_enchant, input_chest_enchant, input_wrist_enchant, input_gloves_enchant, input_legs_enchant, input_boots_enchant, input_ring1_enchant, input_ring2_enchant]
enchant_items_list = [item_mh, item_oh, item_head, item_shoulders, item_back, item_chest, item_wrist, item_gloves, item_legs, item_boots, item_ring1, item_ring2]
items_enchant_data = pd.read_csv (r'EquipmentList - Enchants.csv')
for all_enchant in all_enchant_bonuses:
if all_enchant != "None":
#enchant_lookup_item = enchant_items_list[enchant_lookup_num]
enchant_lookup_item = all_enchant_bonuses[enchant_lookup_num]
current_i = (((items_enchant_data[items_enchant_data['Name'] == enchant_lookup_item])))
enchant_bonus_amount = current_i.iloc[-1:]['Amount']
enchant_bonus_amount = float(enchant_bonus_amount.to_csv(index=False, header=False, sep=' '))
enchant_bonus_type = current_i.iloc[-1:]['Stat']
enchant_bonus_type = enchant_bonus_type.to_csv(index=False, header=False, sep=' ')
enchant_bonus_amount2 = current_i.iloc[-1:]['Amount2']
enchant_bonus_amount2 = float(enchant_bonus_amount2.to_csv(index=False, header=False, sep=' '))
enchant_bonus_type2 = current_i.iloc[-1:]['Stat2']
enchant_bonus_type2 = enchant_bonus_type2.to_csv(index=False, header=False, sep=' ')
if enchant_bonus_type == "Attack Power":
gem_attack_power += enchant_bonus_amount
elif enchant_bonus_type == "Strength":
gem_strength += enchant_bonus_amount
elif enchant_bonus_type == "Agility":
gem_agility += enchant_bonus_amount
elif enchant_bonus_type == "Dodge Rating":
gem_dodge_rating += enchant_bonus_amount
elif enchant_bonus_type == "Parry Rating":
gem_parry_rating += enchant_bonus_amount
elif enchant_bonus_type == "Expertise Rating":
gem_expertise_rating += enchant_bonus_amount
elif enchant_bonus_type == "Intelligence":
gem_intelligence += enchant_bonus_amount
elif enchant_bonus_type == "Crit Rating":
gem_crit_rating += enchant_bonus_amount
elif enchant_bonus_type == "Haste Rating":
gem_haste_rating += enchant_bonus_amount
elif enchant_bonus_type == "Hit Rating":
gem_hit_rating += enchant_bonus_amount
elif enchant_bonus_type == "Defense Rating":
gem_defense_rating += enchant_bonus_amount
elif enchant_bonus_type == "Resilience":
gem_resilience += enchant_bonus_amount
elif enchant_bonus_type == "Stamina":
gem_stamina += enchant_bonus_amount
elif enchant_bonus_type == "Armor Pen":
gem_armor_pen += enchant_bonus_amount
elif enchant_bonus_type == "All Stats":
gem_strength += enchant_bonus_amount
gem_agility += enchant_bonus_amount
gem_stamina += enchant_bonus_amount
if enchant_bonus_type2 == "Attack Power":
gem_attack_power += enchant_bonus_amount2
elif enchant_bonus_type2 == "Strength":
gem_strength += enchant_bonus_amount2
elif enchant_bonus_type2 == "Agility":
gem_agility += enchant_bonus_amount2
elif enchant_bonus_type2 == "Dodge Rating":
gem_dodge_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Parry Rating":
gem_parry_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Expertise Rating":
gem_expertise_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Intelligence":
gem_intelligence += enchant_bonus_amount2
elif enchant_bonus_type2 == "Crit Rating":
gem_crit_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Haste Rating":
gem_haste_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Hit Rating":
gem_hit_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Defense Rating":
gem_defense_rating += enchant_bonus_amount2
elif enchant_bonus_type2 == "Resilience":
gem_resilience += enchant_bonus_amount2
elif enchant_bonus_type2 == "Stamina":
gem_stamina += enchant_bonus_amount2
elif enchant_bonus_type2 == "Armor Pen":
gem_armor_pen += enchant_bonus_amount2
elif enchant_bonus_type2 == "All Stats":
gem_strength += enchant_bonus_amount2
gem_agility += enchant_bonus_amount2
gem_stamina += enchant_bonus_amount2
enchant_lookup_num += 1
#TODO: Need to add more weapon enchants
sword_berserking_enchant = False
swordguard_enchant = False
engi_gloves_enchant = False
sword_berserking_enchant_hand = "No"
sword_berserking_enchant_hand_o = "No"
if input_mh_enchant == "Enchant Weapon - Berserking":
sword_berserking_enchant = True
sword_berserking_enchant_hand = "mh"
if input_oh_enchant == "Enchant Weapon - Berserking":
sword_berserking_enchant = True
sword_berserking_enchant_hand_o = "oh"
if input_back_enchant == "Swordguard Embroidery":
swordguard_enchant = True
if input_gloves_enchant == "Hyperspeed Accelerators":
engi_gloves_enchant = True
top_str = sum(float(sub) for sub in gears_strength) + base_strength + gem_strength
top_agi = sum(float(sub) for sub in gears_agility) + base_agility + gem_agility
top_stam = sum(float(sub) for sub in gears_stamina) + base_stamina + gem_stamina
top_intel = sum(float(sub) for sub in gears_intelligence) + base_intel + gem_intelligence
top_spirit = sum(float(sub) for sub in gears_spirit) + base_spirit + gem_spirit
top_ap = sum(float(sub) for sub in gears_attack_power_bonuses) + base_m_ap + gem_attack_power
top_hit_rating = sum(float(sub) for sub in gears_hit_rating) + gem_hit_rating
top_crit_rating = sum(float(sub) for sub in gears_crit_rating) + gem_crit_rating
top_haste_rating = sum(float(sub) for sub in gears_haste_rating) + gem_haste_rating
top_armor_pen_rating = sum(float(sub) for sub in gears_armor_pen_rating) + gem_armor_pen
top_expertise_rating = sum(float(sub) for sub in gears_expertise_rating) + gem_expertise_rating
top_armor = sum(float(sub) for sub in gears_armor)
top_defense_rating = sum(float(sub) for sub in gears_defense_rating) + gem_defense_rating
top_dodge_rating = sum(float(sub) for sub in gears_dodge_rating) + gem_dodge_rating
top_parry_rating = sum(float(sub) for sub in gears_parry_rating) + gem_parry_rating
#Add in Trinket Information here
use_trinket_index = items_equipment_data.columns.get_loc('Use Trinket')
trinket_type_index = items_equipment_data.columns.get_loc('Trinket Type')
trinket_chanceon_index = items_equipment_data.columns.get_loc('Trinket Chanceon')
trinket_chanceperc_index = items_equipment_data.columns.get_loc('Trinket Chanceperc')
trinket_bonus_amount_index = items_equipment_data.columns.get_loc('Trinket Bonus Amount')
trinket_bonus_type_index = items_equipment_data.columns.get_loc('Trinket Bonus Type')
trinket_length_index = items_equipment_data.columns.get_loc('Trinket Length')
trinket_icd_index = items_equipment_data.columns.get_loc('Trinket ICD')
trinket_min_damage_index = items_equipment_data.columns.get_loc('Damage Low')
trinket_max_damage_index = items_equipment_data.columns.get_loc('Damage High')
#Trinket 1 lookup here
current_i = (((items_equipment_data[items_equipment_data['Name'] == gear[12]])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
trinket_1_use = False
trinket_2_use = False
if current_i[use_trinket_index] == 'True':
trinket1_type = current_i[trinket_type_index]
trinket1_chanceon = current_i[trinket_chanceon_index]
trinket1_chanceperc = current_i[trinket_chanceperc_index]
trinket1_bonus_amount = current_i[trinket_bonus_amount_index]
trinket1_bonus_type = current_i[trinket_bonus_type_index]
trinket1_length = current_i[trinket_length_index]
trinket1_icd = current_i[trinket_icd_index]
trinket1_min_damage = current_i[trinket_min_damage_index]
trinket1_max_damage = current_i[trinket_max_damage_index]
if len(trinket1_min_damage) > 1:
trinket1_min_damage = int(float(trinket1_min_damage))
else:
trinket1_min_damage = int(float(0))
if len(trinket1_max_damage) > 2:
trinket1_max_damage = int(float(trinket1_max_damage))
else:
trinket1_max_damage = int(float(0))
trinket_1_use = True
#Trinket 2 lookup here
current_i = (((items_equipment_data[items_equipment_data['Name'] == gear[13]])))
current_i = current_i.to_csv(index=False, header=False, sep='\t')
current_i = current_i.split("\t")
if current_i[use_trinket_index] == 'True':
trinket2_type = current_i[trinket_type_index]
trinket2_chanceon = current_i[trinket_chanceon_index]
trinket2_chanceperc = current_i[trinket_chanceperc_index]
trinket2_bonus_amount = current_i[trinket_bonus_amount_index]
trinket2_bonus_type = current_i[trinket_bonus_type_index]
trinket2_length = current_i[trinket_length_index]
trinket2_icd = current_i[trinket_icd_index]
trinket2_min_damage = current_i[trinket_min_damage_index]
trinket2_max_damage = current_i[trinket_max_damage_index]
if len(trinket2_min_damage) > 1:
trinket2_min_damage = int(float(trinket2_min_damage))
else:
trinket2_min_damage = int(float(0))
if len(trinket2_max_damage) > 2:
trinket2_max_damage = int(float(trinket2_max_damage))
else:
trinket2_max_damage = int(float(0))
trinket_2_use = True
###END Trinket Lookup
#Offcase Trinket Maker
fury_of_five_flights_using = False
if item_trinket1 == "Fury of the Five Flights" or item_trinket2 == "Fury of the Five Flights":
fury_of_five_flights_using = True
if item_two_hand == True:
attack_damage_normalization = 3.3
elif item_two_hand == False:
attack_damage_normalization = 2.4
if titans_grip_points == 1:
item_two_hand = False
#Dranei Race Bonuses
if race_selection == 4:
top_hit_rating += 32.789
elif race_selection != 4:
if dranei_in_party == True:
top_hit_rating += 32.789
#Consumes
if flask_of_endless_rage == True:
top_ap += 180
if food_spiced_worm_burger == True:
top_crit_rating += 40
if food_very_burnt_worg == True:
top_haste_rating += 40
if food_fish_feast == True:
top_ap += 80
if food_great_feast == True:
top_ap += 60
if food_blackened_dragonfin == True:
top_agi += 40
if food_dragonfin_filet == True:
top_str += 40
if food_mega_mammoth_meal == True:
top_ap += 80
if food_hearty_rhino == True:
top_armor_pen_rating += 40
if food_rhinolicious_wormsteak == True:
top_expertise_rating += 40
if food_snapper_extreme == True:
top_hit_rating += 40
#TODO: Add different tier set counts for warrior here
#Set Bonus Lookup
tier_bonus_item_list = [item_head, item_shoulders, item_chest, item_legs, item_gloves]
items_setbonus_data = pd.read_csv (r'EquipmentList - Setbonus - Warrior.csv')
scourgeborne_battlegear_count = 0
scourgeborne_plate_count = 0
darkruned_battlegear_count = 0
darkruned_plate_count = 0
thassarians_battlegear_count = 0
koltiras_battlegear_count = 0
thassarians_plate_count = 0
koltiras_plate_count = 0
scourgelords_battlegear_count = 0
scourgelords_plate_count = 0
for items in tier_bonus_item_list:
if ((items_setbonus_data[items_setbonus_data['Name'] == items])).empty:
continue
else:
setbonus_item = (((items_setbonus_data[items_setbonus_data['Name'] == items])))
setbonus_item = setbonus_item["Tiername"]
setbonus_item = setbonus_item.to_csv(index=False, header=False)
setbonus_item = setbonus_item[:setbonus_item.find("\n")]
if setbonus_item == "Scourgeborne Battlegear":
scourgeborne_battlegear_count += 1
if setbonus_item == "Scourgeborne Plate":
scourgeborne_plate_count += 1
if setbonus_item == "Darkruned Battlegear":
darkruned_battlegear_count += 1
if setbonus_item == "Darkruned Plate":
darkruned_plate_count += 1
if setbonus_item == "Thassarian's Battlegear":
thassarians_battlegear_count += 1
if setbonus_item == "Koltira's Battlegear":
koltiras_battlegear_count += 1
if setbonus_item == "Thassarian's Plate":
thassarians_plate_count += 1
if setbonus_item == "Koltira's Plate":
koltiras_plate_count += 1
if setbonus_item == "Scourgelord's Battlegear":
scourgelords_battlegear_count += 1
if setbonus_item == "Scourgelord's Plate":
scourgelords_plate_count += 1
scourgeborne_battlegear_two_set = 0
scourgeborne_battlegear_four_set = False
scourgeborne_plate_two_set = 0
darkruned_battlegear_two_set = 0
darkruned_battlegear_four_set = 0
darkruned_plate_two_set = False
t9_dps_two_set = False
t9_dps_four_set = False
t9_tank_two_set = False
t9_tank_four_set = False
scourgelords_battlegear_two_set = False
scourgelords_battlegear_four_set = False
scourgelords_plate_two_set = False
#Set Bonus Variable Names Area
if scourgeborne_battlegear_count >= 2:
scourgeborne_battlegear_two_set = 5
if scourgeborne_battlegear_count >= 4:
scourgeborne_battlegear_four_set = True
if scourgeborne_plate_count >= 2:
scourgeborne_plate_two_set = 10
if darkruned_battlegear_count >= 2:
darkruned_battlegear_two_set = 8
if darkruned_battlegear_count >= 4:
darkruned_battlegear_four_set = .2
if darkruned_plate_count >= 2:
darkruned_plate_two_set = True #Effects Rune Strike... not added yet
if thassarians_battlegear_count >= 2:
t9_dps_two_set = True
if thassarians_battlegear_count >= 4:
t9_dps_four_set = True
if koltiras_battlegear_count >= 2:
t9_dps_two_set = True
if koltiras_battlegear_count >= 4:
t9_dps_four_set = True
if thassarians_plate_count >= 2:
t9_tank_two_set = True
if thassarians_plate_count >= 4:
t9_tank_four_set = True
if koltiras_plate_count >= 2:
t9_tank_two_set = True
if koltiras_plate_count >= 4:
t9_tank_four_set = True
if scourgelords_battlegear_count >= 2:
scourgelords_battlegear_two_set = True
if scourgelords_battlegear_count >= 4:
scourgelords_battlegear_four_set = True
if scourgelords_plate_count >= 2:
scourgelords_plate_two_set = True
#Raid Buff Adding
if raid_buff_imp_gift_of_the_wild > 0 and raid_buff_gift_of_the_wild == True: