Skip to content

Commit

Permalink
🔬 Make the damage calculation more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Oct 18, 2024
1 parent fe04c37 commit b927947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def calculate_damage(selected_ability, armor, helmet, weapon, ring1, ring2, skil
if ability["name"] == selected_ability:
ability_multiplier = ability["multiplier"]

dmg = (weapon + armor + helmet + ring1 + ring2) * skill * ability_multiplier

dmg = int(weapon * (0.6597 + 0.013202 * skill) * (armor + helmet + ring1 + ring2) * 0.0028 * ability_multiplier)
low = dmg * 0.95
high = dmg * 1.05

Expand Down

0 comments on commit b927947

Please sign in to comment.