Standard js
This commit is contained in:
@@ -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}` })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const Warframe = require("./Warframe");
|
||||
const Warframe = require('./Warframe')
|
||||
|
||||
module.exports = [
|
||||
new Warframe('ash'),
|
||||
new Warframe('atlas'),
|
||||
new Warframe('atlas')
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user