# Set up a calcs object.. # str, agi, ap, crit, hit, exp, haste, mast, mh, oh, procs, gear_buffs character_stats = character_data.get_stats() test_stats = stats.Stats(*(character_stats + [test_mh, test_oh, test_procs, test_gear_buffs]), pvp_power=0, pvp_resil=0, pvp_target_armor=None) # Initialize talents.. test_talents = talents.Talents(character_data.get_talents(), test_class, test_level) # Set up glyphs. glyph_list = character_data.get_glyphs() test_glyphs = glyphs.Glyphs(test_class, *glyph_list) # Set up settings. test_cycle = settings.CombatCycle() test_settings = settings.Settings(test_cycle, response_time=1) # Build a DPS object. calculator = AldrianasRogueDamageCalculator(test_stats, test_talents, test_glyphs, test_buffs, test_race, test_settings, test_level) # Compute EP values. ep_values = calculator.get_ep() # Compute DPS Breakdown.
character_gear_buffs.append('chaotic_metagem') test_gear_buffs = stats.GearBuffs(*character_gear_buffs) # Set up a calcs object.. lst = character_data.get_gear_stats() test_stats = stats.Stats(lst['str'], lst['agi'], lst['int'], lst['spirit'], lst['stam'], lst['ap'], lst['crit'], lst['hit'], lst['exp'], lst['haste'], lst['mastery'], test_mh, test_oh, test_procs, test_gear_buffs, pvp_power=lst['pvp_power'], pvp_resil=lst['pvp_resil'], pvp_target_armor=None) # Initialize talents.. if charInfo['talents'] == None: charInfo['talents'] = character_data.get_talents() test_talents = talents.Talents(charInfo['talents'], test_class, test_level) # Set up glyphs. glyph_list = character_data.get_glyphs() test_glyphs = glyphs.Glyphs(test_class, *glyph_list) # Set up settings. test_cycle = settings.AssassinationCycle(min_envenom_size_non_execute=4, min_envenom_size_execute=5, prioritize_rupture_uptime_non_execute=True, prioritize_rupture_uptime_execute=True) test_settings = settings.Settings(test_cycle, response_time=.5, duration=360, dmg_poison='dp', utl_poison='lp', is_pvp=charInfo['pvp'], stormlash=charInfo['stormlash'], shiv_interval=charInfo['shiv']) # Build a DPS object. #calculator = AldrianasRogueDamageCalculator(test_stats, test_talents, test_glyphs, test_buffs, test_race, test_settings, test_level, char_class=test_class) calculator = AldrianasRogueDamageCalculator(test_stats, test_talents, test_glyphs, test_buffs, test_race, test_settings, test_level) # Compute EP values. ep_values = calculator.get_ep()