fix: add ultimate spellbook gamemode

This commit is contained in:
Valentin Kaelin 2021-07-25 22:52:59 +02:00
parent 9a886165ff
commit 73e8eec291
3 changed files with 18 additions and 1 deletions

View file

@ -72,6 +72,10 @@ export const gameModes = {
1300: { 1300: {
type: 'Normal', type: 'Normal',
name: 'Nexus Blitz' name: 'Nexus Blitz'
},
1400: {
type: 'Normal',
name: 'Ultimate Spellbook'
} }
} }

View file

@ -298,5 +298,16 @@
"ODYSSEY" "ODYSSEY"
], ],
"iconPath": "/lol-game-data/assets/DATA/Spells/Icons2D/SummonerTemp1.png" "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"
} }
] ]

View file

@ -21,7 +21,9 @@ export function createMatchData(matches) {
match.map = maps[match.map] match.map = maps[match.map]
match.gamemode = gameModes[match.gamemode] match.gamemode = gameModes[match.gamemode]
if (!match.gamemode) match.gamemode = 'Undefined gamemode' if (!match.gamemode) {
match.gamemode = { name: 'Unknown gamemode' }
}
} // end loop matches } // end loop matches
return matches return matches