Advertisement
Guest User

chroma calculator

a guest
Feb 17th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. def calc(pstr=1, hpmod=0, armod=0, qt=False, nrgmod=0):
  4.  
  5.     hp = float(300 + (100 * hpmod))
  6.     hp_final = hp
  7.     if qt:
  8.         nrg = 225 + (150 * nrgmod)
  9.         qtehp = nrg * 2.4
  10.         hp_final += qtehp
  11.  
  12.     armor_before = 350 * (1 + armod)
  13.     armor_ele = 350 * (1 + armod + 1.5 * pstr)
  14.     armor_both = armor_ele * 3.5 * pstr
  15.  
  16.     ehp_multi = 1 + (armor_both / 300)
  17.     ehp_final = hp_final * ehp_multi
  18.     print 'HP: %s' % hp
  19.     print 'Armor: %s' % armor_both
  20.     print 'EHP Mult: %s' % ehp_multi
  21.     print 'Final EHP: %s' % ehp_final
  22.     return ehp_final
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement