Skip to content

Instantly share code, notes, and snippets.

@desg
Created May 14, 2013 00:12
Show Gist options
  • Save desg/5572611 to your computer and use it in GitHub Desktop.
Save desg/5572611 to your computer and use it in GitHub Desktop.
runescape combat
mage = 99.0
defence = 80.
hp = 81.0
prayer = 70.0
attack = 80.0
strength = 80.
rangeL = 1.0
baseLevel = .25 * ( defence + hp + (prayer/2))
wLevel = 13.0/40.0 * (attack + strength)
rLevel = 13.0/40.0 * ((3/2) + rangeL)
mLevel = 13.0/40.0 * ((3.0/2.0) + mage)
print max(wLevel, mLevel, rLevel) + baseLevel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment