From 9a62f66bc9f930029231b1f0bae0f7b86a72018c Mon Sep 17 00:00:00 2001 From: Lutz Date: Tue, 26 Sep 2017 13:51:15 +0800 Subject: [PATCH] - skip globalConfig in constructor - set default value for n in drawType --- nyanReporter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nyanReporter.js b/nyanReporter.js index e99ee25..6a22d00 100644 --- a/nyanReporter.js +++ b/nyanReporter.js @@ -30,7 +30,7 @@ class NyanReporter { * * @constructor */ - constructor(options = {}) { + constructor(_, options = {}) { var nyanCatWidth = this.nyanCatWidth = 11; var width = window.width * 0.75 || 0; @@ -111,7 +111,7 @@ class NyanReporter { /** * Draws the type of stat along with a color */ - drawType(type, n) { + drawType(type, n = 0) { write(' '); write(color(type, n)); write('\n'); @@ -235,4 +235,4 @@ class NyanReporter { } } -module.exports = NyanReporter; \ No newline at end of file +module.exports = NyanReporter;