Fix: speech bubble
This commit is contained in:
@@ -158,7 +158,7 @@ MeatBase.prototype.onDragStopListener = function(pointer) {
|
||||
// console.log("isOverGod : " + isOverGod(this.x, this.y));
|
||||
this.mainGame.godEatMeat(this);
|
||||
} else if(this.mainGame.isOverTrashCan(this.x, this.y) == true) {
|
||||
this.mainGame.throwAway(this);
|
||||
this.mainGame.throwAwayMeat(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,12 +175,17 @@ MeatBase.prototype.getTotalCookingTime = function() {
|
||||
MeatBase.prototype.getScore = function() {
|
||||
var meatDoneness = this.getMeatGrade();
|
||||
var scoreDoneness = this.scoreArray[meatDoneness];
|
||||
// console.log("meatDoneness : " + meatDoneness);
|
||||
// console.log("this.scoreArray : " + this.scoreArray);
|
||||
// console.log("scoreDoneness : " + scoreDoneness);
|
||||
|
||||
if(meatDoneness == MeatBase.DONENESS_BURN_BLACK)
|
||||
return scoreDoneness;
|
||||
|
||||
var totalCookingTime = this.getTotalCookingTime();
|
||||
return Math.floor(scoreDoneness * totalCookingTime);
|
||||
var totalScore = Math.floor(scoreDoneness * totalCookingTime);
|
||||
// console.log("totalScore : " + totalScore);
|
||||
return totalScore;
|
||||
}
|
||||
|
||||
MeatBase.prototype.isFront = function() {
|
||||
@@ -288,10 +293,10 @@ MeatBase.prototype.setActive = function(isActivated, x, y) {
|
||||
}
|
||||
|
||||
this.cookingSide = MeatBase.MEAT_NONE;
|
||||
this.cookingTimeBySide[MeatBase.MEAT_BACK] = 0;
|
||||
this.cookingTimeBySide[MeatBase.MEAT_FRONT] = 0;
|
||||
this.cookingGradeBySide[MeatBase.MEAT_BACK] = MeatBase.DONENESS_RARE;
|
||||
this.cookingGradeBySide[MeatBase.MEAT_FRONT] = MeatBase.DONENESS_RARE;
|
||||
this.cookingTimeBySide[MeatBase.MEAT_BACK] = 0;
|
||||
this.cookingTimeBySide[MeatBase.MEAT_FRONT] = 0;
|
||||
this.cookingGradeBySide[MeatBase.MEAT_BACK] = MeatBase.DONENESS_RARE;
|
||||
this.cookingGradeBySide[MeatBase.MEAT_FRONT] = MeatBase.DONENESS_RARE;
|
||||
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
||||
Reference in New Issue
Block a user