Skip to content

Commit

Permalink
Fix tutorial when people ignore selecting the truck.
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Jun 13, 2019
1 parent ca536c3 commit 18a0b6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data/base/script/tutorial.js
Expand Up @@ -401,16 +401,17 @@ function eventStructureBuilt(structure, droid)
{
increaseTutorialState();
}
else if (tutState === 7 && structure.stattype === POWER_GEN)
else if (tutState <= 7 && structure.stattype === POWER_GEN)
{
//Maybe they did not understand instructions. Whatever the case, move on.
if (!didTheyHelpBuildGen)
{
for (var i = 0; i < 3; ++i)
const NEXT_STATE = 8;
while (consoleVar[0].state < NEXT_STATE)
{
consoleVar.shift(); //skip ahead
}
tutState = 8;
tutState = NEXT_STATE;
}
else
{
Expand Down

0 comments on commit 18a0b6a

Please sign in to comment.