Fix: wait and serve meats by waiter
This commit is contained in:
@@ -34,15 +34,10 @@ MeatBase.prototype.update = function() {
|
||||
|
||||
|
||||
MeatBase.prototype.initMeatTypeVariables = function() {
|
||||
this.cookingSpeed = 0.0;
|
||||
this.className = "MeatBase";
|
||||
|
||||
this.baseScale = 0.5;
|
||||
|
||||
this.className = "MeatBase";
|
||||
}
|
||||
|
||||
|
||||
MeatBase.prototype.initMeatTypeVariables = function() {
|
||||
this.cookingSide = MeatBase.MEAT_NONE;
|
||||
this.cookingTime = [];
|
||||
this.cookingGrade = [];
|
||||
@@ -60,6 +55,23 @@ MeatBase.prototype.initMeatTypeVariables = function() {
|
||||
this.spriteNameRare = "";
|
||||
this.spriteNameWelldone = "";
|
||||
this.spriteNameBurnBlack = "";
|
||||
|
||||
this.initCookingSpeedArray();
|
||||
this.initScoreArray();
|
||||
}
|
||||
|
||||
MeatBase.prototype.initCookingSpeedArray = function() {
|
||||
this.cookingSpeedArray = [];
|
||||
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_WEAK] = 1;
|
||||
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_NORMAL] = 2;
|
||||
this.cookingSpeedArray[HeatPlate.BURN_LEVEL_STRONG] = 3;
|
||||
}
|
||||
|
||||
MeatBase.prototype.initScoreArray = function() {
|
||||
this.scoreArray = [];
|
||||
this.scoreArray[MeatBase.DONENESS_RARE] = 0;
|
||||
this.scoreArray[MeatBase.DONENESS_WELLDONE] = 0;
|
||||
this.scoreArray[MeatBase.DONENESS_BURN_BLACK] = 0;
|
||||
}
|
||||
|
||||
MeatBase.prototype.initMouseEventHandler = function() {
|
||||
|
||||
Reference in New Issue
Block a user