示例#1
0
    def get_skins_id(self):
        SkinsID = []
        reader = CsvReader()
        rowData = reader.readCsv('GameAssets/csv_logic/skins.csv')
        for row in rowData:
            SkinsID.append(rowData.index(row))

        return SkinsID
示例#2
0
 def get_spg_id(self):
     CardSkillsID = []
     reader = CsvReader()
     rowData = reader.readCsv('GameAssets/csv_logic/cards.csv')
     for row in rowData:
         if row[6].lower() == '4' or row[6].lower() == '5':
             CardSkillsID.append(rowData.index(row))
     return CardSkillsID
示例#3
0
 def get_brawler_unlock(self):
     CardUnlockID = []
     reader = CsvReader()
     rowData = reader.readCsv('GameAssets/csv_logic/cards.csv')
     for row in rowData:
         if row[6].lower() == '0':
             CardUnlockID.append(rowData.index(row))
     return CardUnlockID
示例#4
0
    def get_emotes_id(self):
        emotesID = []
        reader = CsvReader()
        rowData = reader.readCsv('GameAssets/csv_logic/emotes.csv')
        for row in rowData:
            if row[1].lower() != 'true' and row[6].lower != 'true':
                emotesID.append(rowData.index(row))

        return emotesID
示例#5
0
 def get_unlock_by_brawler_id(self, brawler_id):
     reader = CsvReader()
     charsData = reader.readCsv('GameAssets/csv_logic/characters.csv')
     cardsData = reader.readCsv('GameAssets/csv_logic/cards.csv')
     for row in charsData:
         if charsData.index(row) == brawler_id:
             name = row[0]
             for row in cardsData:
                 if row[6].lower() == '0' and row[3] == name:
                     return cardsData.index(row)
    def get_brawlers_id(self):
        BrawlersID = []
        reader = CsvReader()
        rowData = reader.readCsv('GameAssets/csv_logic/characters.csv')
        for row in rowData:
            if row[20] == 'Hero' and row[2].lower() != 'true' and row[1].lower(
            ) != 'true':
                BrawlersID.append(rowData.index(row))

        return BrawlersID
示例#7
0
 def get_spg_by_brawler_id(self, brawler_id, type):
     reader = CsvReader()
     charsData = reader.readCsv('GameAssets/csv_logic/characters.csv')
     cardsData = reader.readCsv('GameAssets/csv_logic/cards.csv')
     for row in charsData:
         if charsData.index(row) == brawler_id:
             name = row[0]
             for row in cardsData:
                 if type == 4:
                     if row[6].lower() == '4' and row[3] == name:
                         return cardsData.index(row)
                 elif type == 5:
                     if row[3] == name and row[6].lower() == '5':
                         return cardsData.index(row)
 def get_brawler_by_skin_id(self, skin_id):
     reader = CsvReader()
     charsData = reader.readCsv('GameAssets/csv_logic/characters.csv')
     skinsData = reader.readCsv('GameAssets/csv_logic/skins.csv')
     skinsConfsData = reader.readCsv('GameAssets/csv_logic/skin_confs.csv')
     for row in skinsData:
         if skinsData.index(row) == skin_id:
             conf = row[1]
             for row in skinsConfsData:
                 if row[0] == conf:
                     brawler = row[1]
                     for row in charsData:
                         if row[0] == brawler:
                             return charsData.index(row)
示例#9
0
 def check_spg_id(self, id):
     reader = CsvReader()
     rowData = reader.readCsv('GameAssets/csv_logic/cards.csv')
     for row in rowData:
         if rowData.index(row) == id:
             return row[6].lower()
示例#10
0
 def get_region_string(self, region_id):
     reader = CsvReader()
     rowData = reader.readCsv('GameAssets/csv_logic/regions.csv')
     for row in rowData:
         if rowData.index(row) == region_id:
             return row[0]