Advertisement
Guest User

# Guild Wars 2 Regen & Condition Damage Calculator by NeryK

a guest
Apr 26th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.81 KB | None | 0 0
  1. # Guild Wars 2 Regen  & Condition Damage Calculator by NeryK
  2. # http://wiki.guildwars2.com/wiki/Damage#Condition_damage
  3.  
  4. def calcMightCondition(level, might):
  5.     condition = (0.375 * level + 5) * might
  6.     return condition
  7.  
  8. def calcRegen(level, healing, seconds):
  9.     reg = (5 + 1.562 * level + 0.125 * healing) * seconds
  10.     print "Regeneration level %d, %d healing over %d seconds: %f" % (level, healing, seconds, reg)
  11.  
  12. def calcBurn(level, condition, seconds, might):
  13.     burn = (8 + 4 * level + 0.25 * (condition + calcMightCondition(level, might))) * seconds
  14.     print "Burning level %d, %d condition over %d seconds with %d might: %d" % (level, condition, seconds, might, int(burn))
  15.  
  16. def calcBleed(level, condition, seconds, stacks, might):
  17.     bled = (2.5 + 0.5 * level + 0.05 * (condition + calcMightCondition(level, might))) * seconds * stacks
  18.     print "Bleeding level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(bled))
  19.  
  20. def calcPoison(level, condition, seconds, might):
  21.     pois = (4 + level + 0.1 * (condition + calcMightCondition(level, might))) * seconds
  22.     print "Poison level %d, %d condition over %d seconds with %d might: %d" % (level, condition, seconds, might, int(pois))
  23.  
  24. def calcConfusion(level, condition, seconds, stacks, might):
  25.     conf = (10 + 1.5 * level + 0.15 * (condition + calcMightCondition(level, might))) * seconds * stacks
  26.     print "Confusion level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(conf))
  27.  
  28. def calcConfusionPvp(level, condition, seconds, stacks, might):
  29.     conf = ((10 + 1.5 * level + 0.15 * (condition + calcMightCondition(level, might))) * seconds * stacks) / 2
  30.     print "Confusion PvP level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(conf))
  31.    
  32. if __name__ == "__main__":
  33.    
  34.     # 1388 Healing = Cleric amulet + Cleric jewel + 6 runes of Dwayna
  35.     calcRegen(80, 0, 1)
  36.     calcRegen(80, 200, 1)
  37.     calcRegen(80, 500, 1)
  38.     calcRegen(80, 1388, 1)
  39.     calcRegen(80, 0, 10)
  40.     calcRegen(80, 1388, 10)
  41.     calcRegen(80, 200, 10)
  42.     calcRegen(80, 500, 10)
  43.        
  44.     # 1406 condition = Rabid amulet + Rabid jewel + 6 runes of Grenth
  45.     calcBurn(80, 0, 10, 0);
  46.     calcBurn(80, 1406, 10, 0)
  47.     calcBurn(80, 1492, 1, 0)
  48.     calcBurn(80, 1492, 1, 10)
  49.     calcBurn(80, 1492, 1, 25)
  50.  
  51.     # http://gw2skills.net/editor/?fcAQJAqalspyXnuSeF17IRoC4H0D9mX+K6xjp8kB-TsAAzCpIaS1krJTTymsNNC4EwMAA
  52.     calcBleed(80, 1492, 1, 8, 0)
  53.     calcBleed(80, 1492, 1, 8, 10)
  54.     calcBleed(80, 1492, 1, 8, 25)
  55.    
  56.     calcBleed(80, 1492, 1, 7, 15)
  57.     calcConfusionPvp(80, 1492, 1, 2, 15)
  58.    
  59.     calcBurn(80, 1900, 1, 0)
  60.     calcBleed(80, 1900, 1, 7, 0)
  61.     calcPoison(80, 1900, 1, 0)
  62.     calcConfusion(80, 1900, 1, 7, 0)
  63.     calcConfusionPvp(80, 1900, 1, 7, 0)
  64.  
  65.     calcConfusion(80, 1364, 1, 2, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement