Переместил названия предметов в json
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-02-18 13:34:12 +03:00
parent 7fd5f8dfe6
commit 9b7b3ea287
5 changed files with 63 additions and 22 deletions

View File

@@ -1,29 +1,26 @@
const items = require('./items.json')
const Warframe = require('./Warframe')
const Primary = require('./Primary')
// const Primary = require('./Primary')
// const Secondary = require('./Secondary')
const Companion = require('./Companion')
const Archwings = require('./Archwings')
const warframes = [
'ash', 'atlas', 'banshee', 'chroma', 'ember',
'equinox', 'frost', 'gara', 'harrow', 'hydroid',
'inaros', 'ivara', 'limbo', 'loki', 'mag',
'mesa', 'mirage', 'nekros', 'nezha', 'nidus',
'nova', 'nyx', 'oberon', 'octavia', 'rhino',
'saryn', 'titania', 'trinity', 'valkyr', 'vauban',
'volt', 'wukong', 'zephyr'
]
const result = []
const primaries = [
'astilla', 'baza', 'boar', 'boltor', 'braton'
]
const items = []
warframes.forEach((name) => {
items.push(new Warframe(name))
items.warframes.forEach((name) => {
result.push(new Warframe(name))
})
primaries.forEach((name) => {
items.push(new Primary(name))
// items.primaries.forEach((name) => {
// result.push(new Primary(name))
// })
items.companions.forEach((name) => {
result.push(new Companion(name))
})
module.exports = items
items.archwings.forEach((name) => {
result.push(new Archwings(name))
})
module.exports = result