- protection = t.protection
- if protection != '.':
- info += '/protection:%s' % protection
- info += ')\n'
- if hasattr(t, 'hat') or hasattr(t, 'face'):
- info += '----------\n'
- if hasattr(t, 'hat'):
- info += '| %s |\n' % t.hat[0:6]
- info += '| %s |\n' % t.hat[6:12]
- info += '| %s |\n' % t.hat[12:18]
- if hasattr(t, 'face'):
- info += '| %s |\n' % t.face[0:6]
- info += '| %s |\n' % t.face[6:12]
- info += '| %s |\n' % t.face[12:18]
- info += '----------\n'
- if hasattr(t, 'design'):
- line_length = t.design[0].x
- lines = []
- for i in range(t.design[0].y):
- start = i * line_length
- end = (i + 1) * line_length
- lines += [t.design[1][start:end]]
- info += '-' * (line_length + 4) + '\n'
- for line in lines:
- info += '| %s |\n' % line
- info += '-' * (line_length + 4) + '\n'
+ if t.type_ == 'Bottle':
+ if t.thing_char == '_':
+ info += '/empty'
+ elif t.thing_char == '~':
+ info += '/full'
+ if detailed:
+ protection = t.protection
+ if protection != '.':
+ info += '/protection:%s' % protection
+ info += ')\n'
+ if hasattr(t, 'hat') or hasattr(t, 'face'):
+ info += '----------\n'
+ if hasattr(t, 'hat'):
+ info += '| %s |\n' % t.hat[0:6]
+ info += '| %s |\n' % t.hat[6:12]
+ info += '| %s |\n' % t.hat[12:18]
+ if hasattr(t, 'face'):
+ info += '| %s |\n' % t.face[0:6]
+ info += '| %s |\n' % t.face[6:12]
+ info += '| %s |\n' % t.face[12:18]
+ info += '----------\n'
+ if hasattr(t, 'design'):
+ line_length = t.design[0].x
+ lines = []
+ for i in range(t.design[0].y):
+ start = i * line_length
+ end = (i + 1) * line_length
+ lines += [t.design[1][start:end]]
+ info += '-' * (line_length + 4) + '\n'
+ for line in lines:
+ info += '| %s |\n' % line
+ info += '-' * (line_length + 4) + '\n'
+ else:
+ info += ')'