Browse Source

Score bugfix and death condition

pull/2/head
Robert Chen 11 years ago
parent
commit
32f291a3c0
  1. 2
      js/screens.js
  2. 4
      js/ui.js

2
js/screens.js

@ -448,7 +448,7 @@ function ScoreScreen( stage, gameState ){
var coreTempScore = that.scoreDistribution( coreTemp ) * 200; var coreTempScore = that.scoreDistribution( coreTemp ) * 200;
totalScore += parseInt(skinScoreChart[ turkeyState.skin.cond[2]]); totalScore += parseInt(skinScoreChart[ turkeyState.skin.cond[2]]);
totalScore += parseInt(skinScoreChart[ turkeyState.core.cond[2]]); totalScore += parseInt(coreScoreChart[ turkeyState.core.cond[2]]);
totalScore += parseInt(outerTempScore.toFixed(0)); totalScore += parseInt(outerTempScore.toFixed(0));
totalScore += parseInt(coreTempScore.toFixed(0)); totalScore += parseInt(coreTempScore.toFixed(0));

4
js/ui.js

@ -685,6 +685,10 @@ function OvenUI( stage, gameState ){
//finalize button //finalize button
if( gameState.turkeyBought ){ if( gameState.turkeyBought ){
stage.addChild( new Button( stage, gameState, 45, 250, 250, 150, null, null, function(){ stage.addChild( new Button( stage, gameState, 45, 250, 250, 150, null, null, function(){
if(!evalSkin[turkeyState["skin"]["cond"][2]]){
gameState.pubsub.publish("Death","");
return;
}
gameState.pubsub.publish("Play", "Error"); gameState.pubsub.publish("Play", "Error");
gameState.pubsub.publish("ShowFinalConfirm",""); gameState.pubsub.publish("ShowFinalConfirm","");
} ) ); } ) );

Loading…
Cancel
Save