Mission.extend ( {

	end : function ( ) {

		if ( Mission._puzzles.length == 9 ) {
			var time = 0;
			for ( var i = Mission._puzzles.length; i--; ) {
				time += Mission._puzzles[i];
			}
			if ( time < 10 * 60 * 1000 ) {
				// if the cumulative puzzle time is less than 10 minutes
				doAction ( '39f70e' );
			}
		}

		doAction ( '39fe0c' ); // Completed Mission 10
		if ( !Portal.hintsUsed() ) {
			doAction ( '24a45d' ); // Completed Mission 10 without hints
		}
	}

} );

Mission._puzzles = [];

