diff --git a/robotgame/level1.py b/robotgame/level1.py index 1928e17..cc3ca58 100644 --- a/robotgame/level1.py +++ b/robotgame/level1.py @@ -238,6 +238,18 @@ class Level1(level.Level): for b in action_blocks: b.action = update_wells + self.objects.append( + lever.Lever(self, + task3_pos[0] - 64 * 3, + task3_pos[1] - 48 * 3, + [lambda *x: (self.complete_task(3) + if (len([w for w in wells + if (w.well_colour + == (255, 255, 255)) + ]) + == len(wells)) + else lambda: None)])) + ### Task 4: Inverted bits task4_pos = (64 * 13, 48 * 13)