Permalink
Browse files

Updating output to include threat

  • Loading branch information...
1 parent fe6a45a commit 2403a260f0c95cfda1e051a6315ebb0fb8c1c63a @dafzal committed Mar 18, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 parser.py
View
@@ -122,9 +122,12 @@ def main():
for player in players:
dmg = 0
heal = 0
+ threat = 0
for event in fight:
if event.source.name == player and 'Damage ' in event.effect.detail:
dmg += event.value.value
+ if event.source.name == player and event.threat.value:
+ threat += event.threat.value
if event.source.name == player and 'Heal ' in event.effect.detail:
heal += event.value.value
secs = duration.seconds
@@ -134,6 +137,8 @@ def main():
print '%s did %d damage in %s (%d DPS)' % (player, dmg, str(duration), dmg/secs)
if heal:
print '%s did %d heals in %s (%d HPS)' % (player, heal, str(duration), heal/secs)
+ if threat:
+ print '%s did %d threat in %s (%d TPS)' % (player, threat, str(duration), threat/secs)
#print "\n".join([event.to_string for event in events])

0 comments on commit 2403a26

Please sign in to comment.