Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def parseLine(l):
- a = l.split(',')
- t = a[0].split(' ')
- return (t,a)
- def fixLine(t, a):
- b = a[:]
- b[9] = b[15]
- b[10] = '-1' # overkill
- b[14] = '0' # absorb
- b[15] = '0'
- return (t, b)
- def outputLine(a):
- print(','.join(a))
- def main():
- for line in sys.stdin:
- t, a = parseLine(line)
- if t[1] == 'SWING_DAMAGE':
- t, a = fixLine(t, a)
- outputLine(a)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement