Skip to content

Instantly share code, notes, and snippets.

@Solonarv
Last active August 29, 2015 14:18
Show Gist options
  • Save Solonarv/17f8c64315df211fb41d to your computer and use it in GitHub Desktop.
Save Solonarv/17f8c64315df211fb41d to your computer and use it in GitHub Desktop.
def check(dpsstats):
dmg, AS = dpsstats
return {
"www": dmg * (AS + 3*wex),
"wwe": (dmg + exort) * (AS + 2*wex),
"wee": (dmg + 2*exort) * (AS + wex),
"eee": (dmg + 3*exort) * AS
}
skadi = (247, 254)
bfly = (252, 289)
mkb = (340, 244)
wex = 14
exort = 21
check(skadi) # => {'wwe': 75576, 'eee': 78740, 'www': 73112, 'wee': 77452}
check(bfly) # => {'wwe': 86541, 'eee': 91035, 'www': 83412, 'wee': 89082}
check(mkb) # => {'wwe': 98192, 'eee': 98332, 'www': 97240, 'wee': 98556}
# Note that this isn't actually DPS; you need to divide those numbers by 170 to get actual DPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment