+class Thing_BottleDeposit(Thing):
+ bottle_counter = 0
+ symbol_hint = 'O'
+
+ def proceed(self):
+ if self.bottle_counter >= 3:
+ self.bottle_counter = 0
+ t = self.game.thing_types['MusicPlayer'](self.game,
+ position=self.position)
+ self.game.things += [t]
+ self.sound('BOTTLE DEPOSITOR',
+ 'here is a gift as a reward for ecological consciousness –'
+ 'use "command thing" on it to learn more!')
+ self.game.changed = True
+
+ def accept(self):
+ self.bottle_counter += 1
+ self.sound('BOTTLE DEPOSITOR',
+ 'thanks for this empty bottle – deposit %s more for a gift!' %
+ (3 - self.bottle_counter))
+
+
+
+