瀏覽代碼

feat : update game informations

master
Adrien 4 年之前
父節點
當前提交
065be12369
共有 3 個文件被更改,包括 123 次插入47 次删除
  1. +86
    -0
      src/gameInfos/battlegrounds.js
  2. +0
    -47
      src/gameInfos/maps.js
  3. +37
    -0
      src/gameInfos/objectives.js

+ 86
- 0
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'
}
}

+ 0
- 47
src/gameInfos/maps.js 查看文件

@@ -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'
}
}

+ 37
- 0
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
}
}

Loading…
取消
儲存