From 73e8eec2919bbce4331bc7f41c687bbcb0fe21bd Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sun, 25 Jul 2021 22:52:59 +0200 Subject: [PATCH] fix: add ultimate spellbook gamemode --- client/src/data/data.js | 4 ++++ client/src/data/summonerSpells.json | 11 +++++++++++ client/src/helpers/summoner.js | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/client/src/data/data.js b/client/src/data/data.js index 0087240..0316f9b 100644 --- a/client/src/data/data.js +++ b/client/src/data/data.js @@ -72,6 +72,10 @@ export const gameModes = { 1300: { type: 'Normal', name: 'Nexus Blitz' + }, + 1400: { + type: 'Normal', + name: 'Ultimate Spellbook' } } diff --git a/client/src/data/summonerSpells.json b/client/src/data/summonerSpells.json index d4be8bf..75f70fe 100644 --- a/client/src/data/summonerSpells.json +++ b/client/src/data/summonerSpells.json @@ -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" } ] \ No newline at end of file diff --git a/client/src/helpers/summoner.js b/client/src/helpers/summoner.js index 38c95dd..8aceed8 100644 --- a/client/src/helpers/summoner.js +++ b/client/src/helpers/summoner.js @@ -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