From 065be1236968a7a00f9ce874f43cda47661d4938 Mon Sep 17 00:00:00 2001 From: Adrien Agez Date: Sat, 27 Jun 2020 21:12:35 +0200 Subject: [PATCH] feat : update game informations --- src/gameInfos/battlegrounds.js | 86 ++++++++++++++++++++++++++++++++++ src/gameInfos/maps.js | 47 ------------------- src/gameInfos/objectives.js | 37 +++++++++++++++ 3 files changed, 123 insertions(+), 47 deletions(-) create mode 100644 src/gameInfos/battlegrounds.js delete mode 100644 src/gameInfos/maps.js create mode 100644 src/gameInfos/objectives.js diff --git a/src/gameInfos/battlegrounds.js b/src/gameInfos/battlegrounds.js new file mode 100644 index 0000000..e5c609d --- /dev/null +++ b/src/gameInfos/battlegrounds.js @@ -0,0 +1,86 @@ +/** + * This file contains informations about all the battlegrounds of the game + * It includes informations about all objectives and camps, and will define the layout of the battleground page + * + * The 'objectives' field is an array, each item being an array representing a line on the battleground page + */ +import { CAMPS, MAP } from './objectives' + +export default { + alteracPass: { + name: 'Alterac Pass' + }, + battlefieldOfEternity: { + name: 'Battlefield of Eternity', + objectives: [ + [ + MAP.immortals + ], + [ + {...CAMPS.impalers, position: 'top'} + ], + [ + {...CAMPS.shamans, position: 'blue side'}, + {...CAMPS.shamans, position: 'red side'} + ], + [ + {...CAMPS.impalers, position: 'bottom'} + ] + ] + }, + blackheartSBay: { + name: "Blackheart's Bay" + }, + gardenOfTerror: { + name: 'Garden of Terror' + }, + hanamuraTemple: { + name: 'Hanamura Temple' + }, + volskayaFoundry: { + name: 'Volskaya Foundry' + }, + hauntedMines: { + name: 'Haunted Mines' + }, + towersOfDoom: { + name: 'Towers of Doom' + }, + infernalShrines: { + name: 'Infernal Shrines', + objectives: [ + [ + MAP.shrine + ], + [ + {...CAMPS.shamans, position: 'blue side'}, + {...CAMPS.shamans, position: 'red side'} + ], + [ + {...CAMPS.impalers, position: 'blue side'}, + {...CAMPS.impalers, position: 'red side'} + ], + [ + {...CAMPS.impalers, position: 'bottom'} + ] + ] + }, + tombOfTheSpiderQueen: { + name: 'Tomb of the Spider Queen' + }, + skyTemple: { + name: 'Sky Temple' + }, + dragonShire: { + name: 'Dragon Shire' + }, + cursedHollow: { + name: 'Cursed Hollow' + }, + braxisHoldout: { + name: 'Braxis Holdout' + }, + warheadJunction: { + name: 'Warhead Junction' + } +} diff --git a/src/gameInfos/maps.js b/src/gameInfos/maps.js deleted file mode 100644 index 3854ac9..0000000 --- a/src/gameInfos/maps.js +++ /dev/null @@ -1,47 +0,0 @@ -export default { - alteracPass: { - name: 'Alterac Pass' - }, - battlefieldOfEternity: { - name: 'Battlefield of Eternity' - }, - blackheartSBay: { - name: "Blackheart's Bay" - }, - gardenOfTerror: { - name: 'Garden of Terror' - }, - hanamuraTemple: { - name: 'Hanamura Temple' - }, - volskayaFoundry: { - name: 'Volskaya Foundry' - }, - hauntedMines: { - name: 'Haunted Mines' - }, - towersOfDoom: { - name: 'Towers of Doom' - }, - infernalShrines: { - name: 'Infernal Shrines' - }, - tombOfTheSpiderQueen: { - name: 'Tomb of the Spider Queen' - }, - skyTemple: { - name: 'Sky Temple' - }, - dragonShire: { - name: 'Dragon Shire' - }, - cursedHollow: { - name: 'Cursed Hollow' - }, - braxisHoldout: { - name: 'Braxis Holdout' - }, - warheadJunction: { - name: 'Warhead Junction' - } -} diff --git a/src/gameInfos/objectives.js b/src/gameInfos/objectives.js new file mode 100644 index 0000000..04c64bc --- /dev/null +++ b/src/gameInfos/objectives.js @@ -0,0 +1,37 @@ +/** + * This file contains informations about all objectives types in the game + * They are separated in 2 arrays of objectives objects, one for mercenary camps and the other for map objectives + */ + +const BRUISER = 'bruiser' +const SIEGE = 'siege' + +export const CAMPS = { + shamans: { + type: BRUISER, + name: 'Shamans', + initialSpawnTime: 60, + respawnTime: 240, + weight: 1 + }, + impalers: { + type: SIEGE, + name: 'Impalers', + initialSpawnTime: 60, + respawnTime: 180, + weight: 1 + } +} + +export const MAP = { + shrine: { + name: 'Shrine', + initialSpawnTime: 180, + respawnTime: 180 + }, + immortals: { + name: 'Immortals', + initialSpawnTime: 105, + respawnTime: 180 + } +}