url_limits)
lowered_nick = lower_msg_by_volume(name, volume,
largest_audible_distance)
- self.game.io.send('CHAT ' +
- quote('(volume: %.2f) %s: %s' % (volume,
- lowered_nick,
- lowered_msg)),
- c_id)
+ 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('vol:%.f%s %s%s: %s' % (volume * 100, '%',
+ lowered_nick, symbol,
+ lowered_msg)),
+ c_id)