def __init__(self, conn=None):
        if getattr(self, '_initialized', False):
            return # don't overwrite old values!
        self._initialized = True
        self.configure_logs()
        self.player_list = {}
        self.player_delete = []
        self.battles = {}
        self.battles_delete = []
        self.player_list_lock = threading.Lock()
        self.shutdown_flag = False
        self.areas = {}
        self.db = DB(self.log, conn=conn)
        self.default_location = None
        self.currency_name = CURRENCY
        self.login_greeting = ''
        self.uptime = time.time()
        self.active_npcs = []
        
        try:
            greet_file = open(ROOT_DIR + '/login_greeting.txt', 'r')
        except Exception, e:
            self.log.error('Error opening login_greeting.txt: ' + str(e))
        else:
            text = greet_file.read()
            self.login_greeting = text.split('\n')
        finally:
            greet_file.close()
        if not self.login_greeting:
            self.login_greeting = 'Welcome to %s' % GAME_NAME
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/world.py/World.__init__/original