# Path: utility.py
# def boolean_format(value):
#         if value=='Yes':
#             return True
#         else:
#             return False


import procgame
import locale
import random
import logging
import audits
from procgame import *
from utility import boolean_format
            self.game.set_player_stats('pop_flags',self.flags)

            self.game.set_player_stats('lower_super_pops_collected',self.lower_super_pops_collected)
            self.game.set_player_stats('upper_super_pops_collected',self.upper_super_pops_collected)

            if self.lower_super_pops_required==0:
                self.lower_super_pops_level+=1
            self.game.set_player_stats('lower_super_pops_level',self.lower_super_pops_level)

            if self.upper_super_pops_required==0:
                self.upper_super_pops_level+=1
            self.game.set_player_stats('upper_super_pops_level',self.upper_super_pops_level)


        def reset_lamps(self):
            for i in range(len(self.lamps)):
                self.game.effects.drive_lamp(self.lamps[i],'off')


        def update_lamps(self):
            for i in range(len(self.lamps)):
                if self.flags[i]==1:
                    self.game.effects.drive_lamp(self.lamps[i],'on')
                elif self.flags[i]==2:
                    self.game.effects.drive_lamp(self.lamps[i],'fast')

        def set_lamps(self,num):
            if self.flags[num]==1:
                self.game.effects.drive_lamp(self.lamps[num],'on')
            elif self.flags[num]==2:

# Path: utility.py
# def boolean_format(value):
#         if value=='Yes':
#             return True
#         else:
#             return False


# Path: pops.py
import procgame
import locale
import random
import logging
import audits
from procgame import *
from utility import boolean_format

            self.game.set_player_stats('pop_flags',self.flags)

            self.game.set_player_stats('lower_super_pops_collected',self.lower_super_pops_collected)
            self.game.set_player_stats('upper_super_pops_collected',self.upper_super_pops_collected)

            if self.lower_super_pops_required==0:
                self.lower_super_pops_level+=1
            self.game.set_player_stats('lower_super_pops_level',self.lower_super_pops_level)

            if self.upper_super_pops_required==0:
                self.upper_super_pops_level+=1
            self.game.set_player_stats('upper_super_pops_level',self.upper_super_pops_level)


        def reset_lamps(self):
            for i in range(len(self.lamps)):
                self.game.effects.drive_lamp(self.lamps[i],'off')


        def update_lamps(self):
            for i in range(len(self.lamps)):
                if self.flags[i]==1:
                    self.game.effects.drive_lamp(self.lamps[i],'on')
                elif self.flags[i]==2:
                    self.game.effects.drive_lamp(self.lamps[i],'fast')

        def set_lamps(self,num):
            if self.flags[num]==1:
                self.game.effects.drive_lamp(self.lamps[num],'on')
            elif self.flags[num]==2:

                self.game.effects.drive_lamp(self.lamps[num],'fast')