Fix: bonus meat

This commit is contained in:
2019-12-10 08:31:48 +09:00
parent f77057ed8e
commit dec4692b31
8 changed files with 22 additions and 17 deletions
+6 -5
View File
@@ -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;