Created
March 15, 2017 18:25
-
-
Save spanthetree/64c6e4d5273af12c7de0c969da3ddbe9 to your computer and use it in GitHub Desktop.
**WIP** ESO Max stat calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# reference: https://www.reddit.com/r/elderscrollsonline/comments/3ov0n4/formulas_for_max_statsweaponspell_damage_etc/ | |
# [ (7958 base Magicka + (Attribute Points x 111) + GearBonus) x | |
# (1 + 0.01 x (Champion Pts in Mage)^0.56) + MageMundus x (1 + .075 x DivinesTraits) + Food ] x | |
# (1 + SumofPassives) | |
import argparse | |
def magcalc(baseStat, AttributeModifier, Food): | |
baseStat = 7958 | |
ArcaneModifier = { 'purple': 850, 'gold': 870} | |
GlyphModifier = { 'purple': 802, 'gold': 868} | |
AttributePoints = AttributeModifier * int(raw_input('Enter your total attribute points: ')) | |
JewelryQuality = raw_input('quality of jewelry: ') | |
ArcaneModifier = ArcaneModifier[JewelryQuality.lower()] | |
ArcaneBonus = ArcaneModifier * int(raw_input('Total number of arcane items: ')) | |
GlyphQuality = raw_input('quality of glyphs: ') | |
GlyphModifier = GlyphModifier[GlyphQuality.lower()] | |
GlyphBonus = GlyphModifier * int(raw_input('Total number of glyphs: ')) | |
GearBonus = ArcaneBonus + GlyphBonus | |
allVars = [ AttributePoints, baseStat, GearBonus, Food ] | |
print('======================') | |
print '' | |
return allVars | |
def main(): | |
parser = argparse.ArgumentParser(description='Stat Calculator') | |
parser.add_argument('stat', help='magicka // health // stamina') | |
args = parser.parse_args() | |
calc = args.stat | |
AttributeModifier = 111 | |
baseStat = '' | |
Food = {'primary': 4252, 'secondary': 3912} | |
if 'mag'.lower() in calc: | |
print'' | |
print('======================') | |
print('Max Magicka Calculator') | |
print('======================') | |
print('Calculated Max Magicka: {}'.format(sum(magcalc(baseStat, | |
AttributeModifier, Food['secondary'])))) | |
print'' | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment