Output to file

This commit is contained in:
2022-02-16 00:17:19 +03:00
parent d47a4c634e
commit d5d5e5d59c
9 changed files with 82 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ module.exports = class Item {
this.addPart('blueprint')
}
addPart (part) {
this.parts.push(new Part(this.name, part))
addPart (part, amount) {
this.parts.push(new Part(this.name, part, amount))
}
}