@technote-space/game-interface
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -64,3 +64,4 @@ "use strict"; | ||
getScore() { | ||
return this.performGetScore() - this.step / this.gameSettings.stepLimit * this.correctionItemScale(); | ||
// eslint-disable-next-line no-magic-numbers | ||
return Math.max(0, this.performGetScore() - this.step / this.gameSettings.stepLimit * this.correctionItemScale()); | ||
} | ||
@@ -67,0 +68,0 @@ static getCanvas(target) { |
{ | ||
"name": "@technote-space/game-interface", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "", | ||
@@ -35,3 +35,3 @@ "author": { | ||
"@types/jest": "^26.0.4", | ||
"@types/node": "^14.0.20", | ||
"@types/node": "^14.0.21", | ||
"@typescript-eslint/eslint-plugin": "^3.6.0", | ||
@@ -38,0 +38,0 @@ "@typescript-eslint/parser": "^3.6.0", |
Sorry, the diff of this file is not supported yet
18852
307