class ThingBase:
type_ = '?'
+ carrying = False
def __init__(self, game, id_=0, position=(YX(0, 0), YX(0, 0))):
self.game = game
protection = '.'
commandable = False
carried = False
- carrying = False
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
url_limits)
lowered_nick = lower_msg_by_volume(name, volume,
largest_audible_distance)
+ symbol = ''
+ if listener.fov_test(self.position[0], self.position[1]):
+ self.game.io.send('CHATFACE %s' % self.id_, c_id)
+ if self.type_ == 'Player' and hasattr(self, 'thing_char'):
+ symbol = '/@' + self.thing_char
self.game.io.send('CHAT ' +
- quote('(volume: %.2f) %s: %s' % (volume,
- lowered_nick,
- lowered_msg)),
+ quote('vol:%.f%s %s%s: %s' % (volume * 100, '%',
+ lowered_nick, symbol,
+ lowered_msg)),
c_id)