its all there baby

This commit is contained in:
Peter Cottle 2013-01-09 00:59:23 -08:00
parent eba8734667
commit 13b616bd04
5 changed files with 182 additions and 152 deletions

View file

@ -341,22 +341,13 @@ var Level = Sandbox.extend({
this.level.hint :
"Hmm, there doesn't seem to be a hint for this level :-/";
var instants = [
return [
[/^hint$/, function() {
throw new Errors.CommandResult({
msg: hintMsg
});
}]
];
if (!this.solutionCommand) {
instants.push([/^show solution$/, function() {
throw new Errors.CommandResult({
msg: 'No solution provided for this level :-/'
});
}]);
}
return instants;
},
reset: function() {