Add sponsor infos in DB

master
Lertsenem 2020-08-21 11:34:02 +02:00
parent bdc46de226
commit 8ca17429de
2 changed files with 309 additions and 122 deletions

View File

@ -1,251 +1,432 @@
{ {
"ad": { "ad": {
"skins": {
"meta knight": "07" "meta knight": "07"
}
}, },
"altek": { "altek": {
"sponsor": "RBT",
"skins": {
"kirby": "06", "kirby": "06",
"pikachu": "06", "pikachu": "06",
"zelda": "03" "zelda": "03"
}
}, },
"alvis": { "alvis": {
"skins": {
"roy": "06", "roy": "06",
"yoshi": "05" "yoshi": "05"
}
}, },
"arima": { "arima": {
"skins": {
"inkling": "00", "inkling": "00",
"king k rool": "00", "king k rool": "00",
"little mac": "00", "little mac": "00",
"lucario": "00", "lucario": "00",
"pikachu": "00" "pikachu": "00"
}
},
"arthas": {
"sponsor": "SSY",
"skins": {
"bowser jr": "04",
"byleth": "04"
}
}, },
"bac": { "bac": {
"skins": {
"wolf": "06", "wolf": "06",
"yoshi": "05" "yoshi": "05"
}
}, },
"bastos": { "bastos": {
"sponsor": "F9",
"skins": {
"wario": "06" "wario": "06"
}
},
"bear": {
"skins": {
"banjo & kazooie": "02",
"mario": "00"
}
}, },
"bdl": { "bdl": {
"skins": {
"bayonetta": "00", "bayonetta": "00",
"inkling": "07" "inkling": "07"
}
}, },
"benj": { "benj": {
"skins": {
"dark samus": "07" "dark samus": "07"
}
}, },
"bento": { "bento": {
"sponsor": "HUB",
"skins": {
"pokemon trainer": "07" "pokemon trainer": "07"
}
}, },
"bibliburst": { "bibliburst": {
"skins": {
"falco": "01", "falco": "01",
"yoshi": "06" "yoshi": "06"
}
}, },
"bifasse": { "bifasse": {
"skins": {
"yoshi": "07" "yoshi": "07"
}
}, },
"captain": { "captain": {
"skins": {
"sonic": "04", "sonic": "04",
"terry": "00" "terry": "00"
}
}, },
"captain falcum": { "captain falcum": {
"skins": {
"joker": "06", "joker": "06",
"wolf": "06" "wolf": "06"
}
}, },
"davianel": { "davianel": {
"skins": {
"luigi": "00", "luigi": "00",
"olimar": "02", "olimar": "02",
"sheik": "04" "sheik": "04"
}
}, },
"debatab": { "debatab": {
"skins": {
"zelda": "01" "zelda": "01"
}
}, },
"dixar": { "dixar": {
"skins": {
"lucina": "03", "lucina": "03",
"sheik": "07", "sheik": "07",
"terry": "00" "terry": "00"
}
}, },
"dr. crow": { "dr. crow": {
"sponsor": "APSIDE",
"skins": {
"lucina": "03", "lucina": "03",
"sheik": "05" "sheik": "05"
}
}, },
"draver ": { "draver ": {
"skins": {
"joker": "02", "joker": "02",
"young link": "02" "young link": "02"
}
}, },
"dyl": { "dyl": {
"skins": {
"bowser": "00", "bowser": "00",
"captain falcon": "07", "captain falcon": "07",
"sonic": "03", "sonic": "03",
"wolf": "03" "wolf": "03"
}
}, },
"estus": { "estus": {
"skins": {
"mario": "05" "mario": "05"
}
}, },
"flynn": { "flynn": {
"skins": {
"ike": "03", "ike": "03",
"min min": "01" "min min": "01"
}
}, },
"francis": { "francis": {
"skins": {
"mega man": "02", "mega man": "02",
"terry": "" "terry": ""
}
}, },
"gd": { "gd": {
"skins": {
"bowser": "01", "bowser": "01",
"cloud": "03", "cloud": "03",
"pac man": "06", "pac man": "06",
"wolf": "06", "wolf": "06",
"zss": "01" "zss": "01"
}
}, },
"gogem": {
"sponsor": "DT",
"skins": {
"pikachu": "00"
}
}
"godoh": {
"skins": {
"snake": "06"
}
}
"greeneyes": {
"sponsor": "NXE",
"skins": {
"zss": "05"
}
}
"jg": { "jg": {
"skins": {
"ike": "06" "ike": "06"
}
}, },
"jylomaki": { "jylomaki": {
"skins": {
"mega man": "00" "mega man": "00"
}
}, },
"l'obez": { "l'obez": {
"skins": {
"bowser": "06" "bowser": "06"
}
}, },
"lertsenem": { "lertsenem": {
"skins": {
"link": "01", "link": "01",
"incineroar": "00" "incineroar": "00"
}
}, },
"lil marty": { "lil marty": {
"sponsor": "RBT",
"skins": {
"pichu": "07" "pichu": "07"
}
}, },
"linkab": { "linkab": {
"skins": {
"bayonetta": "00", "bayonetta": "00",
"inkling": "07" "inkling": "07"
}
}, },
"bdl": { "bdl": {
"skins": {
"bayonetta": "00", "bayonetta": "00",
"inkling": "07" "inkling": "07"
}
}, },
"lukrra": { "lukrra": {
"skins": {
"robin": "03" "robin": "03"
}
}, },
"magic'": { "magic'": {
"skins": {
"mr game & watch": "00" "mr game & watch": "00"
}
}, },
"mocra": { "mocra": {
"skins": {
"mario": "" "mario": ""
}
}, },
"mushroompunch": { "mushroompunch": {
"skins": {
"samus": "00" "samus": "00"
}
}, },
"naskino": { "naskino": {
"sponsor": "ISG",
"skins": {
"marth": "03", "marth": "03",
"palutena": "06", "palutena": "06",
"zelda": "05" "zelda": "05"
}
}, },
"nekim": { "nekim": {
"sponsor": "RLN",
"skins": {
"joker": "00" "joker": "00"
}
}, },
"nemesis": { "nemesis": {
"skins": {
"jigglypuff": "03", "jigglypuff": "03",
"min min": "04", "min min": "04",
"pichu": "02" "pichu": "02"
}
}, },
"nonocolors": { "nonocolors": {
"sponsor": "FCG",
"skins": {
"pokemon trainer": "03", "pokemon trainer": "03",
"wario": "02", "wario": "02",
"wolf": "00" "wolf": "00"
}
}, },
"oxydion": { "oxydion": {
"skins": {
"ganondorf": "00", "ganondorf": "00",
"mr game & watch": "02" "mr game & watch": "02"
}
}, },
"pandaroux": { "pandaroux": {
"sponsor": "UBI",
"skins": {
"ice climbers": "07", "ice climbers": "07",
"inkling": "00", "inkling": "00",
"ness": "02" "ness": "02"
}
}, },
"personne": { "personne": {
"skins": {
"inkling": "05" "inkling": "05"
}
}, },
"pew": { "pew": {
"sponsor": "LSE",
"skins": {
"ness": "01" "ness": "01"
}
}, },
"phoenix": { "phoenix": {
"sponsor": "HASUKÏ",
"skins": {
"snake": "05" "snake": "05"
}
}, },
"phyel": { "phyel": {
"skins": {
"mr game & watch": "06" "mr game & watch": "06"
}
},
"pitou ": {
"sponsor": "CHECKPOINT",
"skins": {
"luigi": "06",
}
}, },
"pom ": { "pom ": {
"sponsor": "RBT",
"skins": {
"chrom": "07", "chrom": "07",
"lucina": "06", "lucina": "06",
"samus": "06", "samus": "06",
"toon link": "04" "toon link": "04"
}
}, },
"pyoro": { "pyoro": {
"skins": {
"isabelle": "07", "isabelle": "07",
"terry": "00", "terry": "00",
"zelda": "07" "zelda": "07"
}
}, },
"raivals": { "raivals": {
"sponsor": "LBC",
"skins": {
"min min": "00", "min min": "00",
"peach": "01" "peach": "01"
}
}, },
"rob one": { "rob one": {
"skins": {
"peach": "00" "peach": "00"
}
}, },
"rohan_doge": { "rohan_doge": {
"skins": {
"meta knight": "00" "meta knight": "00"
}
}, },
"sfar": { "sfar": {
"skins": {
"joker": "00", "joker": "00",
"wolf": "00" "wolf": "00"
}
}, },
"shiko": { "shiko": {
"skins": {
"pac man": "07" "pac man": "07"
}
}, },
"shishi": { "shishi": {
"sponsor": "CHECKPOINT",
"skins": {
"isabelle": "06", "isabelle": "06",
"joker": "06" "joker": "06"
}
}, },
"snoua": { "snoua": {
"skins": {
"link": "00" "link": "00"
}
}, },
"sourif": { "sourif": {
"skins": {
"bowser jr": "01", "bowser jr": "01",
"mr game & watch": "01", "mr game & watch": "01",
"pokemon trainer": "05", "pokemon trainer": "05",
"ryu": "04", "ryu": "04",
"wii fit": "06" "wii fit trainer": "06"
}
}, },
"teezy": { "teezy": {
"sponsor": "UBI",
"skins": {
"diddy kong": "00", "diddy kong": "00",
"pikachu": "03", "pikachu": "03",
"pokemon trainer": "05", "pokemon trainer": "05",
"wario": "03" "wario": "03"
}
}, },
"tomipal": { "tomipal": {
"skins": {
"pikachu": "02", "pikachu": "02",
"pokemon trainer": "00" "pokemon trainer": "00"
}
}, },
"tonios": { "tonios": {
"sponsor": "RBT",
"skins": {
"isabelle": "01", "isabelle": "01",
"mario": "00" "mario": "00"
}
}, },
"tonios ": { "tonios ": {
"skins": {
"bowser": "06" "bowser": "06"
}
}, },
"underkowe": { "underkowe": {
"skins": {
"joker": "03", "joker": "03",
"zss": "05" "zss": "05"
}
}, },
"vlad": { "vlad": {
"skins": {
"rob": "00" "rob": "00"
}
}, },
"yannwatts": { "yannwatts": {
"sponsor": "SGE",
"skins": {
"ness": "05" "ness": "05"
}
}, },
"ykseew": { "ykseew": {
"wii fit": "00" "skins": {
"wii fit trainer": "00"
}
}, },
"yogui": { "yogui": {
"skins": {
"daisy": "07" "daisy": "07"
}
}, },
"zequar": { "zequar": {
"skins": {
"mewtwo": "07" "mewtwo": "07"
} }
} }
}

View File

@ -44,6 +44,12 @@ class Player():
self.seeding = int(seeding) self.seeding = int(seeding)
self.twitterHandle = ( "" if twitterHandle is None else twitterHandle ) self.twitterHandle = ( "" if twitterHandle is None else twitterHandle )
# Prefix is superseeded by sponsors infos
try:
self.prefix = PLAYERSKINS[self.gamerTag.lower()]["sponsor"]
except:
pass
if chars is None: if chars is None:
self.chars = {} self.chars = {}
else: else:
@ -59,7 +65,7 @@ class Player():
charname = character # Unknown char -> sgg id charname = character # Unknown char -> sgg id
try: try:
skin = PLAYERSKINS[self.gamerTag.lower()][charname] skin = PLAYERSKINS[self.gamerTag.lower()]["skins"][charname]
except KeyError: except KeyError:
skin = "00" # default skin skin = "00" # default skin