From 2bf13b9cf6aca2c038556f71cf46e7035411d76e Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 16 Sep 2016 16:10:43 -0700 Subject: [PATCH] Fix fuse getting lit 2+ times in tutorial --- tutorial/tutorial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index 9e8982bef4..537931080d 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -710,8 +710,8 @@ stepEquip.prototype = { if (channel == "Tutorial-Spinner") { if (this.currentPart == this.PART1 && message == "wasLit") { + this.currentPart = this.PART2; Script.setTimeout(function() { - this.currentPart = this.PART2; hideEntitiesWithTag(this.tagPart1); showEntitiesWithTag(this.tagPart2); setControllerPartLayer('tips', 'grip'); @@ -724,9 +724,9 @@ stepEquip.prototype = { if (data.action == 'release' && data.grabbedEntity == this.gunID) { print("got release"); this.stopWatchingGun(); + this.currentPart = this.COMPLETE; playSuccessSound(); Script.setTimeout(this.onFinish.bind(this), 1500); - this.currentPart = this.COMPLETE; } } }