mirror of https://github.com/dirtbags/moth.git
Add team colors to tanks
This commit is contained in:
parent
935b9b1fb9
commit
f3dafa5271
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue