Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Guild Wars 2 Regen & Condition Damage Calculator by NeryK
- # http://wiki.guildwars2.com/wiki/Damage#Condition_damage
- def calcMightCondition(level, might):
- condition = (0.375 * level + 5) * might
- return condition
- def calcRegen(level, healing, seconds):
- reg = (5 + 1.562 * level + 0.125 * healing) * seconds
- print "Regeneration level %d, %d healing over %d seconds: %f" % (level, healing, seconds, reg)
- def calcBurn(level, condition, seconds, might):
- burn = (8 + 4 * level + 0.25 * (condition + calcMightCondition(level, might))) * seconds
- print "Burning level %d, %d condition over %d seconds with %d might: %d" % (level, condition, seconds, might, int(burn))
- def calcBleed(level, condition, seconds, stacks, might):
- bled = (2.5 + 0.5 * level + 0.05 * (condition + calcMightCondition(level, might))) * seconds * stacks
- print "Bleeding level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(bled))
- def calcPoison(level, condition, seconds, might):
- pois = (4 + level + 0.1 * (condition + calcMightCondition(level, might))) * seconds
- print "Poison level %d, %d condition over %d seconds with %d might: %d" % (level, condition, seconds, might, int(pois))
- def calcConfusion(level, condition, seconds, stacks, might):
- conf = (10 + 1.5 * level + 0.15 * (condition + calcMightCondition(level, might))) * seconds * stacks
- print "Confusion level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(conf))
- def calcConfusionPvp(level, condition, seconds, stacks, might):
- conf = ((10 + 1.5 * level + 0.15 * (condition + calcMightCondition(level, might))) * seconds * stacks) / 2
- print "Confusion PvP level %d, %d condition over %d seconds with %d stacks with %d might: %d" % (level, condition, seconds, stacks, might, int(conf))
- if __name__ == "__main__":
- # 1388 Healing = Cleric amulet + Cleric jewel + 6 runes of Dwayna
- calcRegen(80, 0, 1)
- calcRegen(80, 200, 1)
- calcRegen(80, 500, 1)
- calcRegen(80, 1388, 1)
- calcRegen(80, 0, 10)
- calcRegen(80, 1388, 10)
- calcRegen(80, 200, 10)
- calcRegen(80, 500, 10)
- # 1406 condition = Rabid amulet + Rabid jewel + 6 runes of Grenth
- calcBurn(80, 0, 10, 0);
- calcBurn(80, 1406, 10, 0)
- calcBurn(80, 1492, 1, 0)
- calcBurn(80, 1492, 1, 10)
- calcBurn(80, 1492, 1, 25)
- # http://gw2skills.net/editor/?fcAQJAqalspyXnuSeF17IRoC4H0D9mX+K6xjp8kB-TsAAzCpIaS1krJTTymsNNC4EwMAA
- calcBleed(80, 1492, 1, 8, 0)
- calcBleed(80, 1492, 1, 8, 10)
- calcBleed(80, 1492, 1, 8, 25)
- calcBleed(80, 1492, 1, 7, 15)
- calcConfusionPvp(80, 1492, 1, 2, 15)
- calcBurn(80, 1900, 1, 0)
- calcBleed(80, 1900, 1, 7, 0)
- calcPoison(80, 1900, 1, 0)
- calcConfusion(80, 1900, 1, 7, 0)
- calcConfusionPvp(80, 1900, 1, 7, 0)
- calcConfusion(80, 1364, 1, 2, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement