Browse Source

logfix

Load_Fix
Robert Chen 11 years ago
parent
commit
fe381fe6f8
  1. 2
      js/ui.js

2
js/ui.js

@ -430,7 +430,7 @@ function OvenUI( stage, gameState ){
if( gameState.turkeyBought ){ if( gameState.turkeyBought ){
var state = gameState.ovenModel.getTurkeyState(); var state = gameState.ovenModel.getTurkeyState();
gameState.pubsub.publish( "ShowDialog", {seq:"custom", autoAdvance:true, customText:evalSkin[turkeyState["skin"]["cond"][2]] + "." } ); gameState.pubsub.publish( "ShowDialog", {seq:"custom", autoAdvance:true, customText:evalSkin[turkeyState["skin"]["cond"][2]] + "." } );
gameState.pubsub.publish( "AddRecord", {type:"Open ", text:evalSkin[turkeyState["skin"]["cond"][2]]} ); gameState.pubsub.publish( "AddRecord", {type:"Open ", "The turkey looked " + turkeyState["skin"]["cond"][2]} );
gameState.ovenModel.setRawTemp( (gameState.ovenModel.getRawTemp() - 25) < 150 ? 150 : gameState.ovenModel.getRawTemp() - 25 ); gameState.ovenModel.setRawTemp( (gameState.ovenModel.getRawTemp() - 25) < 150 ? 150 : gameState.ovenModel.getRawTemp() - 25 );
gameState.ovenOpened++; gameState.ovenOpened++;
} }

Loading…
Cancel
Save