Fix: plus score with comma

This commit is contained in:
2019-12-14 22:19:17 +09:00
parent 98a7842dc5
commit ae7489da8a
+6 -3
View File
@@ -281,7 +281,8 @@ var Game = {
var score = meat.getScore();
this.scoreManager.plusScore(score);
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, score);
var scoreWithComma = NumberUtil.numberWithCommas(score);
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, scoreWithComma);
this.plusScoreGroup.add(tempPlusScore);
} else if(meat.getMeatGrade() == MeatBase.DONENESS_RARE) {
this.badMeatCount++;
@@ -297,7 +298,8 @@ var Game = {
var score = meat.getScore();
this.scoreManager.plusScore(score);
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, score);
var scoreWithComma = NumberUtil.numberWithCommas(score);
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, scoreWithComma);
this.plusScoreGroup.add(tempPlusScore);
}
} else { // meat is burn black
@@ -337,7 +339,8 @@ var Game = {
var score = meat.getScore();
this.scoreManager.plusScore(score);
var tempPlusScore = new PlusScore(this.trashCan.x, this.trashCan.y - 180, score);
var scoreWithComma = NumberUtil.numberWithCommas(score);
var tempPlusScore = new PlusScore(this.trashCan.x, this.trashCan.y - 180, scoreWithComma);
this.plusScoreGroup.add(tempPlusScore);
if(meat.getClassName() == NormalMeat.CLASS_NAME) {