Initial commit

This commit is contained in:
2022-02-15 22:07:56 +03:00
commit 58530bf433
8 changed files with 1114 additions and 0 deletions

12
items/Item.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = class Item {
constructor(name) {
this.name = name
this.url = `${this.name}_prime_set`
this.parts = []
this.addPart('blueprint')
}
addPart(part) {
this.parts.push({ part, url: `${this.name}_prime_${part}` })
}
}

11
items/Warframe.js Normal file
View File

@@ -0,0 +1,11 @@
const Item = require("./Item");
module.exports = class Warframe extends Item {
constructor(name) {
super(name)
this.addPart('systems')
this.addPart('neuroptics')
this.addPart('chassis')
}
}

6
items/index.js Normal file
View File

@@ -0,0 +1,6 @@
const Warframe = require("./Warframe");
module.exports = [
new Warframe('ash'),
new Warframe('atlas'),
]