Fix: god and speech bubble

This commit is contained in:
2019-12-10 10:37:04 +09:00
parent 2448c9fd55
commit dfbe501393
5 changed files with 102 additions and 56 deletions
+8 -4
View File
@@ -146,11 +146,15 @@ MeatBase.prototype.getClassName = function() {
return this.className;
}
MeatBase.prototype.getScore = function(meatDoneness) {
var scoreDoneness = this.scoreArray[meatDoneness];
var totalCookingTime = this.cookingTime[MeatBase.MEAT_BACK] + this.cookingTime[MeatBase.MEAT_FRONT];
MeatBase.prototype.getTotalCookingTime = function() {
return this.cookingTime[MeatBase.MEAT_BACK] + this.cookingTime[MeatBase.MEAT_FRONT];
}
MeatBase.prototype.getScore = function() {
var meatDoneness = this.getMeatGrade();
var scoreDoneness = this.scoreArray[meatDoneness];
var totalCookingTime = this.getTotalCookingTime();
console.log(totalCookingTime);
return scoreDoneness * totalCookingTime;
}