def average_dps(self, hero_name): hero = DB.get_document('heroes/' + hero_name + '.json') dmg_bonus = hero.offensive_stats.summoned_ally_damage return self.calculate_dps(dmg_bonus, hero)
def __init__(self, power_id): self.stats = DB.get_document('powers/power_' + repr(power_id) + '.json') self.dmg_range = range(self.stats.low, self.stats.high) self.hits_per_second = self.stats.hits_per_second self.DMG_RATING_PER_PERCENT = 40
def average_dps(self, hero_name): hero = DB.get_document('heroes/' + hero_name + '.json') dmg_bonus = hero.offensive_stats.melee_base_damage + \ self.dmg_rating_to_percent(hero.offensive_stats.melee_damage_rating) return self.calculate_dps(dmg_bonus, hero)