Fix: ignore score after time over
This commit is contained in:
@@ -119,19 +119,18 @@ var Game = {
|
||||
},
|
||||
|
||||
initVariables: function() {
|
||||
this.playingStageNo;
|
||||
this.activatedMeatCount;
|
||||
this.clearedMeatCount;
|
||||
this.isPlaying = false;
|
||||
|
||||
this.plusScoreTextGroup;
|
||||
|
||||
this.timeEvent;
|
||||
this.gameTimeEvents = [];
|
||||
|
||||
this.meatCount;
|
||||
this.playingStageNo = 0;
|
||||
this.activatedMeatCount = 0;
|
||||
this.clearedMeatCount = 0;
|
||||
this.badMeatCount = 0;
|
||||
|
||||
this.burnLevel = HeatPlate.BURN_LEVEL_WEAK;
|
||||
|
||||
this.plusScoreTextGroup = null;
|
||||
|
||||
this.timeEvent = null;
|
||||
this.gameTimeEvents = [];
|
||||
},
|
||||
|
||||
makeStageTimerText: function() {
|
||||
@@ -200,6 +199,8 @@ var Game = {
|
||||
*/
|
||||
|
||||
startGame: function() {
|
||||
this.isPlaying = true;
|
||||
|
||||
this.playingStageNo = 1;
|
||||
this.clearedMeatCount = 0;
|
||||
this.badMeatCount = 0;
|
||||
@@ -272,6 +273,9 @@ var Game = {
|
||||
},
|
||||
|
||||
godEatMeat: function(meat) {
|
||||
if(!this.isPlaying)
|
||||
return;
|
||||
|
||||
var meatClassName = meat.getClassName();
|
||||
|
||||
if(meat.getMeatGrade() == MeatBase.DONENESS_WELLDONE) {
|
||||
@@ -317,6 +321,9 @@ var Game = {
|
||||
},
|
||||
|
||||
throwAway: function(meat) {
|
||||
if(!this.isPlaying)
|
||||
return;
|
||||
|
||||
if(meat.getMeatGrade() != MeatBase.DONENESS_BURN_BLACK)
|
||||
return;
|
||||
|
||||
@@ -349,6 +356,8 @@ var Game = {
|
||||
|
||||
|
||||
timeOver: function() {
|
||||
this.isPlaying = false;
|
||||
|
||||
var timeOverText = new TimeOverText();
|
||||
if(!isExperienceMaestroAccount())
|
||||
this.updateResultRecord();
|
||||
@@ -361,6 +370,10 @@ var Game = {
|
||||
}
|
||||
this.gameTimeEvents = [];
|
||||
|
||||
for(var i = 0; i < Game.MAX_BONUS_MEAT_COUNT; i++) {
|
||||
this.bonusMeatGroup.children[i].hide();
|
||||
}
|
||||
|
||||
for(var i = 0; i < Game.MAX_NORMAL_MEAT_COUNT; i++) {
|
||||
this.normalMeatGroup.children[i].hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user