comparison gamelib/scenes/mess.py @ 764:a8510f4e2ea1 pyntnclick

Conditionally add things based on state.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 26 Jan 2013 15:24:56 +0200
parents 386475464202
children a35f5364437d
comparison
equal deleted inserted replaced
763:afe7b1cb16c0 764:a8510f4e2ea1
124 124
125 INITIAL_DATA = { 125 INITIAL_DATA = {
126 'cans_available': 3, 126 'cans_available': 3,
127 } 127 }
128 128
129 def should_add(self):
130 return self.get_data('cans_available') > 0
131
129 def select_interact(self): 132 def select_interact(self):
130 return '%icans' % (self.get_data('cans_available'),) 133 return '%icans' % (self.get_data('cans_available'),)
131 134
132 def interact_without(self): 135 def interact_without(self):
133 starting_cans = self.get_data('cans_available') 136 starting_cans = self.get_data('cans_available')