mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 04:47:27 +00:00
fix: add ultimate spellbook gamemode
This commit is contained in:
parent
9a886165ff
commit
73e8eec291
3 changed files with 18 additions and 1 deletions
|
|
@ -72,6 +72,10 @@ export const gameModes = {
|
|||
1300: {
|
||||
type: 'Normal',
|
||||
name: 'Nexus Blitz'
|
||||
},
|
||||
1400: {
|
||||
type: 'Normal',
|
||||
name: 'Ultimate Spellbook'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -298,5 +298,16 @@
|
|||
"ODYSSEY"
|
||||
],
|
||||
"iconPath": "/lol-game-data/assets/DATA/Spells/Icons2D/SummonerTemp1.png"
|
||||
},
|
||||
{
|
||||
"id": 54,
|
||||
"name": "Placeholder",
|
||||
"description": "",
|
||||
"summonerLevel": 1,
|
||||
"cooldown": 0,
|
||||
"gameModes": [
|
||||
"ULTBOOK"
|
||||
],
|
||||
"iconPath": "/lol-game-data/assets/DATA/Spells/Icons2D/Summoner_Empty.png"
|
||||
}
|
||||
]
|
||||
|
|
@ -21,7 +21,9 @@ export function createMatchData(matches) {
|
|||
|
||||
match.map = maps[match.map]
|
||||
match.gamemode = gameModes[match.gamemode]
|
||||
if (!match.gamemode) match.gamemode = 'Undefined gamemode'
|
||||
if (!match.gamemode) {
|
||||
match.gamemode = { name: 'Unknown gamemode' }
|
||||
}
|
||||
} // end loop matches
|
||||
|
||||
return matches
|
||||
|
|
|
|||
Loading…
Reference in a new issue