Skip to content

Commit

Permalink
hsave: handle the latest Crewman format
Browse files Browse the repository at this point in the history
  • Loading branch information
ec429 committed May 18, 2015
1 parent 3d9bb81 commit 2085d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/hsave.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def Crews(self, tag, rest):
for t in ['Crewman', 'Student', 'Instructor']:
if tag.startswith(t+' '):
typ = tag[-1]
skill, lrate, tops, acid = rest.split(',', 4)
self.crews.append({'status':t, 'type':typ, 'skill':readfloat(skill), 'lrate':int(lrate), 'tops':int(tops), 'id':int(acid, 16)})
skill, lrate, tops, ft, acid = rest.split(',', 4)
self.crews.append({'status':t, 'type':typ, 'skill':readfloat(skill), 'lrate':int(lrate), 'tops':int(tops), 'ft':int(ft), 'id':int(acid, 16)})
return len(self.crews) == self.ncrews
raise UnrecognisedSubtag('Crews', tag, rest)
def Fighters(self, tag, rest):
Expand Down

0 comments on commit 2085d78

Please sign in to comment.