Fix: god and speech bubble
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user