Example #1
0
    def _parse_mission(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_br.txt")

        for i in range(dbc_file.get_y()):
            data = template.MissionTemplate()
            data.life       = dbc_file.get(0, i)
            data.jewel      = dbc_file.get(1, i)
            self._missions[int(dbc_file.get(0,i))] = data
Example #2
0
    def _parse_master(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_job_exp.txt")

        for i in range(dbc_file.get_y()):
            data = template.MasterTemplate()
            data.exp    = dbc_file.get(1, i)
            data.upload = dbc_file.get(2, i)
            self._masters[int(dbc_file.get(0,i))] = data
Example #3
0
    def _parse_download(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_download.txt")

        for i in range(dbc_file.get_y()):
            data = template.DownloadMapTemplate()
            self._download_max = int(dbc_file.get(0, i))
            data.price = dbc_file.get(1, i)
            self._downloads[int(dbc_file.get(0, i))] = data
Example #4
0
    def _parse_level(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_exp.txt")

        for i in range(dbc_file.get_y()):
            data = template.LevelTemplate()
            data.exp        = dbc_file.get(1, i)
            data.support    = dbc_file.get(2, i)
            data.life_max   = dbc_file.get(4, i)
            self._levels[int(dbc_file.get(0,i))] = data
Example #5
0
    def _parse_map(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_map.txt")

        for i in range(dbc_file.get_y()):
            data = template.MapTemplate()
            data.id         = dbc_file.get(0, i)
            data.support    = dbc_file.get(1, i)
            data.nextid     = dbc_file.get(2, i)
            data.hard       = dbc_file.get(3, i)
            self._maps[data.id] = data
Example #6
0
    def _parse_shop(self):
        dbc_file = dbc.dbc()
        dbc_file.load(self._path, "t_shop.txt")

        for i in range(dbc_file.get_y()):
            data = template.ShopTemplate()
            data.id     = dbc_file.get(0, i)
            data.type   = dbc_file.get(3, i)
            data.price  = dbc_file.get(4, i)
            data.arg    = dbc_file.get(8, i)
            self._shops[data.id] = data
Example #7
0
def main():
    dbcfile = dbc.dbc()
    dbcfile.load(conf_path, "t_map.txt")

    for i in range(dbcfile.get_y()):
        id = int(dbcfile.get(0, i))
        name = dbcfile.get(4, i)
        url = dbcfile.get(5, i)
        data = dbcfile.get(6, i)
        hard = dbcfile.get(3, i)

        import_map(id, name, url, data, hard)