Fix: bonus meat
This commit is contained in:
@@ -6,16 +6,18 @@ function BonusMeat(mainGame) {
|
||||
|
||||
MeatBase.call(this);
|
||||
|
||||
this.setMeatTypeVariables();
|
||||
this.setSprite();
|
||||
this.setBonusMeatTypeVariables();
|
||||
this.setBonusMeatSprite();
|
||||
}
|
||||
|
||||
|
||||
BonusMeat.prototype.setMeatTypeVariables = function() {
|
||||
BonusMeat.prototype.setBonusMeatTypeVariables = function() {
|
||||
this.cookingSpeed = BonusMeat.COOKING_SPEED_BURN_LEVEL_WEAK;
|
||||
}
|
||||
|
||||
BonusMeat.prototype.setSprite = function() {
|
||||
BonusMeat.prototype.setBonusMeatSprite = function() {
|
||||
this.baseScale = 0.5;
|
||||
|
||||
this.spriteNameRare = BonusMeat.SPRITE_NAME_RARE;
|
||||
this.spriteNameWelldone = BonusMeat.SPRITE_NAME_WELLDONE;
|
||||
this.spriteNameBurnBlack = BonusMeat.SPRITE_NAME_BURN_BLACK;
|
||||
@@ -24,7 +26,6 @@ BonusMeat.prototype.setSprite = function() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
BonusMeat.COOKING_SPEED_BURN_LEVEL_WEAK = 0.1;
|
||||
BonusMeat.COOKING_SPEED_BURN_LEVEL_NORMAL = 0.2;
|
||||
BonusMeat.COOKING_SPEED_BURN_LEVEL_STRONG = 0.3;
|
||||
|
||||
Reference in New Issue
Block a user