Add team colors to tanks

This commit is contained in:
Neale Pickett 2010-05-17 23:11:30 -06:00
parent 935b9b1fb9
commit f3dafa5271
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ elif not code:
else: else:
path = os.path.join(basedir, 'ai/players', quote(team, safe='')) path = os.path.join(basedir, 'ai/players', quote(team, safe=''))
file = open(path, 'w') file = open(path, 'w')
file.write('Team: %s\n' % quote(team))
file.write('Color: #%s\n' % teams.color(team))
file.write('\n')
file.write(code) file.write(code)
file.close() file.close()