Standard js

This commit is contained in:
2022-02-15 22:27:06 +03:00
parent 58530bf433
commit efafcbc356
9 changed files with 3676 additions and 19 deletions

View File

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

View File

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

View File

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